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: possible race condition with small batches upon batch submission #410

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

omritoptix
Copy link
Contributor

@omritoptix omritoptix commented Jul 18, 2023

PR Standards

Opening a pull request should be able to meet the following requirements


For Author:

  • Targeted PR against correct branch
  • included the correct type prefix in the PR title
  • Linked to Github issue with discussion and accepted design
  • Targets only one github issue
  • Wrote unit and integration tests
  • All CI checks have passed
  • Added relevant godoc comments

For Reviewer:

  • confirmed the correct type prefix in the PR title
  • Reviewers assigned
  • confirmed all author checklist items have been addressed

After reviewer approval:

  • In case targets main branch, PR should be squashed and merged.
  • In case PR targets a release branch, PR should be rebased.

…ement latestHeight and manager batch submission.
@omritoptix omritoptix requested a review from a team as a code owner July 18, 2023 17:38
@omritoptix omritoptix linked an issue Jul 18, 2023 that may be closed by this pull request
Copy link
Contributor

@ItayLevyOfficial ItayLevyOfficial left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mtsitrin
Copy link
Contributor

mtsitrin commented Jul 19, 2023

@omritoptix tests fails

@@ -164,16 +165,25 @@ func (b *BaseLayerClient) stateUpdatesHandler(ready chan bool) {
panic(err)
}
ready <- true
b.logger.Info("state updates handler ready")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be probably debug
or better informative

@omritoptix omritoptix merged commit 9feaced into main Jul 19, 2023
@omritoptix omritoptix deleted the omritoptix/409-batch-event-race-condition branch July 19, 2023 14:49
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.

Race condition when batches are small
4 participants