Page MenuHomePhabricator

[lib] move generating P2P messages to `useProcessDMOperation`
ClosedPublic

Authored by kamil on Fri, Aug 23, 5:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 17, 2:08 AM
Unknown Object (File)
Thu, Sep 12, 1:02 AM
Unknown Object (File)
Thu, Sep 12, 12:24 AM
Unknown Object (File)
Fri, Sep 6, 12:59 PM
Unknown Object (File)
Fri, Sep 6, 11:29 AM
Unknown Object (File)
Thu, Sep 5, 7:21 AM
Unknown Object (File)
Wed, Sep 4, 8:28 PM
Unknown Object (File)
Wed, Sep 4, 7:52 AM
Subscribers

Details

Summary

ENG-8423.

We need to process DM Operations and save OutboundP2PMessages in DB in the same SQL transaction to handle cases when the app crashes after applying changes to our store and before addressing messages to other peers - this is inconsistency from which we're unable to heal.

The existing place of generating messages is removed later in the stack.

Depends on D13148

Test Plan

Check that messages are persisted along with changes to store.

Note: This stack is tested end-to-end according to the process described here.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage