-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: start swing-store export without blocking checks (#9423)
closes: #9418 ## Description This moves the completeness check from being eager when creating the exporter to delayed when yielding the artifact names list. It also updates the kernel export logic to yield to the event loop after triggering the started event and before initiating the actual export, so that any IPC messages have a chance to be sent. ### Security Considerations None ### Scaling Considerations The consumer will no longer get an early error if the DB is not suitable for export. In practice that doesn't change anything since the state-sync logic was already not in a position to handle such an early error. However the state-sync export relied on the "started" event to have triggered by the time the next block commit was reached. The completeness check here was happening before that point, and could take a significant amount of time as described in #9418. ### Documentation Considerations None ### Testing Considerations Manually verified, and verifying with a patched upgrade-15 image on devnet instagoric. Updated tests to reflect that making the exporter does not immediately fails if incomplete. `export-kernel-db.js` is not sufficiently covered by test to automate testing of the `started` message. ### Upgrade Considerations None
- Loading branch information
Showing
3 changed files
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters