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)
Sat, Nov 9, 8:59 PM
Unknown Object (File)
Fri, Nov 8, 2:09 AM
Unknown Object (File)
Fri, Nov 8, 2:09 AM
Unknown Object (File)
Fri, Nov 8, 1:42 AM
Unknown Object (File)
Fri, Oct 25, 2:37 AM
Unknown Object (File)
Sep 25 2024, 12:27 AM
Unknown Object (File)
Sep 25 2024, 12:27 AM
Unknown Object (File)
Sep 25 2024, 12:26 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.

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
No Lint Coverage
Unit
No Test Coverage

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

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