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(das): Clarify logs for historic headers that are skipped #3380

Merged
merged 2 commits into from
May 15, 2024

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented May 8, 2024

Fix is kind of ugly but there needs to be a way to bubble up to worker that the header is skipped vs being sampled successfully.

Resolves #3194

@renaynay renaynay added kind:fix Attached to bug-fixing PRs area:das Related to DASer labels May 8, 2024
@renaynay renaynay self-assigned this May 8, 2024
@renaynay renaynay enabled auto-merge (squash) May 15, 2024 13:06
@renaynay renaynay merged commit 3ca66ea into celestiaorg:main May 15, 2024
25 checks passed
// errOutsideSamplingWindow is an error used to inform
// the caller of Sample that the given header is outside
// the sampling window.
var errOutsideSamplingWindow = fmt.Errorf("skipping header outside of sampling window")
Copy link
Member

Choose a reason for hiding this comment

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

:nice: 😄

@Wondertan Wondertan deleted the sample-log branch May 20, 2024 14:27
Wondertan pushed a commit that referenced this pull request May 20, 2024
Fix is kind of ugly but there needs to be a way to bubble up to worker
that the header is skipped vs being sampled successfully.

Resolves #3194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:das Related to DASer kind:fix Attached to bug-fixing PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: logs are misleading and node appears to sample old headers
4 participants