Skip to content

Fix bug of negative JournalQueueSize#4077

Merged
hangc0276 merged 2 commits intoapache:masterfrom
XLzed:Fix-JournalQueueSize
Oct 26, 2023
Merged

Fix bug of negative JournalQueueSize#4077
hangc0276 merged 2 commits intoapache:masterfrom
XLzed:Fix-JournalQueueSize

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
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
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 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.
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.

4 participants

Comments