Skip to content

[#2198] Fix pending sends count on rolled back send#2199

Open
mattrpav wants to merge 2 commits into
apache:mainfrom
mattrpav:amq-gh-2198-pending-sends-count
Open

[#2198] Fix pending sends count on rolled back send#2199
mattrpav wants to merge 2 commits into
apache:mainfrom
mattrpav:amq-gh-2198-pending-sends-count

Conversation

@mattrpav

@mattrpav mattrpav commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This was uncovered while looking into a different issue.

The problem here is that pending sends counter (internal, not exposed) does not decrement on a rolled back producer transaction.

@cshannon

cshannon commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

@mattrpav - I have asked this several times before, can you please start adding actual information to your PRs and issues?

You added a bunch of info to the test itself which explains the problem, some of that needs to be in the description so people can figure out what the point of the PR is without having to look at the test.

@cshannon cshannon 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.

LGTM, this is a good catch, just a couple minor tweaks that I noticed that could be done

Comment thread activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.java Outdated
@mattrpav mattrpav force-pushed the amq-gh-2198-pending-sends-count branch from 049bb42 to 4081252 Compare July 8, 2026 20:40

@cshannon cshannon 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.

LGTM to merge, assuming CI looks good. I'm always amazed when stuff like this has been hanging around for such a long time and no one noticed. Another example is #2178 that was broken for a long time

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

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants