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-4221 [3.1.11 backport] Don't increment high sequence cached for unused sequences on pendingLogs #7106

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

adamcfraser
Copy link
Collaborator

CBG-4221

If unused sequences ranges are pushed to pendingLogs, they shouldn't increment the channel cache's highSequenceCached until they are processed.

Backports CBG-4216

…s to read side

Reduces complexity and avoids loop bug when duplicates are present when running _addPendingLogs.

When popping an unused sequence range from pendingLogs, checks for overlap with the next entry in pending.  When found, truncates range at next pending entry.

Adds check in addPendingLogs for the case where the pending includes sequences earlier than nextSequence.

Info logging emitted for any unexpected duplication.
…nused sequences on pendingLogs

If unused sequences ranges are pushed to pendingLogs, they shouldn't increment the channel cache's highSequenceCached until they are processed.
torcolvin
torcolvin previously approved these changes Sep 4, 2024
Base automatically changed from CBG-4218 to release/3.1.11 September 4, 2024 00:17
@adamcfraser adamcfraser dismissed torcolvin’s stale review September 4, 2024 00:17

The base branch was changed.

@adamcfraser adamcfraser merged commit 5ba7cd0 into release/3.1.11 Sep 4, 2024
14 checks passed
@adamcfraser adamcfraser deleted the CBG-4221 branch September 4, 2024 00:45
bbrks added a commit that referenced this pull request Nov 11, 2024
…ed for unused sequences on pendingLogs (#7106)"

This reverts commit 5ba7cd0.
bbrks added a commit that referenced this pull request Nov 11, 2024
* Revert "CBG-4218 [3.1.11 backport] Move duplicate checks for pending sequences to read side (#7105)"

This reverts commit b6127c1.

* Revert "CBG-4221 [3.1.11 backport] Don't increment high sequence cached for unused sequences on pendingLogs (#7106)"

This reverts commit 5ba7cd0.

* Revert "CBG-4035: [3.1.9 backport] Skipped Sequence Optimisations (#6925)"

This reverts commit ea40269.

* Re-add tests
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