Skip to content
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: Witness generation issue in kona #134

Merged
merged 8 commits into from
Sep 25, 2024
Merged

Conversation

ratankaliani
Copy link
Member

@ratankaliani ratankaliani commented Sep 25, 2024

Overview

Mirror from op-rs/kona#573:

The use of command-fds with tokio::process::Command causes rare, deterministic race conditions that lead to witness generation failures. These issues consistently occur for specific block ranges on OP Sepolia, Base, and OP Mainnet in op-succinct.

We should switch to std::process::Command to avoid these race conditions. This will increase resource usage for concurrent witness generation, and we can move back to tokio once the race condition issues are resolved.

I'm not exactly certain the source of the issue, but the Safety section of tokio::process::Command mentions some issues arising from file descriptors: https://tikv.github.io/doc/tokio/process/struct.Command.html#safety

Misc

  • Rust formatting.

@ratankaliani ratankaliani merged commit 9eebf51 into main Sep 25, 2024
8 checks passed
@ratankaliani ratankaliani deleted the ratan/fix-witnessgen-hang branch September 25, 2024 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant