-
Notifications
You must be signed in to change notification settings - Fork 244
Wait for sealed secrets #7450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wait for sealed secrets #7450
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses a race condition in recovery tests by implementing an explicit wait mechanism to ensure sealed secrets are fully written to disk before attempting to read them during node recovery. The solution adds a new wait_for_sealed_secrets() function that polls node logs to confirm sealed secrets have been flushed to disk.
Key changes:
- New helper function
wait_for_sealed_secrets()that monitors node logs for sealed secret completion messages - Strategic placement of wait calls before
save_sealed_ledger_secret()operations to prevent reading incomplete files - Additional synchronization before ledger rekey operations to ensure network stability
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]> Co-authored-by: Amaury Chamayou <[email protected]>
Following @eddyashton 's comment on #7437 this PR explicitly waits for the sealed secrets to be available before proceeding.