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

[v2] fix: Ignore chunks outside operator quorums #1123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ian-shim
Copy link
Contributor

Why are these changes needed?

Operator should not download/process chunks outside its participating quorums.

Checks

  • 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.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@ian-shim ian-shim force-pushed the ignore-chunks-outside-op-quorums branch from 8c4c1f5 to fe4e7f9 Compare January 17, 2025 04:05
@ian-shim ian-shim marked this pull request as ready for review January 17, 2025 04:07
@@ -71,9 +71,16 @@ func (n *Node) DownloadBundles(ctx context.Context, batch *corev2.Batch, operato
if !ok {
return nil, nil, fmt.Errorf("blob version %d not found", cert.BlobHeader.BlobVersion)
}

if _, ok := operatorState.Operators[quorum]; !ok {
// operator is not part of the quorum or the quorum is not valid
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a warn or debug log?

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.

2 participants