GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [fix][client] Serialize chunked-message bookkeeping to fix use-after-free and count/queue drift by SongOf · Pull Request #26084 · apache/pulsar

Conversation

@SongOf

@SongOf SongOf commented Jun 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Motivation

ConsumerImpl's chunked-message reassembly state — the per-uuid ChunkedMessageCtx, its chunkedMsgBuffer,
pendingChunkedMessageCount and pendingChunkedMessageUuidQueue — is mutated from two different threads with no
synchronization:

  • the receive/assembly path (processMessageChunk, and the last-chunk finalize in messageReceived) runs on
    the Netty IO event-loop thread (ClientCnx.handleMessage calls consumer.messageReceived(...) directly);
  • the incomplete-chunk expiry path (removeExpireIncompleteChunkedMessages) runs on the client's
    internalPinnedExecutor — a separate single-thread pool (client.getInternalExecutorService()), not the
    eventLoopGroup.

When a late chunk for a uuid arrives while the expiry task is removing that same ctx, the expiry thread can
release() / recycle() a ChunkedMessageCtx and its buffer while the receive thread is still writing into it.
This races into:

  • use-after-free / double-free of chunkedMsgBuffer (IllegalReferenceCountException, or worse — writing into
    memory the allocator already handed to someone else);
  • double ChunkedMessageCtx.recycle(), which corrupts the Netty Recycler pool and can hand the same instance to
    two different chunked messages;
  • pendingChunkedMessageCount drift (non-atomic int mutated from both threads).

Incomplete-chunk expiry is enabled by default (expireTimeOfIncompleteChunkedMessageMillis = 1 minute), so any
consumer of chunked messages is exposed.

The same bookkeeping also has several single-threaded defects:

  • a redelivered first chunk (chunkId == 0 for a uuid that already has an in-progress ctx) replaced the old ctx
    without decrementing pendingChunkedMessageCount and re-enqueued the uuid, so the counter over-counted and the
    queue held duplicate / mis-ordered entries;
  • a completed chunked message was removed from chunkedMessagesMap but its uuid stayed at the head of
    pendingChunkedMessageUuidQueue. removeExpireIncompleteChunkedMessages uses peek() and returned on that null
    ctx, so every incomplete message queued behind such a ghost head was never expired (buffers leaked, chunks
    never acked);
  • the forward-gap discard path (a chunk that skips ids) removed the ctx from the map without decrementing the
    count or removing the queue entry.

Modifications

  • Add a dedicated chunkedMessageLock. processMessageChunk, removeOldestPendingChunkedMessage and
    removeExpireIncompleteChunkedMessages run under it, and messageReceived holds it across the last-chunk
    assembly + finalize so the assemble→finalize window is closed. pendingChunkedMessageCount is mutated only
    under the lock. Non-chunked messages never touch it.
  • No application code runs under the lock. doAcknowledge is not purely asynchronous: the persistent
    acknowledgments grouping tracker invokes the consumer's acknowledgment interceptors inline. Every path that decides
    an ack while holding the lock (expiry, oldest-eviction, corrupted-ctx replacement, duplicated chunks, expired
    unexpected chunks) now appends the id to a deferredAcks list, and the three entry points that take the lock issue
    those acks only after leaving the synchronized block (acknowledgeChunkedMessageIds). Decompression of a completed
    message happens outside the lock too: the last chunk is assembled and the ctx removed + recycled under the lock,
    the still-compressed buffer and chunk ids are captured into locals, and the codec runs after the lock is released.
  • Final-chunk decompression failures dispose of everything. The detached assembled buffer is released in a
    finally, and uncompressPayloadIfNeeded now treats an unchecked codec exception (ZLib throws
    IllegalArgumentException when the decoded size differs from the advertised one) the same way as an
    IOException: log, discardCorruptedMessage, return null. The null branch then individually acks the earlier
    chunks' message ids, which the expiry sweep can no longer reach since the ctx is gone. This also changes the
    non-chunked path, where such an exception previously escaped messageReceived on the IO thread instead of
    discarding the message with DecompressionError.
  • Keep count and queue in sync with the map on every removal: the redelivered-first-chunk replacement decrements the
    count and re-enqueues the uuid once at the tail; the final-chunk completion and the forward-gap discard remove the
    uuid from the queue (and the latter decrements the count); and removeExpireIncompleteChunkedMessages drains ghost
    heads instead of stopping at them, mirroring removeOldestPendingChunkedMessage.

No public API, wire protocol, schema, config defaults or metrics are changed.

Verifying this change

  • Make sure that the change passes the CI checks.

This change added tests to ConsumerImplTest and can be verified as follows:

  • testChunkedMessageCountRaceBetweenReceiveAndExpiry — drives processMessageChunk on a "receiver" thread
    concurrently with the real removeExpireIncompleteChunkedMessages on an "expirer" thread for the "late chunk
    arrives for a uuid being expired" scenario. Fails before the fix (IllegalReferenceCountException / corrupted
    count).
  • testDuplicateFirstChunkOvercountsPendingChunkedMessageCount — redelivered first chunk; count equals map size and
    the uuid appears once in the queue.
  • testExpiryDrainsPastGhostQueueEntries — a completed uuid at the queue head must not stop an expired incomplete
    message behind it from being cleaned.
  • testForwardGapDiscardKeepsCountAndQueueConsistent — the forward-gap discard keeps count and queue in sync.
  • testFinalChunkThroughMessageReceivedDeliversAssembledMessage — through the real messageReceived entry point
    with CRC32C-framed ZLIB chunks: the message arrives with the original payload and a ChunkMessageIdImpl, the
    assembled buffer is released, chunk ids are registered with the unack tracker, bookkeeping is empty.
  • testFinalChunkDecompressionFailureThroughMessageReceived (two variants: corrupt input → IOException;
    mismatched advertised size → IllegalArgumentException) — the detached buffer is released, chunk 0 is acked
    through the interceptor, chunk 1 is discarded on the connection, bookkeeping is empty, nothing escapes
    messageReceived. The size-mismatch variant fails before the fix with the escaping IllegalArgumentException.
  • testChunkReceiveProceedsWhileExpiryAckInterceptorIsBlocked — an interceptor parks onAcknowledge on a latch
    while expiry is acking; a chunk for another uuid must still be processed on a second thread. Fails before the fix
    with the receiver blocked on the lock.
  • testReplacedCorruptedChunkedMessageAcksItsEarlierChunks and testEvictingOldestPendingChunkedMessageAcksItsChunks
    — the replacement and max-pending eviction paths ack through the deferred-ack path and keep count/queue/map
    consistent.

ConsumerImplTest (31) passes, the full pulsar-client unit suite (952 tests) passes with no regressions, and
./gradlew quickCheck is clean.

Does this pull request potentially affect one of the following parts:

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc-required
  • doc-not-needed
    (internal bug fix; no user-facing behavior or config change)
  • doc
  • doc-complete

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
lhotari
lhotari reviewed Jun 24, 2026
View reviewed changes
Comment thread pulsar-client/src/test/java/org/apache/pulsar/client/impl/ConsumerImplTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

lhotari
lhotari reviewed Jun 24, 2026
View reviewed changes
Comment thread pulsar-client/src/test/java/org/apache/pulsar/client/impl/ConsumerImplTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@SongOf
SongOf force-pushed the fix/client-chunked-message-bookkeeping-race branch 2 times, most recently from 69fb6f6 to 910db42 Compare June 25, 2026 03:17
@SongOf
SongOf requested a review from lhotari June 25, 2026 04:00
congbobo184
congbobo184 approved these changes Jun 28, 2026
View reviewed changes

@congbobo184 congbobo184 left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@congbobo184 congbobo184 assigned SongOf Jun 28, 2026
@congbobo184 congbobo184 added the type/bug The PR fixed a bug or issue reported a bug label Jun 28, 2026
@congbobo184 congbobo184 added this to the 5.0.0-M2 milestone Jun 28, 2026
Denovo1998
Denovo1998 requested changes Jun 29, 2026
View reviewed changes
Comment thread pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@SongOf
SongOf force-pushed the fix/client-chunked-message-bookkeeping-race branch 3 times, most recently from d9b2d45 to 33da7ad Compare June 29, 2026 17:14
Denovo1998
Denovo1998 approved these changes Jul 17, 2026
View reviewed changes
lhotari
lhotari reviewed Jul 25, 2026
View reviewed changes

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review performed with AI assistance (Claude Code / Claude Fable 5 combined with a Codex gpt-5.6-sol review pass); findings below were verified against the code before posting.

Overall the change looks sound and worthwhile. The receive/assembly path (Netty IO thread) and the incomplete-chunk expiry path (internalPinnedExecutor) genuinely race on ChunkedMessageCtx, its buffer and pendingChunkedMessageCount, and the new chunkedMessageLock serializes them correctly. The lock scope is well chosen — decompression, newMessage and callback dispatch stay outside it, non-chunked messages never touch it — and I verified there are no lock-ordering cycles (nothing called under the lock — doAcknowledge, increaseAvailablePermits, trackMessage — re-enters chunk code) and that buffer refcounts stay balanced (uncompressPayloadIfNeeded does not consume its input). The PR also fixes several real pre-existing bugs beyond the headline race: the assemble→finalize NPE window, the duplicate-first-chunk overcount, the forward-gap discard desync, and — most impactful — the ghost-head bug where a completed uuid at the queue head permanently stalled expiry. All four new tests pass locally (:pulsar-client-original:test, race test ~4s).

One regression should be addressed before merge:

1. Decompression failure now permanently drops the earlier chunks' message IDs (final-chunk path in messageReceived)

The ctx is removed from chunkedMessagesMap and recycled inside the lock before decompression. If uncompressPayloadIfNeeded then fails, the code returns without acking or tracking the captured chunkedMessageIds; discardCorruptedMessage inside it only handles the final chunk's ID. Since the ctx is gone, the expiry sweep can never reach those IDs either — the first n−1 chunks stay unacked until the consumer reconnects (permanent ack hole / stuck backlog on that subscription). Previously the ctx stayed in the map and expiry eventually acked all recorded chunk IDs (before tripping the latent double-release this PR fixes — broken differently, but disposal did happen). Suggested fix: in the uncompressedPayload == null branch, individually doAcknowledge each non-null captured ID, mirroring the corrupted-chunk handling in doProcessMessageChunk / removeChunkMessage(..., autoAck=true) semantics.

Test / hygiene items:

2. Reflection into private state in the new tests. Project convention is no reflection into private state — use @VisibleForTesting package-private accessors instead. ConsumerImplTest is already in org.apache.pulsar.client.impl, so making processMessageChunk, pendingChunkedMessageCount, pendingChunkedMessageUuidQueue and expireChunkMessageTaskScheduled package-private removes all setAccessible/FieldUtils use. Some reflection is unnecessary even now: expireTimeOfIncompleteChunkedMessageMillis is protected and can be assigned directly, as the test already does with chunkedMessagesMap.

3. Stale javadoc on testDuplicateFirstChunkOvercountsPendingChunkedMessageCount: it still says "Currently FAILS deterministically … Enable once the duplicate-first-chunk path decrements the counter", which is pre-fix wording — the fix is included in this PR and the test passes. It also hardcodes source line references ("ConsumerImpl.java:1628-1634") that will rot. Please rewrite it to describe the guarded invariant.

4. The race test has no timeout. testChunkedMessageCountRaceBetweenReceiveAndExpiry uses unbounded receiver.join()/expirer.join() and no @Test(timeOut = …). The scenario it guards is exactly the kind whose future regression could be a deadlock between the two paths — which would hang the suite instead of failing. Please add a generous timeOut.

5. The PR description understates the change (in a good way): the ghost-head expiry-stall fix in doRemoveExpireIncompleteChunkedMessages (previously a completed uuid at the queue head blocked all expiry behind it indefinitely) and the forward-gap discard count/queue sync fix aren't mentioned, and "Verifying this change" lists 2 tests while 4 were added. Please update Motivation/Modifications so the full behavior change is captured for reviewers and release notes.

6. The PR title is truncated — it literally ends with a Unicode ellipsis ("…to fix use-after-…", GitHub's auto-fill from a long commit subject). Please complete it, e.g. [fix][client] Serialize chunked-message bookkeeping to fix use-after-free and count drift.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@SongOf SongOf changed the title [fix][client] Serialize chunked-message bookkeeping to fix use-after-… [fix][client] Serialize chunked-message bookkeeping to fix use-after-free and count/queue drift Jul 27, 2026
song-of-bot added 2 commits July 28, 2026 02:34
@song-of-bot
[fix][client] Serialize chunked-message bookkeeping to fix use-after-…
472efd8
…free and count/queue drift
@song-of-bot
Merge branch 'master' into fix/client-chunked-message-bookkeeping-race
3e4b95b
# Conflicts:
#	pulsar-client/src/test/java/org/apache/pulsar/client/impl/ConsumerImplTest.java
@SongOf
SongOf force-pushed the fix/client-chunked-message-bookkeeping-race branch from d46ad7b to 3e4b95b Compare July 28, 2026 16:27
@SongOf

SongOf commented Jul 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@lhotari
Fixed 1–4; Edited 5–6.


Thanks for the thorough review — fixed 1–4:

  1. Fixed: the ack loop in messageReceived now skips the last entry (chunkedMessageIds[0..length-2]), since it's already acked by discardCorruptedMessage inside uncompressPayloadIfNeeded's failure path. The earlier n−1 chunks
    are now acked individually instead of being dropped.
  2. Fixed: pendingChunkedMessageCount, pendingChunkedMessageUuidQueue, expireChunkMessageTaskScheduled, and processMessageChunk are now package-private + @VisibleForTesting; all setAccessible/FieldUtils reflection removed from
    the test file.
  3. Fixed: rewrote the javadoc on testDuplicateFirstChunkOvercountsPendingChunkedMessageCount to describe the guarded invariant instead of the pre-fix failure state; dropped the hardcoded line references.
  4. Fixed: added @test(timeOut = 60000) to testChunkedMessageCountRaceBetweenReceiveAndExpiry.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lhotari lhotari modified the milestones: 5.0.0-M2, 5.0.0 Sep 12, 2026
@lhotari
Merge branch 'master' into fix/client-chunked-message-bookkeeping-race
81f8ff7
lhotari
lhotari requested changes Sep 18, 2026
View reviewed changes

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tightening the chunk bookkeeping. The map/count/queue transitions and normal final-chunk ownership transfer look consistent. Two remaining failure paths need attention: an unchecked decompression exception can leave the detached assembled buffer unreleased, and expiry can invoke application acknowledgment interceptors while holding the new lock, blocking the receive path. One added test also leaves its final partial-message buffer allocated.

Please add coverage through messageReceived for final-chunk success and decompression failures, including an unchecked codec exception. The new race test exercises only non-final chunks, so it does not cover the changed ownership-transfer path.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pulsar-client/src/test/java/org/apache/pulsar/client/impl/ConsumerImplTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

lhotari and others added 5 commits September 19, 2026 13:10
@lhotari
Merge branch 'master' into fix/client-chunked-message-bookkeeping-race
60839af
@song-of-bot
Merge remote-tracking branch 'apache/master' into fix/client-chunked-…
82f814a
…message-bookkeeping-race
@song-of-bot
[fix][client] Issue chunk acks outside chunkedMessageLock and release…
3a30fe4
… the assembled buffer on unchecked decompression failures
@song-of-bot
Merge remote-tracking branch 'origin/fix/client-chunked-message-bookk…
855c155
…eeping-race' into fix/client-chunked-message-bookkeeping-race
@song-of-bot
[fix][test] Describe the ghost-head expiry test as a defensive invariant
3b40ea1
@Denovo1998 Denovo1998 mentioned this pull request Oct 9, 2026
[improve][client] Replace chunked-message queue and counter with an insertion-ordered map in ConsumerImpl #26689
Open
1 of 11 tasks
lhotari
lhotari reviewed Oct 13, 2026
View reviewed changes

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes cover all three open threads. The final-chunk buffer is released in finally, acks run after the lock is released, and the new tests exercise both paths. One small point is left: if chunk processing throws, the acks collected under the lock are dropped (see the inline comment). I did not run the tests locally.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@song-of-bot
[fix][client] Issue acks queued under chunkedMessageLock even when ch…
d1b6a55
…unk processing throws
@SongOf SongOf mentioned this pull request Oct 13, 2026
[fix][client] Release the output buffer when a compression codec fails to decode #26889
Merged
1 of 15 tasks
codelipenghui
codelipenghui reviewed Oct 13, 2026
View reviewed changes
Comment thread pulsar-client/src/test/java/org/apache/pulsar/client/impl/ConsumerImplTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pulsar-client/src/test/java/org/apache/pulsar/client/impl/ConsumerImplTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

lhotari
lhotari approved these changes Oct 14, 2026
View reviewed changes

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The last open point is fixed: all three paths that take chunkedMessageLock now issue the collected acks from a finally, after the lock is released. The new test confirms the replaced context's ids are acked when the oversized replacement chunk throws. I agree with the open suggestion on the test: it goes through the processMessageChunk wrapper, so it does not guard the finally in messageReceived. A framed-message variant would cover that, and it is optional. I did not run the tests locally.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
codelipenghui
codelipenghui approved these changes Oct 15, 2026
View reviewed changes

@codelipenghui codelipenghui left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed d1b6a55. The production fix looks sound: chunk-state lifetime and bookkeeping are serialized, finalization is atomic with assembly, and decoding and acknowledgment callbacks run outside the lock with exception-safe cleanup. No blocking production issues identified.

Approving with the two non-blocking inline comments already posted in the earlier review, without duplicating them:

  • Add cooperative cancellation and bounded cleanup for the stress-test workers. A focused interruption probe confirmed a worker can survive fixture teardown.
  • Optionally add a framed messageReceived overflow regression to guard the production acknowledgment-finally directly; the local production-path probe passed.

Same-head local validation: 32/32 focused tests and quickCheck passed; the unpatched race reproduced count drift and the patched version passed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
song-of-bot added 4 commits October 15, 2026 16:17
@song-of-bot
[fix][client] Release a malformed chunk's payload when appending it t…
30f2bbc
…o the message buffer fails
@song-of-bot
[improve][test] Stop the chunk race test's workers before teardown wh…
9fe37e7
…en it fails or times out
@song-of-bot
Merge remote-tracking branch 'apache/master' into fix/client-chunked-…
5835992
…message-bookkeeping-race

# Conflicts:
#	pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
@song-of-bot
[improve][test] Assert that chunk expiry cannot observe a half-remove…
13d2033
…d completed message
@SongOf

SongOf commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Merged master. #26658 fixed the same uuid-queue issue that this PR already covers under chunkedMessageLock, so the conflicts keep this PR's version. Its new testExpiryStaleHeadSkipDoesNotDropConcurrentLiveEntry forces expiry to inspect A between the removal of A's context and the removal of its uuid. With completion and expiry serialized on the lock, expiry blocks instead, so the hook waited out its 10 seconds and A was not received in time. In 13d2033 the test now asserts that expiry cannot observe that intermediate state, and keeps the check that B stays reachable for expiry. It fails if the expiry path stops taking the lock.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

codelipenghui added 2 commits October 15, 2026 11:30
@codelipenghui
Merge remote-tracking branch 'apache/master' into fix/client-chunked-…
704f024
…message-bookkeeping-race

# Conflicts:
#	pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
@codelipenghui
Merge remote-tracking branch 'apache/master' into fix/client-chunked-…
96a4f72
…message-bookkeeping-race

# Conflicts:
#	pulsar-client/src/test/java/org/apache/pulsar/client/impl/ConsumerImplTest.java
@codelipenghui
codelipenghui merged commit 7793806 into apache:master Oct 16, 2026
43 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Asthenia0412 Asthenia0412 mentioned this pull request Oct 16, 2026
[fix][client] Sync pendingChunkedMessageCount with chunkedMessagesMap on dropped chunks #26914
Closed
lhotari added a commit that referenced this pull request Oct 16, 2026
@SongOf @song-of-bot
@lhotari @codelipenghui
[fix][client] Serialize chunked-message bookkeeping to fix use-after-…
5b6b970
…free and count/queue drift (#26084)

Co-authored-by: maxlisongsong <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
Co-authored-by: Penghui Li <[email protected]>
(cherry picked from commit 7793806)
@lhotari lhotari added release/5.0.1 cherry-picked/branch-5.0 release/4.2.6 release/4.0.15 labels Oct 16, 2026
lhotari added a commit that referenced this pull request Oct 16, 2026
@SongOf @song-of-bot
@lhotari @codelipenghui
[fix][client] Serialize chunked-message bookkeeping to fix use-after-…
2d80f94
…free and count/queue drift (#26084)

Co-authored-by: maxlisongsong <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
Co-authored-by: Penghui Li <[email protected]>
(cherry picked from commit 7793806)
@lhotari lhotari added cherry-picked/branch-4.2 cherry-picked/branch-4.0 labels Oct 17, 2026
scmi-c8y pushed a commit to scmi-c8y/pulsar that referenced this pull request Oct 30, 2026
@SongOf @song-of-bot
@lhotari @codelipenghui
[fix][client] Serialize chunked-message bookkeeping to fix use-after-…
a8201ba
…free and count/queue drift (apache#26084)

Co-authored-by: maxlisongsong <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
Co-authored-by: Penghui Li <[email protected]>
(cherry picked from commit 7793806)
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Nov 16, 2026
@SongOf @song-of-bot
@lhotari @codelipenghui @nodece
[fix][client] Serialize chunked-message bookkeeping to fix use-after-…
3c8de98
…free and count/queue drift (apache#26084)

Co-authored-by: maxlisongsong <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
Co-authored-by: Penghui Li <[email protected]>
(cherry picked from commit 7793806)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lhotari lhotari lhotari approved these changes
@codelipenghui codelipenghui codelipenghui approved these changes
@congbobo184 congbobo184 congbobo184 approved these changes
@Denovo1998 Denovo1998 Denovo1998 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@SongOf SongOf

Labels

cherry-picked/branch-4.0 cherry-picked/branch-4.2 cherry-picked/branch-5.0 release/4.0.15 release/4.2.6 release/5.0.1 type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Milestone

5.0.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@SongOf @lhotari @codelipenghui @congbobo184 @Denovo1998 @song-of-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.