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 — [ci-debug] DO NOT MERGE — one instrumented CI run for PR #102 diagnostics by dao-jun · Pull Request #103 · ascentstream/pulsar

[ci-debug] DO NOT MERGE — one instrumented CI run for PR #102 diagnostics #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dao-jun wants to merge 36 commits into branch-ci-debug-base from ci-debug/batchread-tls

Uh oh!

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

Closed

[ci-debug] DO NOT MERGE — one instrumented CI run for PR #102 diagnostics #103

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d5b620d
[pip] PIP-430: Pulsar Broker cache improvements: refactoring eviction…
lhotari Jul 28, 2025
0128390
[refactor][ml] Replace cache eviction algorithm with centralized remo…
lhotari Jul 28, 2025
f523a14
[fix][test] Fix flaky EntryCacheManagerTest.simple (#24609)
3pacccccc Aug 7, 2025
f784137
[improve][broker] Implement PIP-430 Pulsar Broker cache improvements …
lhotari Aug 28, 2025
5226956
[fix][test] Fix flaky PersistentTopicTest.testBacklogCursor (#25348)
merlimat Mar 19, 2026
6ea72a9
[fix][ml] Fix eviction trigger race that cleared the in-progress mark…
merlimat Jun 10, 2026
cd9dd80
[fix][ml] Fix active cursor retention and deferred-update synchroniza…
lhotari Sep 9, 2026
dde4580
[improve][ml] Improve cache insert performance by removing exists che…
lhotari Sep 4, 2025
87e7159
[improve][broker] Reduce unnecessary MessageMetadata parsing by cachi…
lhotari Sep 9, 2025
15b4421
[fix][ml] PIP-430: Fix concurrency issue in MessageMetadata caching a…
lhotari Oct 10, 2025
dbbb648
[fix][ml] Reset messageMetadataInitialized when recycling RangeCacheE…
merlimat Jun 10, 2026
feb4935
[improve][ml] Parse message metadata at entry cache insert time inste…
merlimat Sep 8, 2026
0796516
[fix][ml] Parse the cached entry's message metadata from the buffer t…
lhotari Sep 9, 2026
e34774a
[improve][ml] Share immutable publish positions with cached entries (…
lhotari Sep 10, 2026
d72a1d1
[improve][ml] Build cached read results without an intermediate colle…
lhotari Sep 10, 2026
05a17f3
[improve][ml] Avoid capturing cache insertion arguments (#26524)
lhotari Sep 10, 2026
27120c2
[improve][ml] Share read-permit release callbacks within a batch (#26…
lhotari Sep 10, 2026
2201154
[build] Upgrade to Apache BookKeeper/DistributedLog 4.18.0 and Netty …
dao-jun Sep 20, 2026
b271678
[feat][misc] Support AdaptiveByteBufAllocator with configurable alloc…
lhotari Sep 15, 2026
c9f5b7f
[improve][broker] Optimize consumer selection for shared subscription…
lhotari Sep 15, 2026
d96a0c3
[feat][ml] Configure and track named Pulsar allocators independently …
lhotari Sep 15, 2026
bc48257
[feat][ml] Support Bookkeeper Batch Read API (#25280)
dao-jun Sep 16, 2026
4f184f2
[improve][ml] Use adaptive allocation for managed ledger cache copies…
lhotari Sep 16, 2026
cd27e27
[fix][test] Disable Pulsar message parsing for raw ledger test entrie…
lhotari Sep 16, 2026
5aaa616
[improve][broker] Upgrade bookkeeper to 4.18.1 (#26574)
StevenLuMT Sep 15, 2026
78bb14a
[improve][ml] Open ledgers through the BookKeeper builder API (#26598)
merlimat Sep 15, 2026
d88d711
[improve][broker] Reduce cache retention after reads and apply retent…
lhotari Sep 17, 2026
5f96571
[fix][ml] Fix active cursor position tracking after untracking (#26629)
Denovo1998 Sep 17, 2026
29c8879
[fix][test] Fix flaky ManagedLedgerBkTest.verifyConcurrentUsage (#26637)
merlimat Sep 17, 2026
63cd52b
[improve][ml] Defer cached message metadata parsing until first read …
lhotari Sep 17, 2026
cedf213
[fix][sec] Upgrade Netty to 4.2.18 to address several CVEs and bugs (…
dao-jun Sep 20, 2026
eea0351
[ci] Drop Shade on Java 8/11 matrix entries
dao-jun Sep 20, 2026
b6e2921
[fix][test] Adapt testAdvanceCursorsIfNecessaryNeverLoseMarkDeletePro…
dao-jun Sep 20, 2026
d425cb9
[ci-debug] Temporary CI diagnostics: log client TLS engine endpoint-i…
dao-jun Sep 21, 2026
2f32afa
[ci-debug] trigger CI via synchronize event
dao-jun Sep 21, 2026
69aec16
[ci-debug] retrigger after base retarget
dao-jun Sep 21, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

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

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

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

Diff view
Diff view
Prev Previous commit
Next Next commit
[improve][broker] Reduce cache retention after reads and apply retent…
…ion settings at startup (apache#26627)

(cherry picked from commit bed06a0)
  • Loading branch information

Uh oh!

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

@lhotari @dao-jun
lhotari authored and dao-jun committed Sep 20, 2026
commit d88d71138dbb68e4a723ca254624572da299ed49

There are no files selected for viewing

4 changes: 2 additions & 2 deletions 4 conf/broker.conf
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1328,8 +1328,8 @@ managedLedgerCacheEvictionExtendTTLOfEntriesWithRemainingExpectedReadsMaxTimes=5
# When disabled:
# - Cache behaves more like a FIFO queue with time-based and size-based eviction
# - Minimum eviction time is managedLedgerCacheEvictionTimeThresholdMillis
# Default is true, to behave like a LRU cache.
managedLedgerCacheEvictionExtendTTLOfRecentlyAccessed=true
# Default is false, to avoid extending cache retention for entries that have already been read.
managedLedgerCacheEvictionExtendTTLOfRecentlyAccessed=false

# Enable the BookKeeper batch read API for managed-ledger storage reads: a single RPC fetches
# multiple entries, reducing network overhead for sequential reads. Batch read requires
Expand Down
4 changes: 2 additions & 2 deletions 4 conf/standalone.conf
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,8 @@ managedLedgerCacheEvictionExtendTTLOfEntriesWithRemainingExpectedReadsMaxTimes=5
# When disabled:
# - Cache behaves more like a FIFO queue with time-based and size-based eviction
# - Minimum eviction time is managedLedgerCacheEvictionTimeThresholdMillis
# Default is true, to behave like a LRU cache.
managedLedgerCacheEvictionExtendTTLOfRecentlyAccessed=true
# Default is false, to avoid extending cache retention for entries that have already been read.
managedLedgerCacheEvictionExtendTTLOfRecentlyAccessed=false

# Enable the BookKeeper batch read API for managed-ledger storage reads: a single RPC fetches
# multiple entries, reducing network overhead for sequential reads. Batch read requires
Expand Down
4 changes: 2 additions & 2 deletions 4 pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2371,9 +2371,9 @@ The max allowed delay for delayed delivery (in milliseconds). If the broker rece
+ "When disabled:\n"
+ " - Cache behaves more like a FIFO queue with time-based and size-based eviction\n"
+ " - Minimum eviction time is managedLedgerCacheEvictionTimeThresholdMillis\n"
+ "Default is true, to behave like a LRU cache."
+ "Default is false, to avoid extending cache retention for entries that have already been read."
)
private boolean managedLedgerCacheEvictionExtendTTLOfRecentlyAccessed = true;
private boolean managedLedgerCacheEvictionExtendTTLOfRecentlyAccessed = false;

@FieldContext(category = CATEGORY_STORAGE_ML, dynamic = true,
doc = "Enable the BookKeeper batch read API when reading entries from bookkeeper: a single RPC "
Expand Down
4 changes: 4 additions & 0 deletions 4 pulsar-broker/src/main/java/org/apache/pulsar/broker/ManagedLedgerClientFactory.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ public void initialize(ServiceConfiguration conf, MetadataStoreExtended metadata
managedLedgerFactoryConfig.setCacheEvictionIntervalMs(conf.getManagedLedgerCacheEvictionIntervalMs());
managedLedgerFactoryConfig.setCacheEvictionTimeThresholdMillis(
conf.getManagedLedgerCacheEvictionTimeThresholdMillis());
managedLedgerFactoryConfig.setCacheEvictionExtendTTLOfRecentlyAccessed(
conf.isManagedLedgerCacheEvictionExtendTTLOfRecentlyAccessed());
managedLedgerFactoryConfig.setCacheEvictionExtendTTLOfEntriesWithRemainingExpectedReadsMaxTimes(
conf.getManagedLedgerCacheEvictionExtendTTLOfEntriesWithRemainingExpectedReadsMaxTimes());
Long continueCachingAddedEntriesAfterLastActiveCursorLeavesMillis =
conf.getManagedLedgerContinueCachingAddedEntriesAfterLastActiveCursorLeavesMillis();
if (continueCachingAddedEntriesAfterLastActiveCursorLeavesMillis != null) {
Expand Down
75 changes: 75 additions & 0 deletions 75 pulsar-broker/src/test/java/org/apache/pulsar/broker/ManagedLedgerClientFactoryTest.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pulsar.broker;

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.isNull;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import io.netty.channel.EventLoopGroup;
import io.opentelemetry.api.OpenTelemetry;
import java.util.concurrent.CompletableFuture;
import org.apache.bookkeeper.client.BookKeeper;
import org.apache.bookkeeper.mledger.ManagedLedgerFactoryConfig;
import org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl;
import org.apache.pulsar.metadata.api.extended.MetadataStoreExtended;
import org.mockito.ArgumentCaptor;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

@Test(groups = "broker")
public class ManagedLedgerClientFactoryTest {
@DataProvider
public Object[][] cacheExtensionSettings() {
return new Object[][] {{null, 5}, {false, 2}, {true, 0}, {true, 5}};
}

@Test(dataProvider = "cacheExtensionSettings")
public void testCacheExtensionSettingsAtStartup(Boolean extendRecentlyAccessed, int maxExtensions)
throws Exception {
ServiceConfiguration conf = new ServiceConfiguration();
if (extendRecentlyAccessed == null) {
assertThat(conf.isManagedLedgerCacheEvictionExtendTTLOfRecentlyAccessed()).isFalse();
} else {
conf.setManagedLedgerCacheEvictionExtendTTLOfRecentlyAccessed(extendRecentlyAccessed);
}
conf.setManagedLedgerCacheEvictionExtendTTLOfEntriesWithRemainingExpectedReadsMaxTimes(maxExtensions);
conf.setBookkeeperClientExposeStatsToPrometheus(false);
BookKeeperClientFactory bookkeeperProvider = mock(BookKeeperClientFactory.class);
when(bookkeeperProvider.create(any(), any(), any(), any(), isNull(), any()))
.thenReturn(CompletableFuture.completedFuture(mock(BookKeeper.class)));
try (ManagedLedgerClientFactory factory = spy(new ManagedLedgerClientFactory())) {
doReturn(mock(ManagedLedgerFactoryImpl.class)).when(factory)
.createManagedLedgerFactory(any(), any(), any(), any(), any());
factory.initialize(conf, mock(MetadataStoreExtended.class), bookkeeperProvider,
mock(EventLoopGroup.class), OpenTelemetry.noop());
ArgumentCaptor<ManagedLedgerFactoryConfig> config =
ArgumentCaptor.forClass(ManagedLedgerFactoryConfig.class);
verify(factory).createManagedLedgerFactory(any(), any(), any(), config.capture(), any());
assertThat(config.getValue().isCacheEvictionExtendTTLOfRecentlyAccessed())
.isEqualTo(Boolean.TRUE.equals(extendRecentlyAccessed));
assertThat(config.getValue().getCacheEvictionExtendTTLOfEntriesWithRemainingExpectedReadsMaxTimes())
.isEqualTo(maxExtensions);
}
}
}
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 01402843 — 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.