Skip to content

fix(#5295): gate RocketMQ 5 POP broker ACK on distribution completion (PR #5316, with both contributor trailers) - #5336

Merged
qqeasonchen merged 1 commit into
apache:developfrom
qqeasonchen:fixup/5316-5325-combined-attribution
Sep 7, 2026
Merged

qqeasonchen merged 1 commit into
apache:developfrom
qqeasonchen:fixup/5316-5325-combined-attribution

Conversation

@qqeasonchen

Copy link
Copy Markdown
Contributor

Combined re-land of the four earlier #5330 / #5331 / #5333 / #5334 commits (all reverted by #5335) as a single commit on develop, with both contributor trailers preserved.

What this PR does

Why a single commit instead of four

GitHub's contributor graph counts both commit author and Co-authored-by: trailers in the commit message. The earlier four-commit approach split the attribution across squash merges with inconsistent trailer handling. Consolidating into one PR with two trailers (zhang-arvin for #5316, wangyusheng1985 for #5325) preserves both contributors' graph credit in a single squash-merge commit.

Files changed: 2 files

  • eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/ingress/UniIngressService.java (barrier block + attribution Javadoc)
  • eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/ingress/package-info.java (package-level barrier doc)

Closes #5316, Closes #5325, Fixes #5295

cc @zhang-arvin @wangyusheng1985

Co-authored-by: zhang-arvin arvin.zhang@htx-inc.com
Co-authored-by: wangyusheng1985 wangyusheng1985@users.noreply.github.com

…letion (PR apache#5316)

Combined re-land of the four earlier apache#5330 / apache#5331 / apache#5333 / apache#5334 commits
(all reverted by apache#5335) as a single commit on develop.

The barrier logic is zhang-arvin's original contribution from PR apache#5316,
ported onto the post-apache#5301-Sub-PR-B/C UniIngressService structure
(apache#5311 / apache#5312 rewrote the deliver path):

- Shared mqAck (first ACK = broker ACK, premature for BROADCAST/MULTICAST)
  -> per-frame AtomicInteger initialized to targets.size(); broker ack only
  fires when the last required delivery ACKs (counter reaches 0).
- LOAD_BALANCE (1 target): 1 ACK -> broker ACK (semantic unchanged).
- BROADCAST (N targets): N ACKs -> broker ACK.
- MULTICAST (matched targets): all matched ACKs -> broker ACK.
- No popCk path: unchanged (null callback, no broker ack).
- Reuses SubscriptionManager.targetsFor(); preserves existing TTL check,
  Otel span, metrics, and Frame-architecture context.

Attribution:
- Source-level Javadoc in UniIngressService.java (3-line attribution block
  on the barrier path) and package-level paragraph in
  ingress/package-info.java both name PR apache#5316 and zhang-arvin as the
  original contributor of the AtomicInteger barrier logic.

README content (originally targeted by apache#5325 / wangyusheng1985) is left
untouched: the 3 broken anchors were already removed by apache#5326 (docs: sync
documentation with implementation status), which rewrote the Quick start
section to point at docs/eventmesh-getting-started.md. The README has been
in its post-apache#5326 state since before this commit, so no README change is
needed.

Closes apache#5316
Closes apache#5325
Fixes apache#5295

Co-authored-by: zhang-arvin <arvin.zhang@htx-inc.com>
Co-authored-by: wangyusheng1985 <wangyusheng1985@users.noreply.github.com>
@qqeasonchen
qqeasonchen merged commit 71dd78d into apache:develop Sep 7, 2026
1 check 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.

[Bug] Gate RocketMQ 5 POP broker ACK on distribution completion

1 participant