Skip to content

HDDS-10711. Stabilize delete block command queue full test - #11436

Open
rich7420 wants to merge 1 commit into
apache:masterfrom
rich7420:HDDS-10711
Open

rich7420 wants to merge 1 commit into
apache:masterfrom
rich7420:HDDS-10711

Conversation

@rich7420

@rich7420 rich7420 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Stop the background worker before enqueueing commands in the queue-full test. The worker could otherwise consume commands while the test fills the queue, changing their status or preventing the queue from reaching its limit.

The existing PENDING, FAILED and empty-ACK assertions are preserved, with an additional assertion that five commands remain queued. No production code changes.

What is the link to the Apache JIRA?

https://issues.apache.org/jira/browse/HDDS-10711

How was this patch tested?

Copilot AI balanced review requested due to automatic review settings October 7, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

No code issues were identified, but the reported unresolved OM integration failure and draft status warrant human triage before approval.

0 open findings

🧠 Review effort: Balanced

@rich7420
rich7420 marked this pull request as ready for review October 8, 2026 15:18
@Russole
Russole self-requested a review October 9, 2026 12:50

@chihsuan chihsuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the patch! @rich7420 LGTM +1

handler = new DeleteBlocksCommandHandler(
container, configuration, dnConf, "");
// Stop the worker so that handle() can fill the queue without commands being consumed.
handler.stop();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just an observation: I found it interesting that handle() still queues after stop(). 🙂 This looks fine given the production shutdown flow, but if production later rejects commands after shutdown, we’ll need to adjust the test setup.

@rich7420 rich7420 Oct 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review! Agreed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants