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

CBG-4015 Refresh _sync:seq when releasing sequences in nextSequenceGreaterThan #6937

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

adamcfraser
Copy link
Collaborator

@adamcfraser adamcfraser commented Jul 4, 2024

CBG-4015

Accounts for expected jumps in sequence values under variable allocator throughput before triggering “greater than” handling.

Integration Tests

…eaterThan

Accounts for expected jumps in sequence values under variable allocator throughput before triggering “greater than” handling.
Copy link
Contributor

@gregns1 gregns1 left a comment

Choose a reason for hiding this comment

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

Generally LGTM. Just noticed one log line tweak.

var numReleasedBatch uint64
numReleasedBatch, err = s._releaseCurrentBatch(ctx)
if err != nil {
base.WarnfCtx(ctx, "Error returned when releasing sequence range [%d-%d] for existing batch. Will be handled by skipped sequence handling. Error:%v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
base.WarnfCtx(ctx, "Error returned when releasing sequence range [%d-%d] for existing batch. Will be handled by skipped sequence handling. Error:%v", err)
base.WarnfCtx(ctx, "Error returned when releasing sequence range [%d-%d] for existing batch. Will be handled by skipped sequence handling. Error:%v", s.last+1, s.max, err)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, and this highlighted a case where we should be returning error instead of just logging. Will fix both.

@gregns1 gregns1 assigned adamcfraser and unassigned gregns1 Jul 8, 2024
@adamcfraser adamcfraser assigned gregns1 and unassigned adamcfraser Jul 8, 2024
@gregns1 gregns1 merged commit 3cea3fc into main Jul 9, 2024
34 checks passed
@gregns1 gregns1 deleted the CBG-4015 branch July 9, 2024 09:42
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