Skip to content
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.

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

[improve][broker] LS-1263:Sync commits from apache/pulsar branch-3.0 into 3.1_ds #256

Merged
merged 98 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
f6c4506
Revert "[fix][broker] Fix NPE when reset Replicator's cursor by posit…
poorbarcode Jul 5, 2023
e4f9a46
Revert Add listener interface for namespace service #20406
Technoboy- Jul 10, 2023
6318270
[fix][io][branch-3.0] Not restart instance when kafka source poll exc…
shibd Jul 17, 2023
d2a2819
[fix] [ml] fix discontinuous ledger deletion (#20898)
poorbarcode Aug 1, 2023
59e7cac
[fix] [bk] Correctct the bookie info after ZK client is reconnected (…
poorbarcode Aug 25, 2023
1d76f45
Revert "[fix][broker] Fix get topic policies as null during clean cac…
coderzc Aug 29, 2023
db4ecfe
[fix] [broker] Producer is blocked on creation because backlog exceed…
heesung-sn Aug 24, 2023
802aff5
[improve] [broker] Improve cache handling for partitioned topic metad…
poorbarcode Aug 28, 2023
fe939b7
[improve] [broker] improve read entry error log for troubleshooting (…
poorbarcode Sep 13, 2023
75b6e31
[improve] [proxy] Not close the socket if lookup failed caused by too…
poorbarcode Sep 21, 2023
fd0437e
[improve] [broker] Print warn log if ssl handshake error & print ledg…
poorbarcode Sep 28, 2023
280d851
[fix] [client] fix reader.hasMessageAvailable return false when incom…
poorbarcode Sep 28, 2023
3d8ed4e
[fix] [ml] Reader can set read-pos to a deleted ledger (#21248)
poorbarcode Oct 8, 2023
8c6aef2
[fix] [ml] fix wrong msg backlog of non-durable cursor after trim led…
poorbarcode Oct 8, 2023
d66488b
[fix] [broker] Make the new exclusive consumer instead the inactive o…
poorbarcode Oct 30, 2023
4603fd8
[fix] [build] Remove test testNoOrphanTopicIfInitFailed (#21569)
poorbarcode Nov 13, 2023
5052803
[fix] [broker] [branch-3.0] Fast fix infinite HTTP call createSubscri…
poorbarcode Jan 31, 2024
00366f2
[fix][broker] Fix String wrong format (#21829)
Technoboy- Feb 5, 2024
02c916b
[improve][admin][branch-3.0] Expose the offload threshold in seconds …
zymap Mar 1, 2024
455897e
[improve][fn][branch-3.0] Add missing "exception" argument to some `l…
jiangpengcheng Mar 7, 2024
23c7017
[improve][broker] Change log level to reduce duplicated logs (#22147)
mattisonchao Mar 10, 2024
b8eace2
[fix][client] GenericProtobufNativeSchema not implement getNativeSche…
shibd Mar 6, 2024
4585f7e
Check the validity of config before start websocket service (#22231)
Technoboy- Mar 15, 2024
5534585
Fix the tests with same namespace name (#22240)
Technoboy- Mar 15, 2024
ce2e052
[improve][broker] Add createTopicIfDoesNotExist option to RawReader c…
coderzc Mar 14, 2024
b65b7dc
[improve][broker] Add missing configuration keys for caching catch-up…
lhotari Mar 19, 2024
9b6a716
[fix] [client] Unclear error message when creating a consumer with tw…
poorbarcode Mar 19, 2024
bd46f9a
[fix] [broker] Close dispatchers stuck due to mismatch between dispat…
poorbarcode Mar 23, 2024
ba513f0
[fix] [broker] fix mismatch between dispatcher.consumerList and dispa…
poorbarcode Mar 25, 2024
0517c8f
[fix][sec] Bump google.golang.org/grpc from 1.38.0 to 1.56.3 in /puls…
dependabot[bot] Dec 27, 2023
4014599
[fix][sec] Go Functions security updates (#21844)
merlimat Jan 3, 2024
3cbcd6f
[improve][admin] Fix the `createMissingPartitions` doesn't response c…
Technoboy- Mar 21, 2024
2045623
[fix][client]Fixed getting an incorrect `maxMessageSize` value when a…
chenhongSZ Mar 21, 2024
f5905ea
[fix][ml]Expose ledger timestamp (#22338)
dao-jun Mar 27, 2024
b918c81
[fix] [test] Fix flaky test ManagedLedgerTest.testGetNumberOfEntriesI…
poorbarcode Mar 27, 2024
30972a1
[fix][test] Fix flaky ManagedLedgerErrorsTest.recoverAfterZnodeVersio…
lhotari Mar 27, 2024
43b21f8
[fix][broker] Fix OpReadEntry.skipCondition NPE issue (#22367)
Technoboy- Mar 27, 2024
ba52a49
[fix][client] Consumer lost message ack due to race condition in ackn…
Shawyeok Mar 27, 2024
0a4bd3d
[fix][test] Fix flaky RGUsageMTAggrWaitForAllMsgsTest (#22252)
lhotari Mar 12, 2024
ee49ef5
[fix][broker] Avoid expired unclosed ledgers when checking expired me…
coderzc Mar 27, 2024
766003b
[fix][misc] Make ConcurrentBitSet thread safe (#22361)
lhotari Mar 27, 2024
a361100
[improve][client] Add backoff for `seek` (#20963)
Technoboy- Aug 21, 2023
bf5619d
[fix][client] fix Reader.hasMessageAvailable might return true after …
BewareMyPower Mar 7, 2024
1f0c07c
[fix][broker] Fix wrong double-checked locking for readOnActiveConsum…
BewareMyPower Mar 16, 2024
45d907f
[fix][broker] Avoid execute prepareInitPoliciesCacheAsync if namespac…
hanmz Mar 17, 2024
07dfcf7
[fix][client] Fix wrong results of hasMessageAvailable and readNext a…
BewareMyPower Mar 27, 2024
51fab32
[fix][broker] Check cursor state before adding it to the `waitingCurs…
Technoboy- Mar 27, 2024
5c12632
[improve][misc] Remove the call to sun InetAddressCachePolicy (#22329)
jianyun8023 Mar 27, 2024
1801e6a
[fix][test][branch-3.0] Fix broken ManagedLedgerTest.testGetNumberOfE…
lhotari Mar 28, 2024
9304ef1
[fix][test] Fix flaky test BrokerServiceAutoSubscriptionCreationTest …
Technoboy- Mar 4, 2024
bc584f1
[fix][build] Upgrade alluxio version to 2.9.3 to fix CVE-2023-38889 (…
Technoboy- Dec 14, 2023
3e1bfcb
[improve][misc] Pin Netty version in pulsar-io/alluxio (#21728)
lhotari Dec 15, 2023
96db0a9
[improve][test][branch-3.0] Improve ManagedLedgerTest.testGetNumberOf…
lhotari Mar 28, 2024
3bd3ce0
[improve] [broker] Avoid repeated Read-and-discard when using Key_Sha…
poorbarcode Mar 29, 2024
e4eb9f1
[fix][broker] Support OIDC providers with JWK without alg field set i…
lhotari Apr 4, 2024
a136be6
[fix][misc] Rename all shaded Netty native libraries (#22415)
lhotari Apr 4, 2024
de7f730
[fix][broker] Fix consumer stops receiving messages when with large b…
Technoboy- Apr 8, 2024
b2bee4a
[admin][broker] Fix force delete subscription not working (#22423)
dao-jun Apr 4, 2024
1699ccb
[improve][io]: Add validation for JDBC sink not supporting primitive …
shibd Mar 29, 2024
8e54ce5
[fix][ml] No rollover inactive ledgers when metadata service invalid …
AnonHxy Mar 30, 2024
2c3ed47
[fix][client] Fix client side memory leak when call MessageImpl.creat…
poorbarcode Apr 7, 2024
701b274
Remove unused fields `msgSize`
BewareMyPower Mar 7, 2024
3c2be0c
[improve][misc] Upgrade to Bookkeeper 4.16.5 (#22484)
lhotari Apr 12, 2024
8bdc799
[fix][txn]Handle exceptions in the transaction pending ack init (#21274)
liangyepianzhou Apr 15, 2024
5158efb
[fix] [broker] Prevent long deduplication cursor backlog so that topi…
poorbarcode Apr 15, 2024
e6876d5
[improve] [broker] Servlet support response compression (#21667)
hangc0276 Mar 13, 2024
e7f93b9
[improve][test] Replace usage of curl in Java test and fix stream lea…
lhotari Apr 9, 2024
5a93c41
[improve][broker] Improve Gzip compression, allow excluding specific …
lhotari Apr 12, 2024
4bf5be8
[fix][broker] Optimize /metrics, fix unbounded request queue issue an…
lhotari Apr 13, 2024
ecfb383
[fix][broker] Create new ledger after the current ledger is closed (#…
liangyepianzhou Mar 22, 2024
50b9dc5
[fix][test] Flaky-test: testMessageExpiryWithTimestampNonRecoverableE…
shibd Apr 15, 2024
f094c60
[fix][sec] Upgrade Bouncycastle to 1.78 (#22509)
izumo27 Apr 15, 2024
c8190ad
[fix][io] Kafka Source connector maybe stuck (#22511)
shibd Apr 16, 2024
a453647
[improve][broker] Optimize gzip compression for /metrics endpoint by …
lhotari Apr 17, 2024
93633bb
[fix][broker] Fix a deadlock in SystemTopicBasedTopicPoliciesService …
heesung-sn Apr 18, 2024
2ec8838
[improve][build] Upgrade OWASP Dependency check version to 9.1.0 (#22…
lhotari Apr 18, 2024
fbfcfa6
[fix][broker] Fix NPE causing dispatching to stop when using Key_Shar…
poorbarcode Apr 19, 2024
7ce34fe
[improve][offload] Apply autoSkipNonRecoverableData configuration to …
shibd Apr 19, 2024
35b3c36
Removed unused import
mukesh-ctds Apr 19, 2024
f1fbd28
[improve][broker] backlog quota exceed limit log replaced with `debug…
mukesh154 Apr 12, 2024
776bcb3
Fix [improve] [proxy] Not close the socket if lookup failed caused by…
mukesh-ctds Apr 22, 2024
442911d
[improve][build] Upgrade Lombok to 1.18.32 for Java 22 support (#22425)
lhotari Apr 4, 2024
a0d3300
[fix][broker] Update topic partition failed when config maxNumPartiti…
hanmz Apr 9, 2024
3f2c56a
[fix][broker] Fix message drop record in producer stat (#22458)
zhangqian321 Apr 10, 2024
5731532
[fix][test] SchemaMap in AutoConsumeSchema has been reused (#22500)
Denovo1998 Apr 16, 2024
5edd1f6
[improve] Make the config `metricsBufferResponse` description more ef…
dao-jun Apr 16, 2024
6839bb2
[improve][broker] Add topic name to emitted error messages. (#22506)
dao-jun Apr 16, 2024
62d4367
[improve][broker] Repeat the handleMetadataChanges callback when conf…
hanmz Apr 17, 2024
8bdcac2
[improve][test] Move ShadowManagedLedgerImplTest to flaky tests (#22526)
lhotari Apr 17, 2024
c81ac33
[fix][broker] Fix typos in Consumer class (#22532)
hanmz Apr 18, 2024
88cbe6e
[fix][broker] Fix broken topic policy implementation compatibility wi…
rdhabalia Apr 19, 2024
6b815d4
[improve][broker] Support X-Forwarded-For and HA Proxy Protocol for r…
lhotari Apr 22, 2024
132be2f
[fix][ml] Fix NPE of getValidPositionAfterSkippedEntries when recover…
coderzc Apr 22, 2024
bc28307
[fix][broker] upgrade jclouds 2.5.0 -> 2.6.0 (#22220)
pgier Mar 15, 2024
dc643fc
[fix][offload] Increase file upload limit from 2048MiB to 4096MiB for…
lhotari Apr 22, 2024
9ecd0c0
Merge branch '3.1_ds' into LS-1263-new
mukesh-ctds Apr 23, 2024
10edbd3
Revert "[fix][test][branch-3.0] Fix broken ManagedLedgerTest.testGetN…
coderzc Apr 23, 2024
3ac8a04
[fix][test][branch-3.0] Fix test PersistentTopicsTest.testUpdateParti…
coderzc Apr 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci-go-functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
go-version: [1.15, 1.16, 1.17]
go-version: ['1.21']

steps:
- name: Check out code into the Go module directory
Expand All @@ -94,7 +94,7 @@ jobs:
- name: InstallTool
run: |
cd pulsar-function-go
wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.18.0
wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.55.2
./bin/golangci-lint --version

- name: Build
Expand Down
6 changes: 3 additions & 3 deletions bouncy-castle/bc/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,6 @@
This projects includes binary packages with the following licenses:
Bouncy Castle License
* Bouncy Castle -- licenses/LICENSE-bouncycastle.txt
- org.bouncycastle-bcpkix-jdk18on-1.75.jar
- org.bouncycastle-bcprov-jdk18on-1.75.jar
- org.bouncycastle-bcprov-ext-jdk18on-1.75.jar
- org.bouncycastle-bcpkix-jdk18on-1.78.jar
- org.bouncycastle-bcprov-jdk18on-1.78.jar
- org.bouncycastle-bcprov-ext-jdk18on-1.78.jar
33 changes: 27 additions & 6 deletions conf/broker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ advertisedAddress=
# If true, the real IP addresses of consumers and producers can be obtained when getting topic statistics data.
haProxyProtocolEnabled=false

# Enable or disable the use of HA proxy protocol for resolving the client IP for http/https requests.
webServiceHaProxyProtocolEnabled=false

# Trust X-Forwarded-For header for resolving the client IP for http/https requests. Default is false.
webServiceTrustXForwardedFor=false

# Add detailed client/remote and server/local addresses and ports to http/https request logging.
# Defaults to true when either webServiceHaProxyProtocolEnabled or webServiceTrustXForwardedFor is enabled.
webServiceLogDetailedAddresses=

# Number of threads to config Netty Acceptor. Default is 1
numAcceptorThreads=

Expand Down Expand Up @@ -1148,6 +1158,16 @@ managedLedgerCacheEvictionTimeThresholdMillis=1000
# and thus should be set as inactive.
managedLedgerCursorBackloggedThreshold=1000

# Minimum cursors that must be in backlog state to cache and reuse the read entries.
# (Default =0 to disable backlog reach cache)
managedLedgerMinimumBacklogCursorsForCaching=0

# Minimum backlog entries for any cursor before start caching reads.
managedLedgerMinimumBacklogEntriesForCaching=1000

# Maximum backlog entry difference to prevent caching entries that can't be reused.
managedLedgerMaxBacklogBetweenCursorsForCaching=1000

# Rate limit the amount of writes per second generated by consumer acking the messages
managedLedgerDefaultMarkDeleteRateLimit=1.0

Expand Down Expand Up @@ -1651,10 +1671,10 @@ s3ManagedLedgerOffloadBucket=
# For Amazon S3 ledger offload, Alternative endpoint to connect to (useful for testing)
s3ManagedLedgerOffloadServiceEndpoint=

# For Amazon S3 ledger offload, Max block size in bytes. (64MB by default, 5MB minimum)
# For Amazon S3 ledger offload, Max block size in bytes. (64MiB by default, 5MiB minimum)
s3ManagedLedgerOffloadMaxBlockSizeInBytes=67108864

# For Amazon S3 ledger offload, Read buffer size in bytes (1MB by default)
# For Amazon S3 ledger offload, Read buffer size in bytes (1MiB by default)
s3ManagedLedgerOffloadReadBufferSizeInBytes=1048576

# For Google Cloud Storage ledger offload, region where offload bucket is located.
Expand All @@ -1664,10 +1684,11 @@ gcsManagedLedgerOffloadRegion=
# For Google Cloud Storage ledger offload, Bucket to place offloaded ledger into
gcsManagedLedgerOffloadBucket=

# For Google Cloud Storage ledger offload, Max block size in bytes. (64MB by default, 5MB minimum)
gcsManagedLedgerOffloadMaxBlockSizeInBytes=67108864
# For Google Cloud Storage ledger offload, Max block size in bytes. (128MiB by default, 5MiB minimum)
# Since JClouds limits the maximum number of blocks to 32, the maximum size of a ledger is 32 times the block size.
gcsManagedLedgerOffloadMaxBlockSizeInBytes=134217728

# For Google Cloud Storage ledger offload, Read buffer size in bytes (1MB by default)
# For Google Cloud Storage ledger offload, Read buffer size in bytes (1MiB by default)
gcsManagedLedgerOffloadReadBufferSizeInBytes=1048576

# For Google Cloud Storage, path to json file containing service account credentials.
Expand Down Expand Up @@ -1850,4 +1871,4 @@ brokerInterceptorsDirectory=./interceptors
brokerInterceptors=

# Enable or disable the broker interceptor, which is only used for testing for now
disableBrokerInterceptors=true
disableBrokerInterceptors=true
10 changes: 10 additions & 0 deletions conf/functions_worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ workerHostname: localhost
workerPort: 6750
workerPortTls: 6751

# Enable or disable the use of HA proxy protocol for resolving the client IP for http/https requests.
webServiceHaProxyProtocolEnabled: false

# Trust X-Forwarded-For header for resolving the client IP for http/https requests. Default is false.
webServiceTrustXForwardedFor: false

# Add detailed client/remote and server/local addresses and ports to http/https request logging.
# Defaults to true when either webServiceHaProxyProtocolEnabled or webServiceTrustXForwardedFor is enabled.
webServiceLogDetailedAddresses: null

# The Configuration metadata store url
# Examples:
# * zk:my-zk-1:2181,my-zk-2:2181,my-zk-3:2181
Expand Down
16 changes: 14 additions & 2 deletions conf/proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ advertisedAddress=
# If true, the real IP addresses of consumers and producers can be obtained when getting topic statistics data.
haProxyProtocolEnabled=false

# Enable or disable the use of HA proxy protocol for resolving the client IP for http/https requests.
webServiceHaProxyProtocolEnabled=false

# Trust X-Forwarded-For header for resolving the client IP for http/https requests. Default is false.
webServiceTrustXForwardedFor=false

# Add detailed client/remote and server/local addresses and ports to http/https request logging.
# Defaults to true when either webServiceHaProxyProtocolEnabled or webServiceTrustXForwardedFor is enabled.
webServiceLogDetailedAddresses=

# Enables zero-copy transport of data across network interfaces using the splice system call.
# Zero copy mode cannot be used when TLS is enabled or when proxyLogLevel is > 0.
proxyZeroCopyModeEnabled=true
Expand Down Expand Up @@ -376,5 +386,7 @@ zooKeeperCacheExpirySeconds=-1
enableProxyStatsEndpoints=true
# Whether the '/metrics' endpoint requires authentication. Defaults to true
authenticateMetricsEndpoint=true
# Enable cache metrics data, default value is false
metricsBufferResponse=false
# Time in milliseconds that metrics endpoint would time out. Default is 30s.
# Set it to 0 to disable timeout.
metricsServletTimeoutMs=30000

14 changes: 12 additions & 2 deletions conf/standalone.conf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ advertisedAddress=
# If true, the real IP addresses of consumers and producers can be obtained when getting topic statistics data.
haProxyProtocolEnabled=false

# Enable or disable the use of HA proxy protocol for resolving the client IP for http/https requests.
webServiceHaProxyProtocolEnabled=false

# Trust X-Forwarded-For header for resolving the client IP for http/https requests. Default is false.
webServiceTrustXForwardedFor=false

# Add detailed client/remote and server/local addresses and ports to http/https request logging.
# Defaults to true when either webServiceHaProxyProtocolEnabled or webServiceTrustXForwardedFor is enabled.
webServiceLogDetailedAddresses=

# Number of threads to use for Netty IO. Default is set to 2 * Runtime.getRuntime().availableProcessors()
numIOThreads=

Expand Down Expand Up @@ -813,10 +823,10 @@ managedLedgerNewEntriesCheckDelayInMillis=10
managedLedgerMinimumBacklogCursorsForCaching=0

# Minimum backlog entries for any cursor before start caching reads.
managedLedgerMinimumBacklogEntriesForCaching=100
managedLedgerMinimumBacklogEntriesForCaching=1000

# Maximum backlog entry difference to prevent caching entries that can't be reused.
managedLedgerMaxBacklogBetweenCursorsForCaching=10000
managedLedgerMaxBacklogBetweenCursorsForCaching=1000

# Use Open Range-Set to cache unacked messages
managedLedgerUnackedRangesOpenCacheSetEnabled=true
Expand Down
10 changes: 10 additions & 0 deletions conf/websocket.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ statusFilePath=
# Hostname or IP address the service binds on, default is 0.0.0.0.
bindAddress=0.0.0.0

# Enable or disable the use of HA proxy protocol for resolving the client IP for http/https requests.
webServiceHaProxyProtocolEnabled=false

# Trust X-Forwarded-For header for resolving the client IP for http/https requests. Default is false.
webServiceTrustXForwardedFor=false

# Add detailed client/remote and server/local addresses and ports to http/https request logging.
# Defaults to true when either webServiceHaProxyProtocolEnabled or webServiceTrustXForwardedFor is enabled.
webServiceLogDetailedAddresses=

# Name of the pulsar cluster to connect to
clusterName=

Expand Down
64 changes: 32 additions & 32 deletions distribution/server/src/assemble/LICENSE.bin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -345,34 +345,34 @@ The Apache Software License, Version 2.0
- net.java.dev.jna-jna-jpms-5.12.1.jar
- net.java.dev.jna-jna-platform-jpms-5.12.1.jar
* BookKeeper
- org.apache.bookkeeper-bookkeeper-common-4.16.4.jar
- org.apache.bookkeeper-bookkeeper-common-allocator-4.16.4.jar
- org.apache.bookkeeper-bookkeeper-proto-4.16.4.jar
- org.apache.bookkeeper-bookkeeper-server-4.16.4.jar
- org.apache.bookkeeper-bookkeeper-tools-framework-4.16.4.jar
- org.apache.bookkeeper-circe-checksum-4.16.4.jar
- org.apache.bookkeeper-cpu-affinity-4.16.4.jar
- org.apache.bookkeeper-statelib-4.16.4.jar
- org.apache.bookkeeper-stream-storage-api-4.16.4.jar
- org.apache.bookkeeper-stream-storage-common-4.16.4.jar
- org.apache.bookkeeper-stream-storage-java-client-4.16.4.jar
- org.apache.bookkeeper-stream-storage-java-client-base-4.16.4.jar
- org.apache.bookkeeper-stream-storage-proto-4.16.4.jar
- org.apache.bookkeeper-stream-storage-server-4.16.4.jar
- org.apache.bookkeeper-stream-storage-service-api-4.16.4.jar
- org.apache.bookkeeper-stream-storage-service-impl-4.16.4.jar
- org.apache.bookkeeper.http-http-server-4.16.4.jar
- org.apache.bookkeeper.http-vertx-http-server-4.16.4.jar
- org.apache.bookkeeper.stats-bookkeeper-stats-api-4.16.4.jar
- org.apache.bookkeeper.stats-prometheus-metrics-provider-4.16.4.jar
- org.apache.distributedlog-distributedlog-common-4.16.4.jar
- org.apache.distributedlog-distributedlog-core-4.16.4-tests.jar
- org.apache.distributedlog-distributedlog-core-4.16.4.jar
- org.apache.distributedlog-distributedlog-protocol-4.16.4.jar
- org.apache.bookkeeper.stats-codahale-metrics-provider-4.16.4.jar
- org.apache.bookkeeper-bookkeeper-slogger-api-4.16.4.jar
- org.apache.bookkeeper-bookkeeper-slogger-slf4j-4.16.4.jar
- org.apache.bookkeeper-native-io-4.16.4.jar
- org.apache.bookkeeper-bookkeeper-common-4.16.5.jar
- org.apache.bookkeeper-bookkeeper-common-allocator-4.16.5.jar
- org.apache.bookkeeper-bookkeeper-proto-4.16.5.jar
- org.apache.bookkeeper-bookkeeper-server-4.16.5.jar
- org.apache.bookkeeper-bookkeeper-tools-framework-4.16.5.jar
- org.apache.bookkeeper-circe-checksum-4.16.5.jar
- org.apache.bookkeeper-cpu-affinity-4.16.5.jar
- org.apache.bookkeeper-statelib-4.16.5.jar
- org.apache.bookkeeper-stream-storage-api-4.16.5.jar
- org.apache.bookkeeper-stream-storage-common-4.16.5.jar
- org.apache.bookkeeper-stream-storage-java-client-4.16.5.jar
- org.apache.bookkeeper-stream-storage-java-client-base-4.16.5.jar
- org.apache.bookkeeper-stream-storage-proto-4.16.5.jar
- org.apache.bookkeeper-stream-storage-server-4.16.5.jar
- org.apache.bookkeeper-stream-storage-service-api-4.16.5.jar
- org.apache.bookkeeper-stream-storage-service-impl-4.16.5.jar
- org.apache.bookkeeper.http-http-server-4.16.5.jar
- org.apache.bookkeeper.http-vertx-http-server-4.16.5.jar
- org.apache.bookkeeper.stats-bookkeeper-stats-api-4.16.5.jar
- org.apache.bookkeeper.stats-prometheus-metrics-provider-4.16.5.jar
- org.apache.distributedlog-distributedlog-common-4.16.5.jar
- org.apache.distributedlog-distributedlog-core-4.16.5-tests.jar
- org.apache.distributedlog-distributedlog-core-4.16.5.jar
- org.apache.distributedlog-distributedlog-protocol-4.16.5.jar
- org.apache.bookkeeper.stats-codahale-metrics-provider-4.16.5.jar
- org.apache.bookkeeper-bookkeeper-slogger-api-4.16.5.jar
- org.apache.bookkeeper-bookkeeper-slogger-slf4j-4.16.5.jar
- org.apache.bookkeeper-native-io-4.16.5.jar
* Apache HTTP Client
- org.apache.httpcomponents-httpclient-4.5.13.jar
- org.apache.httpcomponents-httpcore-4.4.15.jar
Expand Down Expand Up @@ -579,10 +579,10 @@ Creative Commons Attribution License

Bouncy Castle License
* Bouncy Castle -- ../licenses/LICENSE-bouncycastle.txt
- org.bouncycastle-bcpkix-jdk18on-1.75.jar
- org.bouncycastle-bcprov-ext-jdk18on-1.75.jar
- org.bouncycastle-bcprov-jdk18on-1.75.jar
- org.bouncycastle-bcutil-jdk18on-1.75.jar
- org.bouncycastle-bcpkix-jdk18on-1.78.jar
- org.bouncycastle-bcprov-ext-jdk18on-1.78.jar
- org.bouncycastle-bcprov-jdk18on-1.78.jar
- org.bouncycastle-bcutil-jdk18on-1.78.jar

Datastax
- com.datastax.oss-managed-ledger-3.1.3.2-SNAPSHOT.jar
Expand Down
14 changes: 7 additions & 7 deletions distribution/shell/src/assemble/LICENSE.bin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ The Apache Software License, Version 2.0
- log4j-web-2.18.0.jar

* BookKeeper
- bookkeeper-common-allocator-4.16.4.jar
- cpu-affinity-4.16.4.jar
- circe-checksum-4.16.4.jar
- bookkeeper-common-allocator-4.16.5.jar
- cpu-affinity-4.16.5.jar
- circe-checksum-4.16.5.jar
* AirCompressor
- aircompressor-0.20.jar
* AsyncHttpClient
Expand Down Expand Up @@ -466,10 +466,10 @@ Creative Commons Attribution License

Bouncy Castle License
* Bouncy Castle -- ../licenses/LICENSE-bouncycastle.txt
- bcpkix-jdk18on-1.75.jar
- bcprov-ext-jdk18on-1.75.jar
- bcprov-jdk18on-1.75.jar
- bcutil-jdk18on-1.75.jar
- bcpkix-jdk18on-1.78.jar
- bcprov-ext-jdk18on-1.78.jar
- bcprov-jdk18on-1.78.jar
- bcutil-jdk18on-1.78.jar

------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,11 @@ public void readEntryComplete(Entry entry, Object ctx) {
result.entry = entry;
counter.countDown();
}

@Override
public String toString() {
return String.format("Cursor [%s] get Nth entry", ManagedCursorImpl.this);
}
}, null);

counter.await(ledger.getConfig().getMetadataOperationsTimeoutSeconds(), TimeUnit.SECONDS);
Expand Down Expand Up @@ -980,13 +985,18 @@ private void checkForNewEntries(OpReadEntry op, ReadEntriesCallback callback, Ob
log.debug("[{}] [{}] Re-trying the read at position {}", ledger.getName(), name, op.readPosition);
}

if (isClosed()) {
callback.readEntriesFailed(new CursorAlreadyClosedException("Cursor was already closed"), ctx);
return;
}

if (!hasMoreEntries()) {
if (log.isDebugEnabled()) {
log.debug("[{}] [{}] Still no entries available. Register for notification", ledger.getName(),
name);
}
// Let the managed ledger know we want to be notified whenever a new entry is published
ledger.waitingCursors.add(this);
ledger.addWaitingCursor(this);
} else {
if (log.isDebugEnabled()) {
log.debug("[{}] [{}] Skip notification registering since we do have entries available",
Expand Down Expand Up @@ -1111,6 +1121,9 @@ public long getNumberOfEntriesInBacklog(boolean isPrecise) {
messagesConsumedCounter, markDeletePosition, readPosition);
}
if (isPrecise) {
if (markDeletePosition.compareTo(ledger.getLastPosition()) >= 0) {
return 0;
}
return getNumberOfEntries(Range.openClosed(markDeletePosition, ledger.getLastPosition()));
}

Expand Down Expand Up @@ -1265,12 +1278,13 @@ protected void internalResetCursor(PositionImpl proposedReadPosition,
if (proposedReadPosition.equals(PositionImpl.EARLIEST)) {
newReadPosition = ledger.getFirstPosition();
} else if (proposedReadPosition.equals(PositionImpl.LATEST)) {
newReadPosition = ledger.getLastPosition().getNext();
newReadPosition = ledger.getNextValidPosition(ledger.getLastPosition());
} else {
newReadPosition = proposedReadPosition;
}

log.info("[{}] Initiate reset readPosition to {} on cursor {}", ledger.getName(), newReadPosition, name);
log.info("[{}] Initiate reset readPosition from {} to {} on cursor {}", ledger.getName(), readPosition,
newReadPosition, name);

synchronized (pendingMarkDeleteOps) {
if (!RESET_CURSOR_IN_PROGRESS_UPDATER.compareAndSet(this, FALSE, TRUE)) {
Expand Down Expand Up @@ -1536,6 +1550,11 @@ public synchronized void readEntryFailed(ManagedLedgerException mle, Object ctx)
callback.readEntriesFailed(exception.get(), ctx);
}
}

@Override
public String toString() {
return String.format("Cursor [%s] async replay entries", ManagedCursorImpl.this);
}
};

positions.stream().filter(position -> !alreadyAcknowledgedPositions.contains(position))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ public void operationComplete(MLDataFormats.ManagedLedgerInfo pbInfo, Stat stat)
ledgerInfo.ledgerId = pbLedgerInfo.getLedgerId();
ledgerInfo.entries = pbLedgerInfo.hasEntries() ? pbLedgerInfo.getEntries() : null;
ledgerInfo.size = pbLedgerInfo.hasSize() ? pbLedgerInfo.getSize() : null;
ledgerInfo.timestamp = pbLedgerInfo.hasTimestamp() ? pbLedgerInfo.getTimestamp() : null;
ledgerInfo.isOffloaded = pbLedgerInfo.hasOffloadContext();
if (pbLedgerInfo.hasOffloadContext()) {
MLDataFormats.OffloadContext offloadContext = pbLedgerInfo.getOffloadContext();
Expand Down
Loading
Loading