Skip to content

fix: explicitly acknowledge UMB messages in receiver#63

Merged
midnightercz merged 1 commit into
release-engineering:mainfrom
davidlanouette:ack-umb-messages
Jan 29, 2026
Merged

fix: explicitly acknowledge UMB messages in receiver#63
midnightercz merged 1 commit into
release-engineering:mainfrom
davidlanouette:ack-umb-messages

Conversation

@davidlanouette

Copy link
Copy Markdown

Messages received from ActiveMQ were not being marked as read because the receiver was closing the connection before auto-accept could transmit the acknowledgment to the broker. Add explicit accept() call after parsing each message to ensure proper acknowledgment.

@davidlanouette

Copy link
Copy Markdown
Author

This solves the problem of messages being received and processed, but never ACK'd by the client. In that situation, they continue to live in the queue. This uses a lot of resources in the broker (to retain the messages when they are no longer needed, to track what messages have been sent and what messages haven't, etc.) By ACKing each message, it allows the broker to perform the proper record keeping in real-time, and reduces resource usage on the broker.

@midnightercz midnightercz self-requested a review January 29, 2026 14:17
@codecov-commenter

codecov-commenter commented Jan 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a20106b) to head (f9f0d63).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #63   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines         1277      1279    +2     
=========================================
+ Hits          1277      1279    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Messages received from ActiveMQ were not being marked as read because
the receiver was closing the connection before auto-accept could
transmit the acknowledgment to the broker. Add explicit accept() call
after parsing each message to ensure proper acknowledgment.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: David Lanouette <dlanouet@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@midnightercz midnightercz merged commit 3eff868 into release-engineering:main Jan 29, 2026
7 checks passed
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.

3 participants