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 bug of negative JournalQueueSize #4077

Merged
merged 2 commits into from Oct 26, 2023

Conversation

XLzed
Copy link
Contributor

@XLzed XLzed commented Sep 10, 2023

Descriptions of the changes in this PR:

Motivation

While shouldRolloverJournal is true,the QueueEntry qe is not added to the toFlush queue but we decrease the JournalQueueSize incorrectly.

Changes

Decrease the JournalQueueSize after correct NonNull check of qe.

Copy link
Contributor

@hangc0276 hangc0276 left a comment

Choose a reason for hiding this comment

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

Nice catch!

Copy link
Member

@horizonzy horizonzy left a comment

Choose a reason for hiding this comment

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

Nice catch. It solves my confusion

@hangc0276 hangc0276 closed this Oct 23, 2023
@hangc0276 hangc0276 reopened this Oct 23, 2023
@hangc0276 hangc0276 merged commit 85d7bb3 into apache:master Oct 26, 2023
31 of 32 checks passed
yangl pushed a commit to yangl/bookkeeper that referenced this pull request Dec 11, 2023
### Motivation

While shouldRolloverJournal is true,the QueueEntry qe is not added to the toFlush queue but we decrease the JournalQueueSize incorrectly.

### Changes

Decrease the JournalQueueSize after correct NonNull check of qe.
hangc0276 pushed a commit to hangc0276/bookkeeper that referenced this pull request Jan 18, 2024
### Motivation

While shouldRolloverJournal is true,the QueueEntry qe is not added to the toFlush queue but we decrease the JournalQueueSize incorrectly.

### Changes

Decrease the JournalQueueSize after correct NonNull check of qe.

(cherry picked from commit 85d7bb3)
gaozhangmin pushed a commit to gaozhangmin/bookkeeper that referenced this pull request Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants