-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(tee): fix race condition in batch locking #3342
Merged
Merged
Commits on Nov 29, 2024
-
fix(tee): fix race condition in batch locking
After [scaling][1] [zksync-tee-prover][2] to two instances/replicas on Azure for azure-stage2, azure-testnet2, and azure-mainnet2, we started experiencing [duplicated proving for some batches][3]. While this is not an erroneous situation, it is wasteful from a resource perspective. This was due to a race condition in batch locking. This PR fixes the issue by adding atomic batch locking. [1]: https://github.com/matter-labs/gitops-kubernetes/pull/7033/files [2]: https://github.com/matter-labs/zksync-era/blob/aaca32b6ab411d5cdc1234c20af8b5c1092195d7/core/bin/zksync_tee_prover/src/main.rs [3]: https://grafana.matterlabs.dev/goto/M1I_Bq7HR?orgId=1
Configuration menu - View commit details
-
Copy full SHA for 7d96c1c - Browse repository at this point
Copy the full SHA 7d96c1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17977dc - Browse repository at this point
Copy the full SHA 17977dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 464b5d4 - Browse repository at this point
Copy the full SHA 464b5d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 574896b - Browse repository at this point
Copy the full SHA 574896bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66a9154 - Browse repository at this point
Copy the full SHA 66a9154View commit details
Commits on Dec 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bef72a4 - Browse repository at this point
Copy the full SHA bef72a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6796543 - Browse repository at this point
Copy the full SHA 6796543View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecd8c33 - Browse repository at this point
Copy the full SHA ecd8c33View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1f99ab - Browse repository at this point
Copy the full SHA a1f99abView commit details -
Revert "Address Harald's code review comments"
This reverts commit a1f99ab.
Configuration menu - View commit details
-
Copy full SHA for de8de11 - Browse repository at this point
Copy the full SHA de8de11View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.