Skip to content

Fix concurrent subscription consumer handshakes - #18654

Open
Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:fix/subscription-consumer-session-fenced
Open

Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:fix/subscription-consumer-session-fenced

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

What is changed

  • Serialize handshakes for the same subscription consumer identity and atomically transfer ownership to the newer connection.
  • Fence the replaced receiver with status 1919 so stale heartbeats, subscriptions, and handshakes cannot affect the active consumer.
  • Treat consumer fencing as a terminal client state: stop background workers and reconnect attempts, close only the transport session, and preserve the dedicated exception.
  • Add English/Chinese messages and regression tests for concurrent handshakes, late handshakes/exits, client lifecycle, and poll handling.

Verification

  • mvn test-compile -DskipTests
  • mvn test-compile -P with-zh-locale -DskipTests
  • client subscription regression tests: 10 passed
  • datanode subscription receiver regression tests: 24 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.

1 participant