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

ARTEMIS-5002 AMQP producer not unblock if the disk space is freed #5160

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gaohoward
Copy link
Contributor

(test adapted from the one on the Jira)

@gaohoward gaohoward changed the title ENTMQBR-9338 AMQP producer not unblock if the disk space is freed ARTEMIS-5002 AMQP producer not unblock if the disk space is freed Aug 20, 2024
@gaohoward
Copy link
Contributor Author

@clebertsuconic can you take a look of this PR see if the fix makes sense? Thanks!

@gaohoward
Copy link
Contributor Author

@clebertsuconic @gemmellr I've updated the PR. Thanks!

@@ -1096,6 +1096,7 @@ public boolean checkMemory(boolean runOnFailure, Runnable runWhenAvailableParame
if (isFull()) {
if (runOnFailure && runWhenAvailable != null) {
addToBlockList(runWhenAvailable, blockedCallback);
pagingManager.addBlockedStore(this);
Copy link
Member

Choose a reason for hiding this comment

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

The use of this same call lower down the class is gated by `if (usingGlobalMaxSize || pagingManager.isDiskFull()) {``, does this need to be?

It is also surrounded by various other double-checks around racing being not-full again, it seems hard to reconcile that path needing it but this one not.

I cant quite wrap my head around this so think @clebertsuconic might need to chip in here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

me neither. Need @clebertsuconic's expertise. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PR updated. The code path is really processing many conditions, not sure what's impact of that.

@gaohoward gaohoward force-pushed the g_send_unblock_9338 branch 2 times, most recently from aa007e1 to 414b1b9 Compare August 26, 2024 03:19
@gaohoward gaohoward force-pushed the g_send_unblock_9338 branch 3 times, most recently from 94fa2a3 to ac182a7 Compare September 5, 2024 03:11
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.

4 participants