Page MenuHomePhabricator

[keyserver] add loop until db version properly updated for secondary nodes to server traffic besides health check
AbandonedPublicDraft

Authored by will on Aug 26 2024, 6:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 26, 7:46 PM
Unknown Object (File)
Wed, Sep 25, 3:09 PM
Unknown Object (File)
Wed, Sep 25, 3:08 PM
Unknown Object (File)
Wed, Sep 25, 3:08 PM
Unknown Object (File)
Tue, Sep 24, 7:59 AM
Unknown Object (File)
Sep 15 2024, 6:27 AM
Unknown Object (File)
Sep 14 2024, 12:23 PM
Unknown Object (File)
Sep 13 2024, 12:55 PM
Subscribers

Details

Reviewers
ashoat
varun
Summary

This adds a loop to secondary nodes checking whether the db version is greater than or equal to the intended db version after migration for any traffic besides the health check to be available.

Test Plan

I ran locally with COMM_NOLE_ROLE set to secondary. Was able to curl and get an OK response but other keyserver endpoints were unavailable until I manually upgraded the db_version. After upgrading,
the other routes were added to the express server and I was able to access the get_initial_redux_state endpoint

Diff Detail

Repository
rCOMM Comm
Branch
loop_on_migration
Lint
No Lint Coverage
Unit
No Test Coverage