You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when AKD is initialized, it will fetch the Azks record in storage. If it is unable to find the record, it will attempt to write the root node (and its epoch 0 state) along with the Azks record.
In a distributed deployment with dedicated readers and writers, we do not want the readers to perform this write on startup. Instead, they should fail on being unable to retrieve the Azks record.
The text was updated successfully, but these errors were encountered:
…and when a change in epoch is detected, flush the cache
Additionally add support for a read-only directory which cannot perform "write" operations to the directory
Resolves: #149, #148
…nd invalidate cache (#150)
* Add the ability to periodically poll for changes to the AZKS record, and when a change in epoch is detected, flush the cache
Additionally add support for a read-only directory which cannot perform "write" operations to the directory
Resolves: #149, #148
* Apply clippy lints and fix test infra (mysql_async version bump)
* rustfmt
* Addressing @afterdark 's comments around cache access and flushing potential races.
Adds a multi-reader, single-flusher protection around cache operations. Additionally, readers need to poll for AZKS changes or the cache will never update the AZKS object as it's now cached forever until a manual flush operation is done.
* Missed clippy's
Co-authored-by: Sean Lawlor <seanlawlor@fb.com>
Currently, when AKD is initialized, it will fetch the
Azks
record in storage. If it is unable to find the record, it will attempt to write the root node (and its epoch 0 state) along with theAzks
record.In a distributed deployment with dedicated readers and writers, we do not want the readers to perform this write on startup. Instead, they should fail on being unable to retrieve the
Azks
record.The text was updated successfully, but these errors were encountered: