Page MenuHomePhabricator

[native] Deprecate socket crash loop recovery specialized to policy acknowledgment
ClosedPublic

Authored by ashoat on Jun 10 2024, 9:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 11, 12:58 AM
Unknown Object (File)
Fri, Nov 29, 11:54 PM
Unknown Object (File)
Tue, Nov 26, 7:15 AM
Unknown Object (File)
Nov 18 2024, 3:00 AM
Unknown Object (File)
Nov 18 2024, 2:55 AM
Unknown Object (File)
Nov 8 2024, 6:23 PM
Unknown Object (File)
Nov 7 2024, 4:42 PM
Unknown Object (File)
Nov 7 2024, 4:42 PM
Subscribers

Details

Summary

We used to have a special way to recover from a socket crash loop that results from policy acknowledgment.

Now that we have a more general way to recover from a socket crash loop, we can deprecate this old code, and rely on the more general mechanism going forward.

Test Plan

I was inspired by @kamil's test plan in D6250:

  1. Log out a test user
  2. DELETE FROM policy_acknowledgments WHERE user = '<userID>';
  3. Apply this single-line patch to force the keyserver to timeout all socket initializations: https://gist.github.com/Ashoat/c5d2d81dcb8517595f28fdff6604daa9
  4. Log in as the test user
  5. Confirm that we can heal from the simulated crash loop via fetch_pending_updates

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jun 11 2024, 2:28 AM