-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Problem
From #33 (comment)
There still is one race condition that needs to be handled. The situation is more or less as follows:
Setup:
A contract with a foreign key that's out of sync (but that has been rotated at least once) and syncing from scratch.
Race condition:
- Chelonia notices that the key needs to be rotated as
pendingKeyRotationsis set - Chelonia notices that the key has been updated and clears
pendingKeyRotations. This step may be wrong if the key still is out of sync (it could have been updated, just not to the latest).
Solution
pendingKeyRotations should not be cleared if the key still is out of sync. Alternatively, pendingKeyRotations can be cleared, but it must be set again.
(pendingKeyRotations is a dictionary; set and clear truly mean the corresponding key in the dictionary)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels