Page MenuHomePhabricator

[lib] update `processDMOpsActionType` to handle `outboundP2PMessages`
ClosedPublic

Authored by kamil on Fri, Aug 23, 5:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 15, 9:56 AM
Unknown Object (File)
Sun, Sep 15, 1:04 AM
Unknown Object (File)
Mon, Sep 9, 10:27 AM
Unknown Object (File)
Mon, Sep 9, 10:04 AM
Unknown Object (File)
Thu, Sep 5, 5:56 PM
Unknown Object (File)
Wed, Sep 4, 11:43 PM
Unknown Object (File)
Wed, Sep 4, 6:10 AM
Unknown Object (File)
Tue, Sep 3, 8:11 PM
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.

Depends on D13146

Test Plan

Tested in next diff.

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil retitled this revision from [lib] update `queueDMOpsActionType` and `processDMOpsActionType` to handle `outboundP2PMessages` to [lib] update `processDMOpsActionType` to handle `outboundP2PMessages`.Fri, Aug 23, 5:06 AM
kamil published this revision for review.Fri, Aug 23, 7:24 AM
tomek added inline comments.
lib/shared/dm-ops/process-dm-ops.js
151 ↗(On Diff #43605)

It is a temporary change. Later in the stack, it is updated.

This revision is now accepted and ready to land.Mon, Aug 26, 1:55 AM