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

[batcher] Recover blob state #657

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

ian-shim
Copy link
Contributor

Why are these changes needed?

If batcher crashes in the middle of processing blobs, it could leave blob state stale, i.e. blobs in DISPERSING state may never get processed.
This PR adds a RecoverState method that triggers at batcher initialization and updates all blobs in DISPERSING state into PROCESSING, so that they can be retried.

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@ian-shim ian-shim force-pushed the batcher-blobs-cleanup-at-init branch from 48579c4 to 2b9b2a5 Compare July 23, 2024 22:47
@ian-shim ian-shim marked this pull request as ready for review July 23, 2024 22:53
@ian-shim ian-shim force-pushed the batcher-blobs-cleanup-at-init branch from 2b9b2a5 to ea286ba Compare July 24, 2024 22:05
@ian-shim ian-shim requested a review from anupsv July 25, 2024 16:46
Copy link
Contributor

@cody-littley cody-littley left a comment

Choose a reason for hiding this comment

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

LGTM. (Please seek additional reviews since I'm still learning 😜 )

@ian-shim ian-shim requested a review from mooselumph July 30, 2024 17:39
@ian-shim ian-shim merged commit 04e5cf3 into Layr-Labs:master Aug 1, 2024
6 checks passed
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.

3 participants