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][ml][broker][client] Sync branch-as-4.0 with apache branch-4.0 (2026-09 to 2026-11, 159 commits) by nodece · Pull Request #109 · ascentstream/pulsar

Conversation

@nodece

@nodece nodece commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Full sync of apache/pulsar branch-4.0 into branch-as-4.0. CI validation only — do not merge without review. Two batches, 159 commits on top of branch-as-4.0@7e3672a146a.

Batch 1 — full drift sync (105 upstream picks)

  • 4 customer-relevant PRs previously missing on 4.0: [fix][broker] Release the compaction buffers and permits on flush failures apache/pulsar#26576 (compaction flush release), [fix][client] Release the command header when send serialization fails apache/pulsar#26492 (send serialization cmd header release), [fix][client] Defer op cmd release to the write event loop on send timeout apache/pulsar#26456 (defer op cmd release to write event loop), [fix][client] Fix buffer ownership on the send failure paths apache/pulsar#26455 (buffer ownership on send failure paths)
  • Everything after the 2026-10-13 frontier: security upgrades (ZK 3.9.7, Netty 4.1.140, Jackson 2.18.12, Oxia 0.10.4, guava/snappy/zstd/OkHttp...), broker/ml/txn fixes (topic deletion [fix][broker] Serialize topic metadata deletion with in-flight loading apache/pulsar#27136/[fix][broker] Wait for topic cache removal before completing deletion apache/pulsar#27137, replicated subscription retry [fix][broker] Retry applying received subscription updates apache/pulsar#27158/[fix][broker] Retry failed replicated subscription updates while idle apache/pulsar#27159/[fix][broker] Ignore replicated subscription updates for the compaction subscription apache/pulsar#27032, replay-pending-consumers-gone [fix][broker] Don't dispatch a replay read that was pending when all consumers of a Shared subscription disconnected apache/pulsar#27007, txn retries [fix][txn] Retry failed transaction buffer snapshots on idle topics apache/pulsar#27221/[fix][txn] Retry participant lookup metadata failures apache/pulsar#27224, [fix][broker] Retry incompatible replication schemas without topic unload apache/pulsar#27026 replication schema retry, [fix][broker] Reset fixed delay detection when the in-memory delayed delivery tracker is cleared apache/pulsar#27021 delay tracker reset, [fix][managed-ledger] Persist partial batch ACKs on flush apache/pulsar#26765 partial batch-ack flush, [fix][broker] The configuration subscriptionExpirationTimeMinutes does not work if the topic was reloaded frequently apache/pulsar#25244 subscription expiration, ZK multiRead [fix][meta] Split ZooKeeper read batches rejected by the multiRead limits apache/pulsar#27353, ...)

Batch 2 — previously-ignored fixes (45 picks, from a 2-month gap audit)

  • T1 production-path: [fix][broker] Don't let an in-flight read dispatch a Key_Shared entry before an older one added to the replay queue apache/pulsar#26868 (Key_Shared replay ordering), [fix][ml][broker] Keep source ledger data on every shadow managed ledger trim, delete and offload path apache/pulsar#26746 full ML side (shadow ledger source-data preservation), [fix][client] Keep transactional and non-transactional messages in separate batches apache/pulsar#26547 (txn/plain batch separation — was on 3.0 only), [fix] Fix cursor deadlock when skipping non-recoverable entries during mark-delete persistence apache/pulsar#26570 (cursor deadlock in mark-delete skip), [fix] Fix ManagedLedgerImpl's pendingAddEntries leak. apache/pulsar#25240 (pendingAddEntries leak), [fix][ml] Fail in-flight adds when a managed ledger is terminated apache/pulsar#26678+[fix][ml] Fail queued adds when a managed ledger is terminated during a ledger rollover apache/pulsar#26680 (ML terminated fail adds), [fix][broker] Fix Shared and Key_Shared consumer stalls during FLOW and unblock races apache/pulsar#26797 (Shared/Key_Shared FLOW stalls), [fix][broker] Fix persistent throughput degradation caused by permit loss during frequent reconnects on Shared subscriptions apache/pulsar#26289 (reconnect permit loss), [fix][broker] Fix Exclusive/Failover dispatch rate limiting using counts from another dispatch apache/pulsar#26810 (Failover dispatch rate), [fix][broker] Debit un-acked messages only when the consumer is actually removed apache/pulsar#26422
  • T2 security: [fix][broker] Check the original principal of proxied HTTP requests with its own authentication data apache/pulsar#26748 (proxied HTTP original-principal check), [fix][broker] Check topic permissions for binary GetSchema and GetOrCreateSchema apache/pulsar#26643/[fix][broker] Check topic permissions for partitions and subscriptions added to a transaction apache/pulsar#26644 (schema/txn permission checks), [fix][fn] Check packages permission for function, source and sink package URLs apache/pulsar#26771/[fix][fn] Check produce permission on the input topic when triggering functions apache/pulsar#26777/[fix][fn] Validate package name components and storage paths consistently apache/pulsar#26768/[fix][fn] Apply the worker connectors list checks to the deprecated functions connectors endpoint apache/pulsar#26745 (functions package/permissions), [fix][ws] Check dead letter topic permission for WebSocket consumers apache/pulsar#26772 (WS DLQ permission), [fix][proxy] Fix direct memory leaks from dropped reference-counted messages apache/pulsar#26811 (proxy direct-memory leak), [fix][broker] Close Conscrypt SSL engines when Jetty closes a TLS connection apache/pulsar#26812 (Conscrypt leak)
  • T3 stability: [fix][broker] Avoid load shedding and metadata writes from a former leader apache/pulsar#26253 (ex-leader shedding), [fix][broker] Fix ownership-generation races in OwnershipCache removeOwnership and lock-expiry cleanup apache/pulsar#26197/[fix][broker] Fix assignment and ownership cleanup races in the extensible load manager apache/pulsar#26520/[fix][broker] Fix early completion and false timeouts in SplitManager and UnloadManager apache/pulsar#26363 (ownership/LM races), [fix][broker] Fix lookup permit leak when namespace policy reads fail apache/pulsar#26606 (lookup permit leak), [fix][broker] Propagate bundle split failures to the completion future apache/pulsar#26735 (bundle split failures), [fix][broker] Don't serve topic policies from a cache whose init future has not completed apache/pulsar#26513 (policies cache), [fix][ml] Preserve cursor properties when recovering from an unreadable cursor ledger apache/pulsar#26512 (cursor properties on rollback), [fix][ml] Propagate cursor ledger deletion failures apache/pulsar#26734 (cursor ledger deletion propagation), [fix][broker] Preserve compaction state on ledger close failure apache/pulsar#26665 (compaction state), [fix][meta] Track explicitly acquired underreplicated ledger locks apache/pulsar#26670, [fix][broker] Prevent NPE when the last ACK races with sticky hash reassignment apache/pulsar#26471, [fix][broker] Prevent automatic TTL expiry from skipping reader messages apache/pulsar#26505, [fix][broker] Send ActiveConsumerChange for non-persistent Failover subscriptions apache/pulsar#26482, [fix][client] Fix ZeroQueueConsumer stuck on pending receiveAsync after reconnection apache/pulsar#26814 (ZeroQueue stuck), [fix][client] Prevent duplicate cleanup and leaks on producer send failures apache/pulsar#26641/[fix][client] Release the reserved memory only once when failing a send in a terminal state apache/pulsar#26476/[fix][client] Release connections opened after close apache/pulsar#26733 (producer/consumer leak series), [fix][meta] Avoid duplicate sync listener registration in OxiaMetadataStore apache/pulsar#26856/[fix][meta] Don't leak closed leader elections and their metadata store listeners apache/pulsar#26879/[fix][meta] Don't lose SessionReestablished when a listener invalidates the new session apache/pulsar#26861/[fix][meta] Fix lost ledger metadata updates during concurrent listener registration and removal apache/pulsar#26819 (meta/leader-election series)
  • ack-domain (careful, per fork rule): [fix][ml] Fix batch ACK index loss when recovering cursor from MetadataStore apache/pulsar#26474 (batch ACK index loss on MetadataStore recovery), [fix][client] Flush acknowledgment groups at the combined size limit apache/pulsar#26594 (ack group flush at combined limit) — ported without touching fork's ack semantics

Deliberately skipped

  • [improve][broker] trace topic loading latency and timeout states apache/pulsar#26666 (topic-loading trace refactor — observability only, would rearrange fork-customized loading flow)
  • [fix][meta] Fix repeated metadata recovery failures after a ZooKeeper session expires apache/pulsar#26845 (ZK session watcher rewrite — fork has its own [fix][meta] Fix ZooKeeper session reconnect race condition in PulsarZooKeeperClient.clientCreator apache/pulsar#25910)
  • [fix][client] Stop tracking ack timeouts on non-persistent topics apache/pulsar#26548 (ack-timeout on non-persistent — dropped per ack-domain rule)
  • Netty [fix][sec][branch-4.x] Upgrade Netty to 4.1.138 to address several CVEs and bugs apache/pulsar#26515/[fix][sec][branch-4.x] Upgrade Netty to 4.1.139.Final apache/pulsar#26830 (superseded by 4.1.140), all [fix][test]/[cli]/CI/infra

Fork-preservation adaptations (conflict domains)

  • ack/checkpoint stays fork: cursor ZK recovery behavior unchanged; ManagedCursorBatchAckRecoveryTest stays deleted; hasSameTxn design untouched
  • hppc consumer-set → containsConsumerInstance via consumerList identity scan
  • PersistentSubscription.resetCursorTo Position-typed future kept; lastCursorResetFuture derived via handle()
  • proto: fork's ManagedCursorInfo fields 9/10 kept, upstream idleSince renumbered to 11
  • ProducerImpl.isMessageSizeExceeded migrated to upstream getMessageSizeError (callers follow)
  • fork storage.groupId + bookkeeper 4.17.4.1 pin preserved in root pom (was lost once during a conflict resolution, restored)
  • auth cluster (broker-common authorization/authentication) synced wholesale from upstream; fork's createBinaryAuthSession re-added
  • ServerCnx auth-data accessors converted to fork's getAuthenticationData()/getOriginalAuthData()

Test plan

Local (JDK17):

  • Full reactor build + test-compile green
  • managed-ledger: ManagedLedgerTest 165, ManagedCursorTest 215, ManagedLedgerErrorsTest 22, ManagedLedgerFactoryTest 10, ManagedLedgerTerminationTest 13, ShadowManagedLedgerImplTest 10
  • client: ProducerImplTest 28, ConsumerImplTest 36, BatchMessageContainerImplTest 22 (incl. restored txn-separation tests)
  • broker: DispatcherMultipleConsumers 4, Compaction 55, TopicList 46, TopicDeletion 14, MessageChunking, AdminApiTest
  • CI on this PR (validation only)

Sorry, something went wrong.

Uh oh!

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

All reactions
nodece and others added 30 commits November 5, 2026 19:09
@nodece
[fix][client] Release the command header when send serialization fails (
e9fb5ca
apache#26492)

(cherry picked from commit bd3c745)
@nodece
[fix][client] Defer op cmd release to the write event loop on send ti…
ea493c4
…meout (apache#26456)

(cherry picked from commit a4173f5)
@nodece
[fix][client] Fix buffer ownership on the send failure paths (apache#…
6b8f8dd
…26455)

(cherry picked from commit b886d77)
(cherry picked from commit 1e65905)
@nodece
[fix][broker] Release the compaction buffers and permits on flush fai…
87f4876
…lures (apache#26576)

(cherry picked from commit 52ddf4a)
@Denovo1998 @lhotari @nodece
[fix][ml] Fix backlog estimation during ledger rollover with pending …
25e70bc
…writes (apache#26647)

Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit 776248a)
@poorbarcode @codelipenghui @nodece
[improve][broker] log incompatible schema failures at warn level, rat…
ca2d832
…her than logging at error level (apache#26804)

Co-authored-by: Penghui Li <[email protected]>
(cherry picked from commit 0be9e38)
@codelipenghui @nodece
[fix][broker] Run the inactive topic GC when it is enabled by dynamic…
76ab108
… configuration (apache#26894)

(cherry picked from commit 312b527)
@poorbarcode @nodece
[fix][broker] Return retryable error for timed-out end transactions (a…
394ded4
…pache#26917)

(cherry picked from commit e6a0f83)
@poorbarcode @nodece
[fix][broker]Incorrect source side topic permission deletion when dis…
a3e4fcc
…abling replication (apache#26479)

(cherry picked from commit 8e61816)
@Technoboy- @nodece
[fix][misc] Upgrade jline to avoid cve (apache#26931)
03fc03b
@merlimat @nodece
[fix][client] Don't retry a Pulsar Admin request after its request ti…
4ac2103
…meout has elapsed (apache#26881)

(cherry picked from commit 8f2d75f)
@lhotari @nodece
[fix][offload] Fix NPE when reading from a closed offloaded read hand…
d612f72
…le by keeping its ledger metadata (apache#26891)

(cherry picked from commit b2b755b)
@aywengo @nodece
[fix][broker] Match namespace isolation policy brokers given as host:…
e68f15b
…port (apache#26829)

(cherry picked from commit 25fe96c)
@Denovo1998 @lhotari @nodece
[fix][broker] Handle synchronous schema lookup failures in replication (
409c837
apache#26108)

Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit 43e0d58)
@Denovo1998 @nodece
[fix][schema] Fix Protobuf native descriptor deserialization (apache#…
7e770bb
…26725)

(cherry picked from commit a5e4658)
@void-ptr974 @lhotari @nodece
[fix][meta] Return LedgerExistException for duplicate ledger creation (…
e9f6c94
…apache#26669)

Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit 204bbd9)
@programmerahul Rahul Prasad @nodece
[fix] [client] chunked message uuid-queue never removes entries on su…
87ed5be
…ccessful processing (apache#26658)

Co-authored-by: Rahul Prasad <[email protected]>
(cherry picked from commit b625a9f)
@Denovo1998 @nodece
[fix][client] Release connections on partition metadata rejection (ap…
5af228e
…ache#26912)

(cherry picked from commit 353f6d4)
@Asthenia0412 @nodece
[fix][managed-ledger] Persist partial batch ACKs on flush (apache#26765)
36557de
(cherry picked from commit fa28230)
@void-ptr974 @lhotari @nodece
[fix][schema] Fix BookKeeper read handle leaks on schema read failures (
b85b369
apache#26818)

Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit 3cd96c7)
@merlimat @nodece
[fix][ml] Wait for managed ledgers to close on factory shutdown, boun…
03ca357
…ding each close (apache#26063)

(cherry picked from commit a1e83f5)
@Denovo1998 @nodece
[fix][client] Prevent chunk message ID leaks after seek (apache#26909)
90cc775
(cherry picked from commit 25e10a5)
@lhotari @nodece
[fix][broker] Fix web service close hang when the Jetty server fails …
d23d981
…to start (apache#26895)

(cherry picked from commit 7ddf52b)
@Denovo1998 @nodece
[fix][broker] Prevent stale consumer removal from removing replacemen…
0dc1ef8
…ts (apache#26652)

(cherry picked from commit 668c16d)
@programmerahul Rahul Prasad
@claude @nodece
[fix][client] Return flow-control permit when client seek by messageID (
4dc20d6
apache#26726)

Co-authored-by: Rahul Prasad <[email protected]>
Co-authored-by: Claude Opus 4.8 <[email protected]>
(cherry picked from commit e89b71b)
@SongOf @nodece
[fix][client] Make chunking inert on non-persistent topics, including…
1b09b57
… the message-size checks (apache#26550)

(cherry picked from commit ca087eb)
@SongOf @song-of-bot
@lhotari @codelipenghui @nodece
[fix][client] Serialize chunked-message bookkeeping to fix use-after-…
aa6f3b2
…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)
@codelipenghui @nodece
[fix][broker] Fix inflated rate stats of newly created consumers (apa…
b6ed60a
…che#26928)

(cherry picked from commit 7e7c916)
@Denovo1998 @nodece
[fix][broker] Prevent duplicate messages when reconnect races with pu…
b3fd521
…rge (apache#26907)

(cherry picked from commit ab0b6d0)
@Denovo1998 @nodece
[fix][broker] Preserve unacked backpressure for stale redelivery requ…
9c99d25
…ests (apache#26910)

(cherry picked from commit 90f174d)
lhotari and others added 21 commits November 6, 2026 19:15
@lhotari @nodece
[fix][client] Complete table view refresh after applying messages (ap…
d5bd396
…ache#26566)

(cherry picked from commit 172b7c3)
@lhotari @nodece
[fix][txn] Stop the pending ack replay loop from spinning forever (ap…
805cba7
…ache#26369)

(cherry picked from commit b28950c)
@lhotari @nodece
[fix][txn] Prevent queued snapshot writes from stalling (apache#26565)
50634a1
(cherry picked from commit ce7c74f)
@poorbarcode @nodece
[fix][broker] Bound classic Key_Shared dispatcher replay queue look-a…
18d4c05
…head (apache#26677)

(cherry picked from commit 3d5fbc3)
@merlimat @nodece
[fix][client] Drop a send receipt for a removed producer, not the con…
fdbf50f
…nection (apache#26618)

(cherry picked from commit 4315708)
@lhotari @nodece
[fix][client] Enable TableView compacted reads for short topic names (a…
2a0831d
…pache#26626)

(cherry picked from commit 6c8fc01)
@sakshichitnis27 @nodece
[fix][meta] Close resources when ZKMetadataStore construction fails (a…
c3a61c8
…pache#26673)

(cherry picked from commit fe56cf3)
@Goodkat Vyacheslav SHABLISTYY
@lhotari @nodece
[fix][broker] Spurious ERROR log for 307 redirect in getReplicatedSub…
80361ba
…scriptionStatus (apache#26706)

Co-authored-by: Vyacheslav SHABLISTYY <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit 776786b)
@lhotari @nodece
[fix][broker] Align entry filter policy checks for non-persistent top…
836a7f3
…ics (apache#26774)

(cherry picked from commit 069e858)
@lhotari @nodece
[fix][broker] Align partitioned topic truncate checks with non-partit…
0b63e6d
…ioned topics (apache#26776)

(cherry picked from commit b8b5769)
@lhotari @nodece
[fix][broker] Apply subscription policies to namespace and topic subs…
59050a6
…cription operations (apache#26767)

(cherry picked from commit 8fdca04)
@lhotari @nodece
[fix][txn] Improve transaction admin checks (apache#26773)
e4dc225
(cherry picked from commit c50739c)
@Denovo1998 @nodece
[fix][broker] Avoid misleading ownership lock expiry logs during shut…
e5ccd39
…down (apache#26633)

(cherry picked from commit 80d27d3)
@Denovo1998 @nodece
[fix][broker] Preserve replicated subscription activity on activation (…
eb34837
…apache#26780)

(cherry picked from commit 1f22326)
@merlimat @nodece
[fix][broker] Fix dispatcher permit accounting race with recycled bat…
50c3ee1
…ch index acks (apache#26809)

(cherry picked from commit 1046481)

[branch-4.x] Also applied to the classic Shared and Key_Shared dispatchers
(PersistentDispatcherMultipleConsumersClassic, PersistentStickyKeyDispatcherMultipleConsumersClassic),
which were removed on master by apache#26687. The test covers both implementations.
@nodece
fix: batch-3 glue - replicate-subscription timestamp seeding (apache#…
46f100b
…26780), null-cluster guard in replicator dispatch rate, dedup getLoadData, upstream test files for RSC/WebView, unused import cleanup
@nodece
fix: restore fork semantics for max-read-position timestamp (always t…
7cab923
…racked, not gated on replicated-subscription controller); align RSC lifecycle test assertions and MultiRolesToken claim stubs to fork defaults
@nodece
fix: align apache#26551/apache#26780 test assertions to fork BinaryAu…
7f01a46
…thSession semantics (anonymous-role authRole, null original auth data without forwarding); drop test deep-bound to upstream ServerCnx mock structure
@nodece
fix: create tenant/namespace in apache#26192 bundles-metrics test (fo…
d7cc496
…rk test base does not pre-provision them)
@nodece
fix: adapt apache#26335 TopicTransactionBufferCloseTest to fork (requ…
cdbe4e8
…ired metadata fields, real EntryImpl instead of mock verify, snapshot stub)
@nodece
chore: retrigger CI (previous rerun stuck in GitHub queue)
69619a4
@nodece nodece closed this Nov 7, 2026
@nodece nodece reopened this Nov 7, 2026
@nodece nodece closed this Nov 7, 2026
@nodece nodece reopened this Nov 7, 2026
nodece added 4 commits November 8, 2026 21:29
@nodece
chore: retrigger CI after stuck run cleared
1bddf29
@nodece
test: drop testLoadSheddingPassesBundleNameAndCompletesAttempt - depe…
6cc82bd
…nds on upstream onUnloadAttemptCompleted machinery (not in fork) and on pulsar3 winning leader election, fails deterministically in multi-broker CI layout
@nodece
fix: remove unused import after test removal
4bfb5d6
@nodece
fix: adapt apache#26780 racing-construction assertion to fork timesta…
368db5e
…mp semantics (racing publish also updates)
@nodece
nodece merged commit 368db5e into branch-as-4.0 Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

PIP

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

20 participants

@nodece @Denovo1998 @poorbarcode @codelipenghui @Technoboy- @merlimat @lhotari @aywengo @void-ptr974 @programmerahul @Asthenia0412 @SongOf @zhouyifan279 @Dream95 @zhanghaou @oneby-wang @Radiancebobo @zhaizhibo @omarkj @mattisonchao
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.