Page MenuHomePhabricator

[lib] Make sure PeerToPeerMessageHandler is run after persisted state is read
ClosedPublic

Authored by angelika on Oct 28 2024, 2:48 PM.
Tags
None
Referenced Files
F3391069: D13802.id45417.diff
Sat, Nov 30, 2:08 AM
Unknown Object (File)
Tue, Nov 26, 10:37 PM
Unknown Object (File)
Sat, Nov 23, 6:56 AM
Unknown Object (File)
Sat, Nov 23, 6:28 AM
Unknown Object (File)
Sat, Nov 23, 4:58 AM
Unknown Object (File)
Sun, Nov 17, 4:38 PM
Unknown Object (File)
Sat, Nov 16, 6:11 AM
Unknown Object (File)
Mon, Nov 11, 6:57 AM
Subscribers

Details

Summary
Test Plan
  1. Use logs to verify if PeerToPeerMessageHandler waits for persisted state
  2. Comment out sqliteAPI.removeInboundP2PMessages and send some messages and restart the app
  3. Errors like invalid operation should appear
  4. After this patch there should be less of them

Diff Detail

Repository
rCOMM Comm
Branch
graszka22/ENG-9803
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Question about the test plan:

After this patch there should be less of them

Did some of errors still appear? What's your theory for why that is?

Question about the test plan:

After this patch there should be less of them

Did some of errors still appear? What's your theory for why that is?

Yes, they still appeared probably because this one: https://phab.comm.dev/D13792 has not landed yet. When I was testing that one the errors also disappeared.

Makes sense, thanks for explaining!

This revision is now accepted and ready to land.Oct 29 2024, 5:22 AM

Rebase and implement requested changes

You can't update the commit message with arc diff. Instead, you should edit the revision on Phabricator, and then run arc amend locally to update the commit text based on what's on Phabricator. (I think this last step also gets run automatically as part of arc land.)

You can't update the commit message with arc diff. Instead, you should edit the revision on Phabricator, and then run arc amend locally to update the commit text based on what's on Phabricator. (I think this last step also gets run automatically as part of arc land.)

oh, ok, I wanted to do just arc amend, I thought I need to do this manually 🤦‍♀️