Page MenuHomePhabricator

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

Authored by kamil on Aug 23 2024, 5:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 11:34 PM
Unknown Object (File)
Wed, Dec 18, 2:25 PM
Unknown Object (File)
Wed, Dec 18, 2:25 PM
Unknown Object (File)
Wed, Dec 18, 2:25 PM
Unknown Object (File)
Wed, Dec 18, 2:25 PM
Unknown Object (File)
Fri, Nov 29, 5:51 AM
Unknown Object (File)
Nov 25 2024, 4:53 PM
Unknown Object (File)
Nov 9 2024, 8:59 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`.Aug 23 2024, 5:06 AM
kamil published this revision for review.Aug 23 2024, 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.Aug 26 2024, 1:55 AM