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 — [feat][ml] Port batch read and managed-ledger cache improvements (PIP-430) on BK 4.17.4.1 by dao-jun · Pull Request #105 · ascentstream/pulsar

Conversation

@dao-jun

@dao-jun dao-jun commented Oct 4, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Summary

Ports the batch read + PIP-430 broker cache improvement series to branch-as-4.0 using AscentStream BookKeeper 4.17.4.1 — no BookKeeper 4.18 upgrade, no Netty 4.2 upgrade (stays 4.1.137.Final), client bytecode stays release 8.

This is the 4.17-line sibling of #102 (BK 4.18.1 + Netty 4.2.18 variant).

31 commits, one commit per upstream PR, original messages + cherry picked from trailers preserved.

Ported upstream PRs (apache/pulsar)

  • PIP-430 core: [pip] PIP-430: Pulsar Broker cache improvements: refactoring eviction and adding a new cache strategy based on expected read count apache/pulsar#24444 [refactor][ml] Replace cache eviction algorithm with centralized removal queue and job apache/pulsar#24363 [fix][test] Fix flaky EntryCacheManagerTest.simple apache/pulsar#24609 [improve][broker] Implement PIP-430 Pulsar Broker cache improvements apache/pulsar#24623 [fix][test] Fix flaky PersistentTopicTest.testBacklogCursor apache/pulsar#25348 [fix][ml] Fix eviction trigger race that cleared the in-progress marker apache/pulsar#25988 [fix][ml] Fix active cursor retention and deferred-update synchronization apache/pulsar#26511
  • Metadata cache chain: [improve][ml] Improve cache insert performance by removing exists check since it's already covered by putIfAbsent apache/pulsar#24699 [improve][broker] Reduce unnecessary MessageMetadata parsing by caching the parsed instance in the broker cache apache/pulsar#24682 [fix][ml] PIP-430: Fix concurrency issue in MessageMetadata caching and improve caching apache/pulsar#24836 [fix][ml] Reset messageMetadataInitialized when recycling RangeCacheEntryWrapper apache/pulsar#25987 [improve][ml] Parse message metadata at entry cache insert time instead of under the wrapper write lock apache/pulsar#26463 [fix][ml] Parse the cached entry's message metadata from the buffer the cache keeps apache/pulsar#26495
  • Performance: [improve][ml] Share immutable publish positions with cached entries apache/pulsar#26526 [improve][ml] Build cached read results without an intermediate collection apache/pulsar#26529 [improve][ml] Avoid capturing cache insertion arguments apache/pulsar#26524 [improve][ml] Share read-permit release callbacks within a batch apache/pulsar#26523
  • Allocators: [feat][misc] Support AdaptiveByteBufAllocator with configurable allocator type and metrics apache/pulsar#26595 [improve][broker] Optimize consumer selection for shared subscriptions apache/pulsar#26593 [feat][ml] Configure and track named Pulsar allocators independently apache/pulsar#26597 (AdaptiveByteBufAllocator is available in Netty 4.1.137)
  • Batch read: [feat][ml] Support Bookkeeper Batch Read API apache/pulsar#25280 [improve][ml] Use adaptive allocation for managed ledger cache copies apache/pulsar#26603
  • Late fixes: [fix][test] Disable Pulsar message parsing for raw ledger test entries apache/pulsar#26604 [improve][broker] Reduce cache retention after reads and apply retention settings at startup apache/pulsar#26627 [fix][ml] Fix active cursor position tracking after untracking apache/pulsar#26629 [fix][test] Fix flaky ManagedLedgerBkTest.verifyConcurrentUsage apache/pulsar#26637 [improve][ml] Defer cached message metadata parsing until first read apache/pulsar#26628
  • Test fix backport: testAdvanceCursorsIfNecessaryNeverLoseMarkDeleteProperties (deterministically red on the base)
  • CI tooling: point CI maven cache / build-artifact paths at the fork groupId

Plus a minimal [build] commit: BK/DL 4.17.4.0 → 4.17.4.1 (root pom version line + 2 LICENSE files), which brings batchReadUnconfirmedAsync(long, int, long) — the only API 4.17.4.0 was missing for batch read.

Deliberately not ported

Upstream Reason
apache#26598 (open ledgers via builder API) withKeepUpdateMetadata is 4.18-line only; the base's 6-arg asyncOpenLedger(..., true) already preserves ledger properties (semantically equivalent), so the builder migration is dropped entirely
apache#26574 (BK 4.18.1) no 4.18 upgrade in this variant
apache#26514 (Netty 4.2.18) no Netty 4.2 upgrade in this variant
slog bundling into java-instance.jar BK 4.17.4.x allocator uses slf4j; the NCDFE root cause does not exist
Drop Shade on Java 8/11 matrix motivated by BK 4.18's Java 17 bytecode; not applicable here

Local adaptations (folded into the respective picks)

  • 9 Java 8 syntax downgrades in pulsar-common allocator code ([feat][misc] Support AdaptiveByteBufAllocator with configurable allocator type and metrics apache/pulsar#26595 / [feat][ml] Configure and track named Pulsar allocators independently apache/pulsar#26597): var / record / instanceof patterns / arrow switch / requireNonNullElse → Java 8 equivalents
  • PublishPositionSharingBenchmark: Netty 4.2-only currentThreadWillCleanupFastThreadLocals() → static willCleanupFastThreadLocals(Thread.currentThread()) (available in 4.1.137)
  • [improve][broker] Reduce cache retention after reads and apply retention settings at startup apache/pulsar#26627 ManagedLedgerClientFactoryTest add/add conflict resolved keeping both test sets (cache-extension pipeline tests + base checkpoint validation tests)

Verification

  • managed-ledger full suite: 898 tests, single env flake (ManagedLedgerFactoryChangeLedgerPathTest port-bind conflict, individually rerun green); on-disk reports 897/897 green
  • pulsar-broker subset: 86/86
  • ManagedLedgerBkTest (real bookie — first batch-read run on the fork's 4.17 line, incl. testBatchReadNotUsedWithV3WireProtocolClient): 18/18
  • Allocator gates: PulsarByteBufAllocatorTypeTest 13/13, PulsarByteBufAllocatorTest 17/17, AllocatorStatsGeneratorTest 4/4
  • Batch read gates: ReadEntryUtilsTest 18/18, CompositeLedgerEntriesImplTest 6/6, ManagedLedgerBatchReadTest 4/4
  • Full offline install of core modules; distribution tarball spot-checked (4.17.4.1 jar set correct, zero 4.17.4.0/4.18 residue)

Not covered by local verification: distribution/shaded/gradle modules (out of porting scope).

Follow-up commits (added 2026-10-05)

Six follow-up fixes from upstream on top of the initial 31 commits:

  • [fix][ml] Reset the lazily-cached position when reusing a recycled EntryImpl apache/pulsar#26707 — reset the lazily-cached position when reusing a recycled EntryImpl (stale (-1,-1) position race)
  • [improve][misc] Use Netty's adaptive allocator for Pulsar's default allocator apache/pulsar#26720 — use Netty's adaptive allocator for the default allocator (conf/pulsar_env.sh + conf/bkenv.sh). Adapted to prepend to PULSAR_EXTRA_OPTS/BOOKIE_EXTRA_OPTS (the 4.0-line conf scripts have no OPTS variable); Netty 4.1.137 natively supports io.netty.allocator.type=adaptive (verified). Not exercised by CI (surefire does not run env scripts) — verified via bash -n, subshell source-expansion assertions, and PulsarByteBufAllocatorTest (named pulsar.allocator.default.type=adaptive coverage)
  • [fix][test] Fix flaky NonDurableCursorTest.subscribeToEarliestPositionWithDeferredDeletion apache/pulsar#26747 — fix flaky NonDurableCursorTest.subscribeToEarliestPositionWithDeferredDeletion (waits for ledger rollover)
  • [fix][broker] Apply managedLedgerContinueCachingAddedEntriesAfterLastActiveCursorLeavesMillis to managed ledgers apache/pulsar#26785 — actually apply managedLedgerContinueCachingAddedEntriesAfterLastActiveCursorLeavesMillis to managed ledgers: before this fix the setting from [improve][broker] Reduce cache retention after reads and apply retention settings at startup apache/pulsar#26627 was written to a factory-level field that nothing read, and the per-ledger value was always 0 ("no active cursors ⇒ stop caching immediately")
  • [fix][broker] Fix Exclusive/Failover dispatch rate limiting using counts from another dispatch apache/pulsar#26810 — fix Exclusive/Failover dispatch rate limiting using counts from another dispatch (thread-local SendMessageInfo overwritten before the async write listener runs)
  • [fix][broker] Fix dispatcher permit accounting race with recycled batch index acks apache/pulsar#26809 — fix dispatcher permit accounting race with recycled batch index acks (getTotalAckedIndexCount() read after sendMessages hands batchIndexesAcks to the consumer event loop)

Local adaptation notes (folded into the respective picks):

  • [fix][broker] Apply managedLedgerContinueCachingAddedEntriesAfterLastActiveCursorLeavesMillis to managed ledgers apache/pulsar#26785 tests: defaultConfig() → rawEntryConfig() (this branch lacks [improve][ml] Allow inline read completion and preserve replication order apache/pulsar#26620's helper); assertj static import added to BrokerServiceTest
  • [fix][broker] Fix Exclusive/Failover dispatch rate limiting using counts from another dispatch apache/pulsar#26810 test: adapted to the fork's ProducerConsumerBase idioms (BrokerTestUtil.newUniqueName, pulsar.getBrokerService().getTopic(...))
  • [fix][broker] Fix dispatcher permit accounting race with recycled batch index acks apache/pulsar#26809: the upstream test file SharedDispatcherPermitAccountingTest was not carried over — it depends on SharedPulsarBaseTest ([improve][test] Introduce shared Pulsar cluster for faster integration tests apache/pulsar#25311) and the [fix][broker] Fix persistent throughput degradation caused by permit loss during frequent reconnects on Shared subscriptions apache/pulsar#26289/[fix][test] Avoid unsafe cleanup between shared-cluster tests apache/pulsar#26611/[improve][broker] PIP-379: Remove the classic Shared and Key_Shared dispatcher implementations apache/pulsar#26687 test-harness chain this branch does not have; the main-code fix is complete (log kept in slf4j form, both read points switched to the captured local)

Verification (local): managed-ledger full suite 901/901 (897 baseline + 4 new tests); broker subset green (PersistentDispatcherSingleActiveConsumerTest 4/4 incl. the new race test, ManagedLedgerClientFactoryTest 6/6, OpenTelemetryTopicStatsTest 2/2, PersistentMessageExpiryMonitorTest 3/3, AllocatorStatsGeneratorTest 4/4, BrokerServiceTest continue-caching config test); mvn install + checkstyle green for managed-ledger and pulsar-broker.

Follow-up commits (added 2026-10-08)

Four more upstream fixes identified by the post-review omission sweep, ported on top (now 42 commits total):

  • [fix][ml] Track all pending read callbacks for timeouts apache/pulsar#26081 — track all pending read callbacks for timeouts: the old lastReadCallback single-slot checker only ever timed out the most recent read; replaced by a broker-level ReadEntryTimeoutTracker (MPSC queue + 1s scan). Adaptations: slog → slf4j in the new tracker; the fork's maxSizeBytes read path and its fork-specific third asyncReadEntry overload (plain ReadEntriesCallback) were wired into the new mechanism by intent
  • [fix][broker] Fix persistent throughput degradation caused by permit loss during frequent reconnects on Shared subscriptions apache/pulsar#26289 — fix persistent throughput degradation caused by permit loss during frequent reconnects on Shared subscriptions (compound permit accounting guarded by flowPermitAccountingLock; containsConsumerInstance identity check). Merged to coexist with the fork's ConsumerPrioritySelector ([improve][broker] Optimize consumer selection for shared subscriptions apache/pulsar#26593); all slog contexts desugared to slf4j. The upstream test file SharedDispatcherPermitAccountingTest was not carried over (same constraint as [fix][broker] Fix dispatcher permit accounting race with recycled batch index acks apache/pulsar#26809: depends on SharedPulsarBaseTest / [improve][test] Introduce shared Pulsar cluster for faster integration tests apache/pulsar#25311, which this branch does not have); the main-code fix is complete in both PersistentDispatcherMultipleConsumers and the Classic dispatcher
  • [fix][ml] Close abandoned write ledger handle to prevent leak apache/pulsar#26585 — close abandoned write ledger handle to prevent leak (periodic explicit-LAC flush task leak). Adapted to the fork's ledgerClosedWithReason(..., LedgerRollReason.*) variants; PulsarMockLedgerHandle gained an asyncCloseCount for the new leak assertions
  • [improve][ml] Store the broker entry cache in pages of consecutive entry IDs apache/pulsar#26821 — store the broker entry cache in pages of consecutive entry IDs (RangeCache pagination, ~1.1k lines). Main-code diff vs upstream final state is down to slf4j idioms only; test adaptation: BK 4.18-only ThreadBoundExecutor → ExecutorService mock (4 occurrences)

Verification (local): managed-ledger cache package 96/96, ManagedLedgerTest 165 run / 0 failures (160 baseline + 5 new timeout/leak tests), ManagedLedgerErrorsTest 22/22, EntryImplTest 12/12; broker PersistentDispatcherMultipleConsumersTest + Classic + ConsumerTest 10/10, StickyKey dispatcher suites 28/28; full test-compile of managed-ledger / pulsar-broker / testmocks and microbench (-Pmicrobench) green.

Sorry, something went wrong.

Uh oh!

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

All reactions
lhotari and others added 30 commits October 4, 2026 10:52
@lhotari @dao-jun
[pip] PIP-430: Pulsar Broker cache improvements: refactoring eviction…
eeef46e
… and adding a new cache strategy based on expected read count (apache#24444)

(cherry picked from commit cf3d7d1)
(cherry picked from commit d5b620d)
@lhotari @dao-jun
[refactor][ml] Replace cache eviction algorithm with centralized remo…
3a17667
…val queue and job (apache#24363)

(cherry picked from commit 8ce67b9)
(cherry picked from commit 0128390)
@dao-jun
[fix][test] Adapt testAdvanceCursorsIfNecessaryNeverLoseMarkDeletePro…
01f1b21
…perties stub to the 6-arg internalAsyncMarkDelete

The apache#25796 backport (39f0def) landed both the production fix and its
test, but the test stubs the 5-arg internalAsyncMarkDelete overload:
that is the arity master's asyncMarkDelete chain reaches, while on this
branch the chain routes through the 6-arg overload (adding
propagatePersistFailure/durableFallback) that NonDurableCursorImpl
overrides. The stub therefore never intercepted the advance-path call
and the entry latch deterministically timed out, leaving the test red
since the backport landed. Stub the 6-arg overload instead; the
null-properties contract asserted by apache#25796 is unchanged.

(cherry picked from commit b6e2921)
@3pacccccc @dao-jun
[fix][test] Fix flaky EntryCacheManagerTest.simple (apache#24609)
83573f0
(cherry picked from commit 7ab68b1)
(cherry picked from commit f523a14)
@lhotari @dao-jun
[improve][broker] Implement PIP-430 Pulsar Broker cache improvements (a…
8e7c919
…pache#24623)

(cherry picked from commit 490ba0c)
(cherry picked from commit f784137)
@merlimat @dao-jun
[fix][test] Fix flaky PersistentTopicTest.testBacklogCursor (apache#2…
997c968
…5348)

(cherry picked from commit db221ad)
(cherry picked from commit 5226956)
@merlimat @dao-jun
[fix][ml] Fix eviction trigger race that cleared the in-progress mark…
e4d1c75
…er (apache#25988)

(cherry picked from commit fbcfacf)
(cherry picked from commit 6ea72a9)
@lhotari @dao-jun
[fix][ml] Fix active cursor retention and deferred-update synchroniza…
93737cc
…tion (apache#26511)

(cherry picked from commit 72632e5)
(cherry picked from commit cd9dd80)
@lhotari @dao-jun
[improve][ml] Improve cache insert performance by removing exists che…
df6e0e8
…ck since it's already covered by putIfAbsent (apache#24699)

(cherry picked from commit 669ab61)
(cherry picked from commit dde4580)
@lhotari @dao-jun
[improve][broker] Reduce unnecessary MessageMetadata parsing by cachi…
4c13293
…ng the parsed instance in the broker cache (apache#24682)

(cherry picked from commit 53bbd4a)
(cherry picked from commit 87e7159)
@lhotari @dao-jun
[fix][ml] PIP-430: Fix concurrency issue in MessageMetadata caching a…
222a1fa
…nd improve caching (apache#24836)

(cherry picked from commit 9737d03)
(cherry picked from commit 15b4421)
@merlimat @dao-jun
[fix][ml] Reset messageMetadataInitialized when recycling RangeCacheE…
a68dec0
…ntryWrapper (apache#25987)

(cherry picked from commit 98bac65)
(cherry picked from commit dbbb648)
@merlimat @dao-jun
[improve][ml] Parse message metadata at entry cache insert time inste…
2094577
…ad of under the wrapper write lock (apache#26463)

(cherry picked from commit ce60798)
(cherry picked from commit feb4935)
@lhotari @dao-jun
[fix][ml] Parse the cached entry's message metadata from the buffer t…
e1bcf05
…he cache keeps (apache#26495)

(cherry picked from commit 9e0f694)
(cherry picked from commit 0796516)
@lhotari @dao-jun
[improve][ml] Share immutable publish positions with cached entries (a…
631b95d
…pache#26526)

(cherry picked from commit 7bcae18)
(cherry picked from commit e34774a)
@lhotari @dao-jun
[improve][ml] Build cached read results without an intermediate colle…
8d0804e
…ction (apache#26529)

(cherry picked from commit a3de5dd)
(cherry picked from commit d72a1d1)
@lhotari @dao-jun
[improve][ml] Avoid capturing cache insertion arguments (apache#26524)
a9a5512
(cherry picked from commit 78688dd)
(cherry picked from commit 05a17f3)
@lhotari @dao-jun
[improve][ml] Share read-permit release callbacks within a batch (apa…
9fa76b7
…che#26523)

(cherry picked from commit 30b975a)
(cherry picked from commit 27120c2)
@dao-jun
[build] Bump ascentstream BookKeeper/DistributedLog to 4.17.4.1 to en…
2006293
…able the BK batch read API

Dependency enablement for apache#25280 (BK batch read): stay on the
com.ascentstream fork coordinates and bump bookkeeper.version from
4.17.4.0 to 4.17.4.1. The 4.17.4.1 fork release adds the one BK client
API the batch-read port needs (ReadHandle/LedgerHandle
batchReadUnconfirmedAsync(long, int, long)); all other batch-read and
builder entry points already exist in 4.17.4.0. Netty stays at
4.1.137.Final, the client bytecode release stays at 8, and no
coordinate switch is involved.

Unlike the dev/pick_batchread_and_cache variant (BK 4.18.1 + netty
4.2.18), this branch keeps the fork line, so the change is limited to
the version property and the jar version strings in the two
distribution LICENSE files; the 4.17.4.1 jar set is identical to
4.17.4.0 (server adds one inner class, distributedlog-core is
class-for-class identical, the allocator still logs through slf4j, so
the java-instance.jar slog bundling is not needed here).
@lhotari @dao-jun
[feat][misc] Support AdaptiveByteBufAllocator with configurable alloc…
b1207d2
…ator type and metrics (apache#26595)

(cherry picked from commit e1a1581)
(cherry picked from commit b271678)
@lhotari @dao-jun
[improve][broker] Optimize consumer selection for shared subscriptions (
0ff49a1
apache#26593)

(cherry picked from commit e7cbb33)
(cherry picked from commit c9f5b7f)
@lhotari @dao-jun
[feat][ml] Configure and track named Pulsar allocators independently (a…
33bff3a
…pache#26597)

(cherry picked from commit ca58c20)
(cherry picked from commit d96a0c3)
@dao-jun @lhotari @merlimat
[feat][ml] Support Bookkeeper Batch Read API (apache#25280)
053361f
Co-authored-by: Lari Hotari <[email protected]>
Co-authored-by: Matteo Merli <[email protected]>
(cherry picked from commit f369915)
(cherry picked from commit bc48257)
@lhotari @dao-jun
[improve][ml] Use adaptive allocation for managed ledger cache copies (…
94023b5
…apache#26603)

(cherry picked from commit 0677be2)
(cherry picked from commit 4f184f2)
@lhotari @dao-jun
[fix][test] Disable Pulsar message parsing for raw ledger test entries (
8eaff6a
apache#26604)

(cherry picked from commit 14e0ede)
(cherry picked from commit cd27e27)
@lhotari @dao-jun
[improve][broker] Reduce cache retention after reads and apply retent…
8ea93d8
…ion settings at startup (apache#26627)

(cherry picked from commit bed06a0)
(cherry picked from commit d88d711)
@Denovo1998 @dao-jun
[fix][ml] Fix active cursor position tracking after untracking (apach…
5ca53e5
…e#26629)

(cherry picked from commit 467159e)
(cherry picked from commit 5f96571)
@merlimat @dao-jun
[fix][test] Fix flaky ManagedLedgerBkTest.verifyConcurrentUsage (apac…
d49b40a
…he#26637)

(cherry picked from commit df943eb)
(cherry picked from commit 29c8879)
@lhotari @dao-jun
[improve][ml] Defer cached message metadata parsing until first read (a…
5912a73
…pache#26628)

(cherry picked from commit 3efae19)
(cherry picked from commit 63cd52b)
@dao-jun
[ci] Point CI maven cache and build-artifact paths at the fork's grou…
12e2604
…pId com.ascentstream

The fork renamed the maven groupId from org.apache.pulsar to
com.ascentstream.pulsar, but the CI infrastructure still referenced the
upstream path ~/.m2/repository/org/apache/pulsar:

- the actions/cache exclusion lists kept caching com.ascentstream
  SNAPSHOT reactor artifacts under a key derived only from
  hashFiles('**/pom.xml'), so java-only fixes never changed the key and
  unit jobs kept testing whatever jars were cached when the key was
  first saved (observed: the netty-4.2 TLS builder fix and the
  PulsarMockBookKeeper properties fix were amended into the branch
  without touching any pom; CI restored a pre-fix cache entry and the
  already-fixed AuthenticationTlsHostnameVerificationTest[false],
  SchemaTest.testConcurrentCreateSchemaNoOrphanLedger and
  ProxyServiceTlsStarterTest.testProducer kept failing with the exact
  pre-fix signatures while every local configuration was green);
- the pulsar-maven-repository-binaries tar packed (and therefore the
  unit jobs' restore delivered) zero fork artifacts, so the fresh build
  could never override the stale cache;
- the coverage/deps tooling (snapshot_pulsar_maven_artifacts, classpath
  greps, sourcefiles extraction) silently matched nothing.

Point all of these at com/ascentstream so snapshot reactor artifacts are
never served from the shared cache and unit jobs always consume the
fresh build results, matching the upstream design under the fork's
groupId.

(cherry picked from commit e85c4c0)
@dao-jun
[ci] Complete the artifactId extraction regex in pulsar_ci_tool.sh fo…
d9f7310
…r the fork groupId

The previous org/apache/pulsar -> com/ascentstream path fix missed one path
segment here: the fork's groupId com.ascentstream.pulsar resolves artifacts
under ~/.m2/repository/com/ascentstream/pulsar/<artifactId>/..., so the perl
expression captured the constant segment 'pulsar' instead of the artifactId.
Every jar then greps multiple lines of the project mapping and the coverage
--sourcefiles arguments are dropped. Anchor the pattern one segment deeper,
matching the tar exclusion fixed in the same commit.

(cherry picked from commit 195068a)
@github-actions github-actions Bot added the PIP label Oct 4, 2026
@dao-jun dao-jun changed the title cherrypick batch read and managedLedger cache PRs on BK 4.17.4.1 (no BK 4.18 / netty 4.2 upgrade) [feat][ml] Port batch read and managed-ledger cache improvements (PIP-430) on BK 4.17.4.1 Oct 4, 2026
dao-jun and others added 11 commits October 5, 2026 15:36
@dao-jun
[fix][ml] Reset the lazily-cached position when reusing a recycled En…
16db6e4
…tryImpl (apache#26707)

(cherry picked from commit b27d3ad)
@lhotari @dao-jun
[improve][misc] Use Netty's adaptive allocator for Pulsar's default a…
4b43f41
…llocator (apache#26720)

(cherry picked from commit d649aac)
@lhotari @dao-jun
[fix][test] Fix flaky NonDurableCursorTest.subscribeToEarliestPositio…
81c6353
…nWithDeferredDeletion (apache#26747)

(cherry picked from commit 1e67dd6)
@lhotari @dao-jun
[fix][broker] Apply managedLedgerContinueCachingAddedEntriesAfterLast…
0210b23
…ActiveCursorLeavesMillis to managed ledgers (apache#26785)

(cherry picked from commit 2aee226)
@merlimat @dao-jun
[fix][broker] Fix Exclusive/Failover dispatch rate limiting using cou…
1753010
…nts from another dispatch (apache#26810)

(cherry picked from commit 33dca0e)
@merlimat @dao-jun
[fix][broker] Fix dispatcher permit accounting race with recycled bat…
b4e6c82
…ch index acks (apache#26809)

(cherry picked from commit 1046481)
@dao-jun
[fix][test] Extend deleteNamespaceWithRetry timeout to 20 seconds
0e518b4
Surgical backport of the MockedPulsarServiceBaseTest change from apache#25680:
deleteNamespaceWithRetry relied on Awaitility's default 10-second timeout,
so a starved-out cleanup cascaded into dozens of 'admin is null' failures
under CI load (e.g. TopicEventsListenerTest 24-failure cascades).
The BacklogQuotaManagerTest portion of apache#25680 is not carried over: this
branch already has the richer createNamespaceForTest handling from apache#26313.

(cherry picked from commit 02d12a6)

Partial pick: only the MockedPulsarServiceBaseTest line.
@Technoboy- @dao-jun
[fix][ml] Track all pending read callbacks for timeouts (apache#26081)
5429a1c
(cherry picked from commit 9ba61bd)
@void-ptr974 @dao-jun
[fix][broker] Fix persistent throughput degradation caused by permit …
d63ceb6
…loss during frequent reconnects on Shared subscriptions (apache#26289)

(cherry picked from commit 12b6497)
@nodece @dao-jun
[fix][ml] Close abandoned write ledger handle to prevent leak (apache…
fe824ac
…#26585)

(cherry picked from commit 1234205)
@lhotari @dao-jun
[improve][ml] Store the broker entry cache in pages of consecutive en…
312c069
…try IDs (apache#26821)

(cherry picked from commit 2b6becb)
@dao-jun
dao-jun force-pushed the dev/pr_mlcache_4-0 branch from a8d48e6 to 312c069 Compare October 8, 2026 15:14
@dao-jun
[fix][build] Remove duplicate fastutil dependency declaration in mana…
ba4ec01
…ged-ledger pom

The duplicate declaration (present on the base since the checkpoint
persistence commits) is fatal under Maven 4's strict model validation,
which the ubuntu-24.04 CI runners now use: the build fails at POM
parsing in the Build and License check and Flaky tests suite jobs.
@dao-jun dao-jun closed this Oct 9, 2026
@dao-jun dao-jun reopened this Oct 9, 2026
dao-jun added 2 commits October 9, 2026 11:46
@dao-jun
[fix][build] Bump develocity-maven-extension 2.2 -> 2.4.2 for Maven 4…
e6dee45
… compatibility

The ubuntu-24.04 CI runners now ship Maven 4, under which the 2.2
extension crashes at afterProjectsRead with a Guice injection error
(pluginDescriptorCache binding). 2.4.2 loads cleanly under Maven
4.0.0-rc-7 (verified locally with the CI's license-check step).
@dao-jun
[fix][build] Drop the Gradle Develocity Maven extensions
b288293
The ubuntu-24.04 CI runners now ship Maven 4, under which the
Develocity Maven extension crashes at afterProjectsRead with a Guice
injection error (pluginDescriptorCache binding); the failure persists
even on the latest 2.4.2 release, so the runner's Maven 4 build is
incompatible with the extension line as a whole.

The extension only publishes build scans to develocity.apache.org
(Apache's instance) and is unused on this fork (no access key), so
removing it is the deterministic fix. The orphaned develocity.xml and
custom-user-data groovy config are inert without the extension.

Verified locally: 'mvn initialize' passes on both Maven 4.0.0-rc-7
and Maven 3.9.12 without the extension.
@nodece nodece mentioned this pull request Oct 13, 2026
[feat][ml] Port batch read and managed-ledger cache improvements (PIP-430) on BK 4.17.4.1 (ml-only subset) #106
Closed
@liudezhi2098 liudezhi2098 closed this Oct 30, 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.

9 participants

@dao-jun @liudezhi2098 @lhotari @3pacccccc @merlimat @Denovo1998 @Technoboy- @void-ptr974 @nodece
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.