Skip to content

[ISSUE #11622] Fix transaction commits and rollbacks when producers use the Remoting Proxy - #11625

Open
majialoong wants to merge 1 commit into
apache:developfrom
majialoong:ISSUE-11622
Open

majialoong wants to merge 1 commit into
apache:developfrom
majialoong:ISSUE-11622

Conversation

@majialoong

Copy link
Copy Markdown
Contributor

Which Issue(s) This PR Fixes

Brief Description

Remoting send requests are forwarded directly by SendMessageActivity without recording transaction data, so producer commits and rollbacks are dropped in TransactionActivity.

Forward producer-initiated END_TRANSACTION requests directly to the broker, while keeping messagingProcessor.endTransaction for transaction check replies.

How Did You Test This Change?

  • Added unit tests in TransactionActivityTest for producer forwarding, missing broker name, and transaction check replies.
  • Verified end-to-end on a cluster proxy and broker deployment for commit, rollback, and transaction check flows.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.89%. Comparing base (e114b54) to head (9e7c377).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #11625      +/-   ##
=============================================
+ Coverage      50.86%   50.89%   +0.02%     
- Complexity     14881    14887       +6     
=============================================
  Files           1391     1391              
  Lines         103773   103775       +2     
  Branches       13614    13615       +1     
=============================================
+ Hits           52789    52821      +32     
+ Misses         44724    44690      -34     
- Partials        6260     6264       +4     

☔ View full report in Codecov by Harness.
📢 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.

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.

[Bug] Producer transaction commits and rollbacks are silently dropped when using Remoting Proxy

2 participants