-
Notifications
You must be signed in to change notification settings - Fork 25
Bump pulsar version to 2.10.5-SNAPSHOT #5859
base: master
Are you sure you want to change the base?
Commits on Jan 28, 2023
-
[fix] [ml] Topics stats shows msgBacklog but there reality no backlog (…
…apache#19275) ### Motivation #### 1. `readPosition` point to a deleted ledger When `trim ledgers` and `create new cursor` are executed concurrently, it will cause the `readPosition` of the cursor to point to a deleted ledger. | time | `trim ledgers` | `create new cursor` | | --- | --- | --- | | 1 | | set read position and mark deleted position | | 2 | delete ledger | | | 3 | | add the cursor to `ManagedLedger.cursors` | ---- #### 2. Backlog wrong caused by `readPosition` wrong <strong>(Highlight)</strong>Since the read position of the cursor is pointing at a deleted ledger, so deleted messages will never be consumed or acknowledged. Since the backlog in the API `topics stats` response is calculated as this: `managedLedger.entriesAddedCounter - cursor.messagesConsumedCounter`, the result is: Topics stats show `msgBacklog` but there is reality no backlog. - `managedLedger.entriesAddedCounter`: Pulsar will set it to `0` when creating a new managed ledger, it will increment when adding entries. - `cursor.messagesConsumedCounter`: Pulsar will set it to `0` when creating a new cursor, it will increment when acknowledging. For example: - write entries to the managed ledger: `{1:0~1:9}...{5:0~5:9}` - `managedLedger.entriesAddedCounter` is `50` now - create a new cursor, and set the read position to `1:0` - `cursor.messagesConsumedCounter` is `0` now - delete ledgers `1~4` - consume all messages - can only consume the messages {5:0~5:9}, so `cursor.messagesConsumedCounter` is `10` now - the `backlog` in response of `topics stats` is `50 - 10 = 40`, but there reality no backlog ---- #### 3. Reproduce issue Sorry, I spent 4 hours trying to write a non-invasive test, but failed. <strong>(Highlight)</strong>You can reproduce by `testBacklogIfCursorCreateConcurrentWithTrimLedger` in the PR apache#19274 https://github.com/apache/pulsar/blob/a2cdc759fc2710e4dd913eb0485d23ebcaa076a4/pulsar-broker/src/test/java/org/apache/bookkeeper/mledger/impl/StatsBackLogTest.java#L163 ### Modifications Avoid the race condition of `cursor.initializeCursorPosition` and `internalTrimLedgers` (cherry picked from commit 4139fef)
Configuration menu - View commit details
-
Copy full SHA for 725b82c - Browse repository at this point
Copy the full SHA 725b82cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 74f40c9 - Browse repository at this point
Copy the full SHA 74f40c9View commit details
Commits on Jan 29, 2023
-
[fix][cli][branch-2.10] Fix mbeans to json (apache#19294)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7b9a78e - Browse repository at this point
Copy the full SHA 7b9a78eView commit details
Commits on Jan 30, 2023
-
[improve][broker] Replaced checkBackloggedCursors with checkBacklogge…
…dCursor(single subscription check) upon subscription (apache#19343)
Configuration menu - View commit details
-
Copy full SHA for 6b067a5 - Browse repository at this point
Copy the full SHA 6b067a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a8a4d6 - Browse repository at this point
Copy the full SHA 0a8a4d6View commit details -
[fix][broker] fixed the build error for pattern matching variable in …
…lower JVM versions (apache#19362)
Configuration menu - View commit details
-
Copy full SHA for 0dfbc61 - Browse repository at this point
Copy the full SHA 0dfbc61View commit details
Commits on Jan 31, 2023
-
[fix][client] Prevent DNS reverse lookup when physical address is an …
…IP address (apache#19028) (cherry picked from commit d8569cd)
Configuration menu - View commit details
-
Copy full SHA for 5385f3b - Browse repository at this point
Copy the full SHA 5385f3bView commit details -
[fix][client] Set fields earlier for correct ClientCnx initialization (…
…apache#19327) (cherry picked from commit 3d8b52a)
Configuration menu - View commit details
-
Copy full SHA for d5244c7 - Browse repository at this point
Copy the full SHA d5244c7View commit details -
[fix][proxy] Only go to connecting state once (apache#19331)
Relates to: apache#17831 (comment) ### Motivation When the `ProxyConnection` handles a `Connect` command, that is the time to go to `Connecting` state. There is no other time that makes sense to switch to connecting. The current logic will go to connecting in certain re-authentication scenarios, but those are incorrect. By moving the state change to earlier in the logic, we make the state transition clearer and prevent corrupted state. ### Modifications * Remove `state = State.Connecting` from the `doAuthentication` method, which is called multiple times for various reasons * Add `state = State.Connecting` to the start of the `handleConnect` method. ### Verifying this change The existing tests will verify this change, and reading through the code makes it clear this is a correct change. ### Does this pull request potentially affect one of the following parts: Not a breaking change. ### Documentation - [x] `doc-not-needed` It would be nice to map out the state transitions for our connection classes. That is our of the scope of this small improvement. ### Matching PR in forked repository PR in forked repository: michaeljmarshall#21 (cherry picked from commit c8650ce)
Configuration menu - View commit details
-
Copy full SHA for f9e24f2 - Browse repository at this point
Copy the full SHA f9e24f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd700da - Browse repository at this point
Copy the full SHA fd700daView commit details
Commits on Feb 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4dca93b - Browse repository at this point
Copy the full SHA 4dca93bView commit details -
[fix][broker]optimize the shutdown sequence of broker service when it…
… close (apache#16756) (cherry picked from commit 14912a6)
Configuration menu - View commit details
-
Copy full SHA for a28ee0e - Browse repository at this point
Copy the full SHA a28ee0eView commit details -
[fix][broker] Pass subscriptionName to auth service (apache#17123) (a…
…pache#19423) Co-authored-by: Michael Marshall <mmarshall@apache.org> ### Motivation Cherry-pick apache#17123 ### Verifying this change - [ ] Make sure that the change passes the CI checks. *(Please pick either of the following options)* This change is a trivial rework / code cleanup without any test coverage. *(or)* This change is already covered by existing tests, such as *(please describe tests)*. *(or)* This change added tests and can be verified as follows: *(example:)* - *Added integration tests for end-to-end deployment with large payloads (10MB)* - *Extended integration test for recovery after broker failure* ### Does this pull request potentially affect one of the following parts: <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> *If the box was checked, please highlight the changes* - [ ] Dependencies (add or upgrade a dependency) - [ ] The public API - [ ] The schema - [ ] The default values of configurations - [ ] The threading model - [ ] The binary protocol - [ ] The REST endpoints - [ ] The admin CLI options - [ ] The metrics - [ ] Anything that affects deployment ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> ### Matching PR in forked repository PR in forked repository: <!-- ENTER URL HERE --> <!-- After opening this PR, the build in apache/pulsar will fail and instructions will be provided for opening a PR in the PR author's forked repository. apache/pulsar pull requests should be first tested in your own fork since the apache/pulsar CI based on GitHub Actions has constrained resources and quota. GitHub Actions provides separate quota for pull requests that are executed in a forked repository. The tests will be run in the forked repository until all PR review comments have been handled, the tests pass and the PR is approved by a reviewer. -->
Configuration menu - View commit details
-
Copy full SHA for 503457b - Browse repository at this point
Copy the full SHA 503457bView commit details
Commits on Feb 6, 2023
-
[fix][txn] Correct the prompt message (apache#17009)
Co-authored-by: fengwenzhi <fengwenzhi.max@bigo.sg> (cherry picked from commit 41edd2e)
Configuration menu - View commit details
-
Copy full SHA for 45678b8 - Browse repository at this point
Copy the full SHA 45678b8View commit details -
[fix][broker]fix multi invocation for ledger createComplete (apache#1…
Configuration menu - View commit details
-
Copy full SHA for b83214e - Browse repository at this point
Copy the full SHA b83214eView commit details -
[fix][misc] do not require encryption on system topics (apache#18898)
(cherry picked from commit 4129583)
Configuration menu - View commit details
-
Copy full SHA for 0c2e526 - Browse repository at this point
Copy the full SHA 0c2e526View commit details -
[fix] [broker] getLastMessageId returns a wrong batch index of last m…
…essage if enabled read compacted (apache#18877) ### Motivation The method `consumer.getLastMessageId` will return the latest message which can be received. - If disabled `read compacted`, will return the last confirmed position of `ManagedLedger`. - If enabled `read compacted`, will return the latest message id which can be read from the compacted topic. If we send a batch message like this: ```java producer.newMessage().key("k1").value("v0").sendAsync(); // message-id is [3:1,-1:0] producer.newMessage().key("k1").value("v1").sendAsync(); // message-id is [3:1,-1:1] producer.newMessage().key("k1").value("v2").sendAsync(); // message-id is [3:1,-1:2] producer.newMessage().key("k2").value("v0").sendAsync(); // message-id is [3:1,-1:3] producer.newMessage().key("k2").value("v1").sendAsync(); // message-id is [3:1,-1:4] producer.newMessage().key("k2").value(null).sendAsync(); // message-id is [3:1,-1:5] producer.flush(); ``` After the compaction task is done, the messages with key `k2` will be deleted by the compaction task. Then the latest message that can be received will be `[3:1:-1:2]`. --- When we call `consumer.getLastMessageId`, the expected result is: ``` [3:1,-1:2] ``` --- But the actual result is: ``` [3:1,-1:5] ``` ### Modifications If enabled `read compacted` and the latest entry of the compacted topic is a batched message, extract the entry and calculate all internal messages, then return the latest message which is not marked `compacted out`. (cherry picked from commit 83993ae)
Configuration menu - View commit details
-
Copy full SHA for 6e93fe4 - Browse repository at this point
Copy the full SHA 6e93fe4View commit details -
Configuration menu - View commit details
-
Copy full SHA for fde620e - Browse repository at this point
Copy the full SHA fde620eView commit details -
[fix][broker] Support deleting partitioned topics with the keyword `-…
…partition-` (apache#19230) (cherry picked from commit fc4bca6)
Configuration menu - View commit details
-
Copy full SHA for 0ade728 - Browse repository at this point
Copy the full SHA 0ade728View commit details
Commits on Feb 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 80ab719 - Browse repository at this point
Copy the full SHA 80ab719View commit details -
[fix][broker] Topic could be in fenced state forever if deletion fails (
apache#19129) (cherry picked from commit a6516a8)
Configuration menu - View commit details
-
Copy full SHA for 9f0e8e6 - Browse repository at this point
Copy the full SHA 9f0e8e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3677138 - Browse repository at this point
Copy the full SHA 3677138View commit details -
[improve][broker] Added isActive in ManagedCursorImpl (apache#19341)
(cherry picked from commit 96fb7da)
Configuration menu - View commit details
-
Copy full SHA for f61aafa - Browse repository at this point
Copy the full SHA f61aafaView commit details -
[improve][broker] Added isActive in ManagedCursorImpl (apache#19341)
(cherry picked from commit 96fb7da)
Configuration menu - View commit details
-
Copy full SHA for d1e4008 - Browse repository at this point
Copy the full SHA d1e4008View commit details -
[improve][broker] Copy subscription properties during updating the to…
…pic partition number. (apache#19223) (cherry picked from commit 253e3e4)
Configuration menu - View commit details
-
Copy full SHA for 05cbbfd - Browse repository at this point
Copy the full SHA 05cbbfdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 283f773 - Browse repository at this point
Copy the full SHA 283f773View commit details
Commits on Feb 8, 2023
-
Revert "[fix][broker] Topic could be in fenced state forever if delet…
…ion fails (apache#19129)" This reverts commit 9f0e8e6.
Configuration menu - View commit details
-
Copy full SHA for 660ac36 - Browse repository at this point
Copy the full SHA 660ac36View commit details -
[cherry-pick][branch-2.10] Close TransactionBuffer when create persis…
…tent topic timeout (apache#19454) Co-authored-by: Tao Jiuming <95597048+tjiuming@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 4a1ac0a - Browse repository at this point
Copy the full SHA 4a1ac0aView commit details -
[revert][misc] "modify check waitingForPingResponse with volatile (ap…
…ache#12615)" (apache#19439) This reverts commit 62e2547. ### Motivation The motivation for apache#12615 relies on an incorrect understanding of Netty's threading model. The `ctx.executor()` is the context's event loop thread that is the same thread used to process messages. The `waitingForPingResponse` variable is only ever updated/read from the context's event loop, so there is no need to make the variable `volatile`. ### Modifications * Remove `volatile` keyword for `waitingForPingResponse` ### Verifying this change Read through all references to the variable. ### Documentation - [x] `doc-not-needed` ### Matching PR in forked repository PR in forked repository: Skipping for this trivial PR. (cherry picked from commit fb28d83)
Configuration menu - View commit details
-
Copy full SHA for f6da22b - Browse repository at this point
Copy the full SHA f6da22bView commit details
Commits on Feb 9, 2023
-
[fix][broker] Fix PulsarRegistrationClient and ZkRegistrationClient n…
…ot aware rack info problem. (apache#18672) (cherry picked from commit 43335fb)
Configuration menu - View commit details
-
Copy full SHA for 003c186 - Browse repository at this point
Copy the full SHA 003c186View commit details -
[fix][ml] Fix potential NPE cause future never complete. (apache#19415)
(cherry picked from commit 11073fd)
Configuration menu - View commit details
-
Copy full SHA for 58fb59f - Browse repository at this point
Copy the full SHA 58fb59fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21fecf0 - Browse repository at this point
Copy the full SHA 21fecf0View commit details -
[improve][txn] Handle changeToReadyState failure correctly in TC clie…
…nt (apache#19308) (cherry picked from commit 644be5f)
Configuration menu - View commit details
-
Copy full SHA for ddb94aa - Browse repository at this point
Copy the full SHA ddb94aaView commit details -
[fix][txn] fix txn coordinator recover handle committing and aborting…
… txn race condition. (apache#19201) Fixes apache#19200 transaction lasted for long time and will not be aborted, which cause TB's MaxReadPosition do not move and will not take snapshot. With an old snapshot, TB will read a lot of entry while doing recovery. In worst cases, there are 30 minutes of unavailable time with Topics. avoid concurrent execution. (cherry picked from commit 96f4161)
Configuration menu - View commit details
-
Copy full SHA for 5dd13ec - Browse repository at this point
Copy the full SHA 5dd13ecView commit details -
[cherry-pick][branch-2.10] Allow superusers to abort transactions (ap…
…ache#19467) (apache#19473) Co-authored-by: Nicolò Boschi <boschi1997@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for cb91c4a - Browse repository at this point
Copy the full SHA cb91c4aView commit details
Commits on Feb 10, 2023
-
[fix][broker] Fix race condition while updating partition number (apa…
…che#19199) (cherry picked from commit 4d57828)
Configuration menu - View commit details
-
Copy full SHA for 4b83d06 - Browse repository at this point
Copy the full SHA 4b83d06View commit details -
[fix][broker] Remove timestamp from broker metrics (apache#17419)
When a Pulsar topic is unloaded from a broker, certain metrics related to that topic will appear to remain active for the broker for 5 minutes. This is confusing for troubleshooting because it makes the topic appear to be owned by multiple brokers for a short period of time. See below for a way to reproduce this behavior. In order to solve this "zombie" metric problem, I propose we remove the timestamps that get exported with each Prometheus metric served by the broker. Since we introduced Prometheus metrics in #294, we have exported a timestamp along with most metrics. This is an optional, valid part of the spec defined [here](https://prometheus.io/docs/instrumenting/exposition_formats/#comments-help-text-and-type-information). However, after our adoption of Prometheus metrics, the Prometheus project released version 2.0 with a significant improvement to its concept of staleness. In short, before 2.0, a metric that was in the last scrape but not the next one (this often happens for topics that are unloaded) will essentially inherit the most recent value for the last 5 minute window. If there isn't one in the past 5 minutes, the metric becomes "stale" and isn't reported. Starting in 2.0, there was new logic to consider a value stale the very first time that it is not reported in a scrape. Importantly, this new behavior is only available if you do not export timestamps with metrics, as documented here: https://prometheus.io/docs/prometheus/latest/querying/basics/#staleness. We want to use the new behavior because it gives better insight into all topic metrics, which are subject to move between brokers at any time. This presentation https://www.youtube.com/watch?v=GcTzd2CLH7I and slide deck https://promcon.io/2017-munich/slides/staleness-in-prometheus-2-0.pdf document the feature in detail. This blog post was also helpful: https://www.robustperception.io/staleness-and-promql/. Additional motivation comes from mailing list threads like this one https://groups.google.com/g/prometheus-users/c/8OFAwp1OEcY. It says: > Note, however, that adding timestamps is an extremely niche use case. Most of the users who think the need it should actually not do it. > > The main usecases within that tiny niche are federation and mirroring the data from another monitoring system. The Prometheus Go client also indicates a similar motivation: https://pkg.go.dev/github.com/prometheus/client_golang/prometheus#NewMetricWithTimestamp. The OpenMetrics project also recommends against exporting timestamps: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#exposing-timestamps. As such, I think we are not a niche use case, and we should not add timestamps to our metrics. 1. Run any 2.x version of Prometheus (I used 2.31.0) along with the following scrape config: ```yaml - job_name: broker honor_timestamps: true scrape_interval: 30s scrape_timeout: 10s metrics_path: /metrics scheme: http follow_redirects: true static_configs: - targets: ["localhost:8080"] ``` 2. Start pulsar standalone on the same machine. I used a recently compiled version of master. 3. Publish messages to a topic. 4. Observe `pulsar_in_messages_total` metric for the topic in the prometheus UI (localhost:9090) 5. Stop the producer. 6. Unload the topic from the broker. 7. Optionally, `curl` the metrics endpoint to verify that the topic’s `pulsar_in_messages_total` metric is no longer reported. 8. Watch the metrics get reported in prometheus for 5 additional minutes. When you set `honor_timestamps: false`, the metric stops getting reported right after the topic is unloaded, which is the desired behavior. * Remove all timestamps from metrics * Fix affected tests and test files (some of those tests were in the proxy and the function worker, but no code was changed for those modules) This change is accompanied by updated tests. This is technically a breaking change to the metrics, though I would consider it a bug fix at this point. I will discuss it on the mailing list to ensure it gets proper visibility. Given how frequently Pulsar changes which metrics are exposed between each scrape, I think this is an important fix that should be cherry picked to older release branches. Technically, we can avoid cherry picking this change if we advise users to set `honor_timestamps: false`. However, I think it is better to just remove them. - [x] `doc-not-needed` (cherry picked from commit 0bbc4e1)
Configuration menu - View commit details
-
Copy full SHA for e59aac7 - Browse repository at this point
Copy the full SHA e59aac7View commit details -
Configuration menu - View commit details
-
Copy full SHA for eabc2cd - Browse repository at this point
Copy the full SHA eabc2cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b28d796 - Browse repository at this point
Copy the full SHA b28d796View commit details -
[fix][ml] Reset individualDeletedMessagesSerializedSize after acked a…
…ll messages. (apache#19428) (cherry picked from commit c91303d)
Configuration menu - View commit details
-
Copy full SHA for 0c7b250 - Browse repository at this point
Copy the full SHA 0c7b250View commit details -
[fix][client] Fix async completion in ConsumerImpl#processPossibleToD…
…LQ (apache#19392) (cherry picked from commit 39dd1cd)
Configuration menu - View commit details
-
Copy full SHA for 73f6693 - Browse repository at this point
Copy the full SHA 73f6693View commit details -
[fix][fn] Fix k8s merge runtime opts bug (apache#19481)
Fixes: apache#19478 ### Motivation See issue for additional context. Essentially, we are doing a shallow clone when we needed a deep clone. The consequence is leaked labels, annotations, and tolerations. ### Modifications * Add a `deepClone` method to the `BasicKubernetesManifestCustomizer.RuntimeOpts` method. Note that this method is not technically a deep clone for the k8s objects. However, based on the way we "merge" these objects, it is sufficient to copy references to the objects. ### Verifying this change Added a test that fails before the change and passes afterwards. ### Documentation - [x] `doc-not-needed` This is an internal bug fix. No docs needed. ### Matching PR in forked repository PR in forked repository: michaeljmarshall#27 (cherry picked from commit 0205148)
Configuration menu - View commit details
-
Copy full SHA for bb5fd03 - Browse repository at this point
Copy the full SHA bb5fd03View commit details
Commits on Feb 14, 2023
-
[fix][broker] Make ServerCnx#originalAuthData volatile (apache#19507)
Fixes apache#19431 `authenticationData` is already `volatile`. We use `originalAuthData` when set, so we should match the style. In apache#19431, I proposed that we find a way to not use `volatile`. I still think this might be a "better" approach, but it will be a larger change, and since we already use `volatile` for `authenticationData`, I think this is the right change for now. It's possible that this is not a bug, given that the `originalAuthData` does not change frequently. However, we always want to use up to date values for authorization. * Add `volatile` keyword to `ServerCnx#originalAuthData`. This change is a trivial rework / code cleanup without any test coverage. - [x] `doc-not-needed` PR in forked repository: skipping test in fork. (cherry picked from commit c4c1744) (cherry picked from commit e1d9941)
Configuration menu - View commit details
-
Copy full SHA for 0d69ead - Browse repository at this point
Copy the full SHA 0d69eadView commit details -
[cleanup][broker] Validate originalPrincipal earlier in ServerCnx (ap…
…ache#19270) (cherry picked from commit fd3ce8b) (cherry picked from commit 2847dd1)
Configuration menu - View commit details
-
Copy full SHA for 01bd986 - Browse repository at this point
Copy the full SHA 01bd986View commit details
Commits on Feb 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fb5477b - Browse repository at this point
Copy the full SHA fb5477bView commit details -
[fix][broker] ServerCnx broken after recent cherry-picks (apache#19521)
I broke all release branches when I cherry picked 2847dd1 to them. This change takes some of the underlying logic from apache#19409, without taking the async logic. * Make changes to `ServerCnx` to make tests pass Tests are currently failing, so passing tests will show that this solution is correct. - [x] `doc-not-needed` (cherry picked from commit 8246da2) (cherry picked from commit 15e4198)
Configuration menu - View commit details
-
Copy full SHA for 6132b46 - Browse repository at this point
Copy the full SHA 6132b46View commit details
Commits on Feb 16, 2023
-
[fix][broker] Fix loadbalance score caculation problem (apache#19420)
(cherry picked from commit 456d112)
Configuration menu - View commit details
-
Copy full SHA for b4b664c - Browse repository at this point
Copy the full SHA b4b664cView commit details -
[fix] [ml] messagesConsumedCounter of NonDurableCursor was initialize…
…d incorrectly (apache#19355) (cherry picked from commit fc9e8bf)
Configuration menu - View commit details
-
Copy full SHA for 019c920 - Browse repository at this point
Copy the full SHA 019c920View commit details -
[fix][broker][branch-2.10] Replace sync method call in async call cha…
…in to prevent ZK event thread deadlock (apache#19539)
Configuration menu - View commit details
-
Copy full SHA for b970f02 - Browse repository at this point
Copy the full SHA b970f02View commit details
Commits on Feb 17, 2023
-
[improve][broker] Require authRole is proxyRole to set originalPrinci…
…pal (apache#19455) Co-authored-by: Lari Hotari <lhotari@apache.org> (cherry picked from commit aa63a55)
Configuration menu - View commit details
-
Copy full SHA for 6a599af - Browse repository at this point
Copy the full SHA 6a599afView commit details -
[improve][broker] ServerCnx: go to Failed state when auth fails (apac…
…he#19312) PIP: apache#12105 When authentication fails in the `ServerCnx`, the state is left in `Start` if the primary `authData` fails authentication and in `Connecting` or `Connected` if the `originalAuthData` authentication fails. To prevent any kind of unexpected behavior, we should go to `Failed` state. Note that the tests verify the current behavior where a failed `originalAuthData` results first in a `Connected` command from the broker and then an `Error` command. I documented that I think this is sub optimal here apache#19311. * Update `ServerCnx` state to `Failed` when there is an authentication exception during `handleConnect` and during `handleAuthResponse`. * Update `handleAuthResponse` reply to `"Unable to authenticate"` instead of the `AuthenticationState` exception. A new test is added. The added test covers the change made in apache#19295 where we updated `ServerCnx` so that we call `AuthState#authenticate` instead of relying on the implementation detail that the initialization calls `authenticate`. That PR should have added a test. This is not a breaking change. - [x] `doc-not-needed` PR in forked repository: michaeljmarshall#18 (cherry picked from commit 8049690) (cherry picked from commit 3ef3bf1)
Configuration menu - View commit details
-
Copy full SHA for 467cd32 - Browse repository at this point
Copy the full SHA 467cd32View commit details -
[feat][broker] Cherry-pick tests from (apache#19409)
(cherry picked from commit 2225361)
Configuration menu - View commit details
-
Copy full SHA for 557b72d - Browse repository at this point
Copy the full SHA 557b72dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0231ad3 - Browse repository at this point
Copy the full SHA 0231ad3View commit details -
[fix][broker] Call originalAuthState.authenticate in ServerCnx
This change was introduced by apache#19295. That PR had more changes than are worth cherry-picking, though, so this commit only has the additional call to authenticate the original auth data. As a result, this commit is slightly less efficient because in some implementations, the authdata will be validated twice. (cherry picked from commit f9727ca)
Configuration menu - View commit details
-
Copy full SHA for 1935f07 - Browse repository at this point
Copy the full SHA 1935f07View commit details -
[fix][broker] Correct MockAlwaysExpiredAuthenticationState test impl
Configuration menu - View commit details
-
Copy full SHA for 09f00ee - Browse repository at this point
Copy the full SHA 09f00eeView commit details
Commits on Feb 21, 2023
-
[branch-2.10][fix][proxy] Fix using wrong client version in pulsar pr…
…oxy (apache#19576) ### Motivation Cherry pick apache#19540 to branch 2.11
Configuration menu - View commit details
-
Copy full SHA for cac4915 - Browse repository at this point
Copy the full SHA cac4915View commit details
Commits on Feb 22, 2023
-
[fix][test] ProxyWithAuthorizationTest remove SAN from test certs (ap…
…ache#19594) (cherry picked from commit f292bad) (cherry picked from commit 6576231)
Configuration menu - View commit details
-
Copy full SHA for 14152fc - Browse repository at this point
Copy the full SHA 14152fcView commit details -
[fix][broker] Make authentication refresh threadsafe (apache#19506)
Configuration menu - View commit details
-
Copy full SHA for 26e1053 - Browse repository at this point
Copy the full SHA 26e1053View commit details -
[fix][broker] Allow proxy to pass same role for authRole and original…
…Role (apache#19557) I broke the Pulsar Proxy with apache#19455 because that PR requires that when `X-Original-Principal` is supplied, the auth role must be a proxy role. This is not always the case for proxied admin requests. This PR seeks to fix that incorrect assumption by changing the way verification is done for the roles. Specifically, when the two roles are the same and they are not a proxy role, we will consider it a valid combination. Note that there is no inefficiency in this solution because When the `authenticatedPrincipal` is not a proxy role, that is the only role that is authenticated. Note also that we do not let the binary protocol authenticate this way, and that is consistent with the way the pulsar proxy forwards authentication data. Currently, we do the following when authentication is enabled in the proxy: 1. Authenticate the client's http request and put the resulting role in the `X-Original-Principal` header for the call to the broker. https://github.com/apache/pulsar/blob/38555851359f9cfc172650c387a58c5a03809e97/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/AdminProxyHandler.java#L370-L373 2. Copy the `Authorization` header into the broker's http request: https://github.com/apache/pulsar/blob/38555851359f9cfc172650c387a58c5a03809e97/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/AdminProxyHandler.java#L232-L236 3. Configure the proxy's http client to use client TLS authentication (when configured): https://github.com/apache/pulsar/blob/38555851359f9cfc172650c387a58c5a03809e97/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/AdminProxyHandler.java#L269-L277 The problem with apache#19455 is that it assumes the proxy supplies its own authentication data. However, that only happens when using TLS authentication. Otherwise, the proxy forwards the client's authentication data in the `Authorization` header. As such, calls will fail because the `X-Original-Principal` header supplied without using a proxy role. * Consider the `authenticatedPrincipal` and the `originalPrincipal` a valid pair when they are equal and are not a `proxyRole` for http requests. I initially proposed that we only add the `X-Original-Principal` when we are using the proxy's authentication (see the first commit). I decided this solution is not ideal because it doesn't solve the problem, it doesn't make the brokers backwards compatible, and there isn't actually any inefficiency in passing the role as a header. When cherry-picking apache#19455 to branch-2.9, I discovered that `PackagesOpsWithAuthTest#testPackagesOps` was consistently failing because of the way the proxy supplies authentication data when proxying http requests. That test was removed by apache#12771, which explains why I didn't catch the error sooner. This PR includes a test that fails without this change. Note that the primary issue must be that we didn't have any tests doing authentication forwarding through the proxy. Now we will have both relevant tests where the proxy is and is not authenticating. This is not a breaking change. - [x] `doc-required` PR in forked repository: michaeljmarshall#31 (cherry picked from commit d4be954) (cherry picked from commit 5f5551d)
Configuration menu - View commit details
-
Copy full SHA for 4da2487 - Browse repository at this point
Copy the full SHA 4da2487View commit details
Commits on Feb 23, 2023
-
[fix][client] Broker address resolution wrong if connect through a mu…
…lti-dns names proxy (apache#19597) (cherry picked from commit e286339) (cherry picked from commit 14b070b)
Configuration menu - View commit details
-
Copy full SHA for 27f0449 - Browse repository at this point
Copy the full SHA 27f0449View commit details -
[fix][broker] Copy command fields and fix potential thread-safety in …
…ServerCnx (apache#19517) (cherry picked from commit 0bb0f6b)
Configuration menu - View commit details
-
Copy full SHA for 36582d8 - Browse repository at this point
Copy the full SHA 36582d8View commit details
Commits on Feb 24, 2023
-
[fix][broker][branch-2.10] Fix geo-replication admin (apache#19608)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 90980da - Browse repository at this point
Copy the full SHA 90980daView commit details
Commits on Feb 25, 2023
-
[fix][admin] Fix
validatePersistencePolicies
that Namespace/Topic p……ersistent policies cannot set to < 0 (apache#18999) (cherry picked from commit 4cae20c)
Configuration menu - View commit details
-
Copy full SHA for 67d2c29 - Browse repository at this point
Copy the full SHA 67d2c29View commit details -
[fix][broker] PulsarRegistrationClient - implement getAllBookies and …
…follow BookieServiceInfo updates (apache#18133) * [fix] PulsarRegistrationClient - implement getAllBookies and follow BookieServiceInfo updates * remove debug (cherry picked from commit 0c326c0)
Configuration menu - View commit details
-
Copy full SHA for a49b8e9 - Browse repository at this point
Copy the full SHA a49b8e9View commit details -
[Improve][Broker]Reduce GetReplicatedSubscriptionStatus local REST ca…
…ll (apache#16946) (cherry picked from commit 046068a)
Configuration menu - View commit details
-
Copy full SHA for 830ae26 - Browse repository at this point
Copy the full SHA 830ae26View commit details -
[fix] [broker] Incorrect service name selection logic (apache#19505)
When calling the method `PulsarWebResource.getRedirectionUrl`, reuse the same `PulsarServiceNameResolver` instance. (cherry picked from commit f9af424)
Configuration menu - View commit details
-
Copy full SHA for d0cff5f - Browse repository at this point
Copy the full SHA d0cff5fView commit details -
[improve][broker] Use shrink map for trackerCache (apache#19534)
Signed-off-by: xiaolongran <xiaolongran@tencent.com> (cherry picked from commit c0f89dc)
Configuration menu - View commit details
-
Copy full SHA for 0f455e6 - Browse repository at this point
Copy the full SHA 0f455e6View commit details -
[fix][client] Fix authentication not update after changing the servic…
…eUrl (apache#19510) (cherry picked from commit 0f025f3)
Configuration menu - View commit details
-
Copy full SHA for 132abe9 - Browse repository at this point
Copy the full SHA 132abe9View commit details -
[feature][txn] Fix individual ack batch message with transaction abor…
…t redevlier duplicate messages (apache#14327) If individual ack batch message with transaction and abort this transaction, we will redeliver this message. but this batch message some bit sit are acked by another transaction and re consume this bit sit will produce `TransactionConflictException`, we don't need to redeliver this bit sit witch is acked by another transaction. if batch have batch size 5 1. txn1 ack 0, 1 the ackSet is 00111 2. txn2 ack 2 3 4 the ack Set is 11000 3. abort txn2 redeliver this position is 00111 4. but now we don't filter txn1 ackSet so redeliver this position bitSet is 111111 When filter the message we should filter the bit sit witch is real ack or in pendingAck state add the test (cherry picked from commit e0c0d5e)
Configuration menu - View commit details
-
Copy full SHA for 90b4f86 - Browse repository at this point
Copy the full SHA 90b4f86View commit details -
[improve][broker] Add UncaughtExceptionHandler for every thread pool (a…
…pache#18211) (cherry picked from commit 5b7c5c6)
Configuration menu - View commit details
-
Copy full SHA for cf06952 - Browse repository at this point
Copy the full SHA cf06952View commit details -
[fix][client] Set authentication when using loadConf in client and ad…
…min client (apache#18358) (cherry picked from commit 0f72a82)
Configuration menu - View commit details
-
Copy full SHA for 9160ee6 - Browse repository at this point
Copy the full SHA 9160ee6View commit details -
[cleanup][broker] Simplify extract entryMetadata code in filterEntrie…
…sForConsumer (apache#18729) origin extract entry metadata logic is based on `Optional.map.orElseGet` which can be simplified by if condition and also has better performance on hot code path. 1. use if null check replace Optional code. 2. remove duplicate hasChunk check logic in `PersistentDispatcherMultipleConsumers.trySendMessagesToConsumers` (cherry picked from commit a1e3b80)
Configuration menu - View commit details
-
Copy full SHA for e4a1e67 - Browse repository at this point
Copy the full SHA e4a1e67View commit details -
[improve][broker] Follow up apache#19230 to tighten the validation sc…
…ope (apache#19234) This PR is following up apache#19230 As @yuruguo mentioned apache#19230 (comment), we can tighten the validation scope. I've checked the logic and found we have no way to create the partition topic with the `-partition-{index}` template. So we can righten the validation scope. I will keep working on the partition topic section and try to clarify the concept and logic. Plus, ensuring compatibility. - tighten the validation scope (cherry picked from commit 246c270)
Configuration menu - View commit details
-
Copy full SHA for 2e3e9de - Browse repository at this point
Copy the full SHA 2e3e9deView commit details
Commits on Feb 26, 2023
-
[branch-2.10][test]Run and fix tests (apache#19636)
Co-authored-by: Cong Zhao <zhaocong@apache.org> Co-authored-by: fengyubiao <9947090@qq.com> Co-authored-by: AloysZhang <lofterzhang@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0eaa671 - Browse repository at this point
Copy the full SHA 0eaa671View commit details -
[improve] Upgrade wildfly-eytron (used by debezium) to fix CVE-2022-3143
(apache#19333) (cherry picked from commit 71dafe8)
Configuration menu - View commit details
-
Copy full SHA for 2c591ae - Browse repository at this point
Copy the full SHA 2c591aeView commit details -
[improve][misc] Upgrade Netty to 4.1.87.Final (apache#19417)
(cherry picked from commit 27d392d)
Configuration menu - View commit details
-
Copy full SHA for aa7beba - Browse repository at this point
Copy the full SHA aa7bebaView commit details -
[improve] Upgrade to zk 3.8.1 (apache#19425)
(cherry picked from commit 6bf4966)
Configuration menu - View commit details
-
Copy full SHA for e32f9ad - Browse repository at this point
Copy the full SHA e32f9adView commit details -
[improve] Upgrade lombok to 1.8.26 (apache#19426)
(cherry picked from commit ca177b3)
Configuration menu - View commit details
-
Copy full SHA for a0a4d93 - Browse repository at this point
Copy the full SHA a0a4d93View commit details
Commits on Feb 27, 2023
-
Revert "[improve] Upgrade to zk 3.8.1 (apache#19425)"
This reverts commit e32f9ad.
Configuration menu - View commit details
-
Copy full SHA for 8fde241 - Browse repository at this point
Copy the full SHA 8fde241View commit details -
Configuration menu - View commit details
-
Copy full SHA for 080dfc8 - Browse repository at this point
Copy the full SHA 080dfc8View commit details -
[fix] [ml] topic load fail by ledger lost (apache#19444)
Makes only ledgers removed from the meta of ledger info can be deleted from the BK. (cherry picked from commit 3314d70)
Configuration menu - View commit details
-
Copy full SHA for 8945b83 - Browse repository at this point
Copy the full SHA 8945b83View commit details -
[improve] [admin] Make the default value of param --get-subscription-…
…backlog-size of admin API topics stats true (apache#19302) (cherry picked from commit e417fe7)
Configuration menu - View commit details
-
Copy full SHA for a863e7d - Browse repository at this point
Copy the full SHA a863e7dView commit details -
Revert "[improve] [admin] Make the default value of param --get-subsc…
…ription-backlog-size of admin API topics stats true (apache#19302)" This reverts commit a863e7d.
Configuration menu - View commit details
-
Copy full SHA for 2077233 - Browse repository at this point
Copy the full SHA 2077233View commit details
Commits on Mar 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 96e3f39 - Browse repository at this point
Copy the full SHA 96e3f39View commit details -
[branch-2.10][broker] Support zookeeper read-only config. (apache#19156…
…) (apache#19637) Co-authored-by: Yan Zhao <horizonzy@apache.org>
Configuration menu - View commit details
-
Copy full SHA for a8f3c81 - Browse repository at this point
Copy the full SHA a8f3c81View commit details -
[improve] Simplify enabling Broker, WS Proxy hostname verification (a…
…pache#19674) When we merged apache#15818 in order to make the broker's client configurable, we did not add an explicit config for hostname verification. This PR adds that config to the broker and the websocket proxy. I chose the name `tlsHostnameVerificationEnabled` because that is what is already used in the proxy. It diverges from the function worker's config of `tlsEnableHostnameVerification`. Before this PR, you would have enabled hostname verification by configuring `brokerClient_tlsHostnameVerificationEnable=true` in the broker and WS proxy configs. (Note that the variable name is slightly different because the `ClientConfiguration` does not have a `d` at the end of its name. The remaining follow up work will be to update the `ClusterData` objects to configure hostname verification there to make it easier to configure hostname verification for remote clusters. * Add `tlsHostnameVerificationEnabled` to the `broker.conf` and the `proxy.conf` * Update all of the relevant locations that were previously only relying on `brokerClient_tlsHostnameVerificationEnable` I added a single test to ensure that the `WebSocketProxyConfiguration` properly converts to the `ServiceConfiguration` object. Otherwise, I verified that anywhere we are using `"brokerClient_"`, this PR also adds the right configuration. This PR introduces a "new" configuration key, but not a new concept. All underlying behaviors are unchanged. - [x] `doc-not-needed` Docs are automatically updated by these changes. (cherry picked from commit 6621fd3) (cherry picked from commit b8083b0)
Configuration menu - View commit details
-
Copy full SHA for a3a242c - Browse repository at this point
Copy the full SHA a3a242cView commit details
Commits on Mar 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d1aebd3 - Browse repository at this point
Copy the full SHA d1aebd3View commit details
Commits on Mar 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d8763d4 - Browse repository at this point
Copy the full SHA d8763d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5c7de2 - Browse repository at this point
Copy the full SHA f5c7de2View commit details
Commits on Mar 8, 2023
-
[fix] [client] fix memory leak if enabled pooled messages (apache#19585)
(cherry picked from commit e13865c)
Configuration menu - View commit details
-
Copy full SHA for 92f68e3 - Browse repository at this point
Copy the full SHA 92f68e3View commit details
Commits on Mar 9, 2023
-
[fix] [broker] Topic close failure leaves subscription in a permanent…
… fence state (apache#19692) Motivation : After a Topic close failure or a delete failure, the fence state will be reset to get the topic back to work,but it will not reset the fence state of the subscription, which will result in the consumer never being able to connect to the broker. Modifications: Reset the fence state of subscriptions if the operation of topic close is failed. (cherry picked from commit cdeef00)
Configuration menu - View commit details
-
Copy full SHA for 751eeea - Browse repository at this point
Copy the full SHA 751eeeaView commit details
Commits on Mar 10, 2023
-
[cherry-pick][branch-2.10] Fix deadlock causes session notification n…
…ot to work (apache#19754) (apache#19768) Co-authored-by: Qiang Zhao <mattisonchao@apache.org> Master apache#19754 ### Motivation This is a namespace bundle double-owners problem. We found it in the memory dumps. The memory dumps show that the notification thread has been blocked for a long time by the leader election deadlock, And many notifications are blocked in the executor queue. This causes we can't to revalidate the locks, and they are still thinking them working well. For private reasons, I can't share the namespace bundle snapshot, but the blocked thread easily explains it. <img width="1061" alt="image" src="https://user-images.githubusercontent.com/74767115/223670419-c4319f44-f1e1-4361-8c79-04c7f0dabe3c.png"> ^^ blocked thread <img width="949" alt="image" src="https://user-images.githubusercontent.com/74767115/223672000-fb4ce22c-6a45-4cb6-9d23-c36e3afbc93a.png"> ^^ executor queue ### Modifications - Avoid putting the new task to single thread executor causes deadlock. (cherry picked from commit cbd799f)
Configuration menu - View commit details
-
Copy full SHA for 36794d9 - Browse repository at this point
Copy the full SHA 36794d9View commit details
Commits on Mar 11, 2023
-
[fix][client][branch-2.10]Return local thread for the
newThread
(ap……ache#19779) ### Motivation The original fix is apache#18268. But after the fix is cherry-picked, the fix is overridden when resolving conflicts for cherry-pick apache#18211. ### Modifications Return the local thread variables in the `newThread`.
Configuration menu - View commit details
-
Copy full SHA for 240c22c - Browse repository at this point
Copy the full SHA 240c22cView commit details
Commits on Mar 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4449814 - Browse repository at this point
Copy the full SHA 4449814View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f47bd1 - Browse repository at this point
Copy the full SHA 8f47bd1View commit details
Commits on Mar 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7ea5f43 - Browse repository at this point
Copy the full SHA 7ea5f43View commit details
Commits on Mar 18, 2023
-
[test] Fix ServerCnxTest failing after merge of apache#19830
The ServerCnxTest class is run as part of the flaky tests, so apache#19830 was merged without noticing that the changes didn't actually pass tests. This commit fixes the test by changing the assertions to ensure that "correct" combinations of roles and original principals are verified. (cherry picked from commit 13f4a0d)
Configuration menu - View commit details
-
Copy full SHA for 45f303c - Browse repository at this point
Copy the full SHA 45f303cView commit details
Commits on Mar 21, 2023
-
[improve][admin][branch-2.10] Unset namespace policy to improve delet…
…ing namespace (apache#17033) (apache#19865) Co-authored-by: Jiwei Guo <technoboy@apache.org>
Configuration menu - View commit details
-
Copy full SHA for 70b8617 - Browse repository at this point
Copy the full SHA 70b8617View commit details
Commits on Mar 22, 2023
-
[fix] [admin] Make response code to 400 instead of 500 when delete to…
…pic fails due to enabled geo-replication (apache#19879) Motivation: As expected, If geo-replication is enabled, a topic cannot be deleted. However deleting that topic returns a 500, and no further info. Modifications: Make response code to 400 instead of 500 when delete topic fails due to enabled geo-replication (cherry picked from commit a903733)
Configuration menu - View commit details
-
Copy full SHA for db6a59b - Browse repository at this point
Copy the full SHA db6a59bView commit details
Commits on Mar 25, 2023
-
[fix] [broker] Counter of pending send messages in Replicator incorre…
…ct if schema future not complete (apache#19242) (cherry picked from commit 3ba6fa8)
Configuration menu - View commit details
-
Copy full SHA for 348865c - Browse repository at this point
Copy the full SHA 348865cView commit details
Commits on Mar 27, 2023
-
[fix] [proxy] Used in proxyConf file when configuration is missing in…
… the command line (apache#15938) (cherry picked from commit 5455f4d)
Configuration menu - View commit details
-
Copy full SHA for 26fd716 - Browse repository at this point
Copy the full SHA 26fd716View commit details
Commits on Mar 29, 2023
-
[fix] [admin] fix incorrect state replication.connected on API partit…
…ioned-topic stat (apache#19942) ### Motivation Pulsar will merge the variable `PartitionedTopicStatsImpl.replication[x].connected` by the way below when we call `pulsar-admin topics partitioned-stats` ``` java this.connected = this.connected & other.connected ``` But the variable `connected` of `PartitionedTopicStatsImpl.replication` is initialized `false`, so the expression `this.connected & other.connected` will always be `false`. Then we will always get the value `false` if we call `pulsar-admin topics partitioned-stats`. ### Modifications make the variable `` of `PartitionedTopicStatsImpl` is initialized `true` (cherry picked from commit 9fc0b5e)
Configuration menu - View commit details
-
Copy full SHA for 4f15792 - Browse repository at this point
Copy the full SHA 4f15792View commit details
Commits on Mar 30, 2023
-
[fix][sec] Fix transitive critical CVEs in file-system tiered storage (…
…apache#19957) (cherry picked from commit 07acdbc)
Configuration menu - View commit details
-
Copy full SHA for e078c6d - Browse repository at this point
Copy the full SHA e078c6dView commit details -
[Authenticate] fix Invalid signature error when use Kerberos Authenti…
…cation (apache#15121) * fix SaslRoleTokenSigner Invalid signature when use Kerberos Authentication * fix checkstyle violation * add saslJaasServerRoleTokenSignerSecret configuration fields in broker.conf * add secret in proxy.conf * supply the secret as a file * set default value * fix test error * fix test error * saslJaasServerRoleTokenSignerSecretPath must be set * add secret configuration into the WorkerConfig and the conf/functions_worker.yml * fix checkstyle error * chang URL.createURL to URI.create Co-authored-by: liudezhi <liudezhi2098@163.com> When use Kerberos authentication , using Pulsar Admin to query topic state, will appear HTTP 401 Unauthorized, becasue request redirect url will use current SaslRoleToken ,but redirect broker not recognized the token, per broker secret is not same. ``` WARN org.apache.pulsar.broker.web.AuthenticationFilter - [10.3.0.4] Failed to authenticate HTTP request: Invalid signature ``` per broker secret is Random ``` protected String computeSignature(String str) { try { MessageDigest md = MessageDigest.getInstance("SHA-512"); md.update(str.getBytes()); md.update(secret); byte[] digest = md.digest(); return new Base64(0).encodeToString(digest); } catch (NoSuchAlgorithmException ex) { throw new RuntimeException("It should not happen, " + ex.getMessage(), ex); } } ``` secret can configuration `this.signer = new SaslRoleTokenSigner(config.getSaslJaasServerRoleTokenSignerSecret().getBytes());` *If `yes` was chosen, please highlight the changes* - Dependencies (does it add or upgrade a dependency): (yes / no) - The public API: (no) - The schema: (no ) - The default values of configurations: (yes) - The wire protocol: (no) - The rest endpoints: (no) - The admin cli options: ( no) - Anything that affects deployment: (no) Need to update docs? - [x] `doc` (cherry picked from commit f0b7efa)
Configuration menu - View commit details
-
Copy full SHA for 72b9552 - Browse repository at this point
Copy the full SHA 72b9552View commit details
Commits on Apr 1, 2023
-
[fix][ci][branch-2.10] Fix the release tools (apache#19711)
## Modification 1. Upgrade python to python3 2. Remove the cpp-related command
Configuration menu - View commit details
-
Copy full SHA for c3282bc - Browse repository at this point
Copy the full SHA c3282bcView commit details
Commits on Apr 3, 2023
-
[branch-2.10][fix][broker] Fix index generator is not rollback after …
…entries are failed added (apache#19980) Co-authored-by: gavingaozhangmin <gavingaozhangmin@didiglobal.com>
Configuration menu - View commit details
-
Copy full SHA for 9381b85 - Browse repository at this point
Copy the full SHA 9381b85View commit details -
[Build] Make the test JVM exit if OOME occurs (apache#14509)
- OOMEs can make the build to take very long to complete. It's better to fail fast in tests when OOMEs occur. (cherry picked from commit 89a36f9)
Configuration menu - View commit details
-
Copy full SHA for a19879b - Browse repository at this point
Copy the full SHA a19879bView commit details -
[branch-2.10] [fix] [auth] fix not forward compatible config saslJaas…
…ServerRoleTokenSignerSecretPath after cherry-pick apache#15121 (apache#19971) After cherry-picked apache#15121 into branch-2.10 to solve the issue sasl authentication failure, we will do a follow-up process to keep the new configuration `saslJaasServerRoleTokenSignerSecretPath` forward compatible: make this config optinal.
Configuration menu - View commit details
-
Copy full SHA for cef4f71 - Browse repository at this point
Copy the full SHA cef4f71View commit details
Commits on Apr 4, 2023
-
[fix][broker] Ignore and remove the replicator cursor when the remote…
… cluster is absent (apache#19972) (cherry picked from commit d1fc732)
Configuration menu - View commit details
-
Copy full SHA for b93176c - Browse repository at this point
Copy the full SHA b93176cView commit details
Commits on Apr 6, 2023
-
[fix][broker] Only validate superuser access if authz enabled (apache…
…#19989) In apache#19455, I added a requirement that only the proxy role could supply an original principal. That check is only supposed to apply when the broker has authorization enabled. However, in one case, that was not the case. This PR does a check and returns early when authorization is not enabled in the broker. See apache#19830 (comment) for additional motivation. * Update the `PulsarWebResource#validateSuperUserAccessAsync` to only validate when authentication and authorization are enabled in the configuration. This is a trivial change. It'd be good to add tests, but I didn't include them here because this is a somewhat urgent fix. There was one test that broke because of this change, so there is at least some existing coverage. - [x] `doc-not-needed` PR in forked repository: michaeljmarshall#39 (cherry picked from commit 1a6c28d)
Configuration menu - View commit details
-
Copy full SHA for 36f0db5 - Browse repository at this point
Copy the full SHA 36f0db5View commit details
Commits on Apr 7, 2023
-
[improve][txn] Cleanup how superusers abort txns (apache#19976)
This PR builds on apache#19467. When we modify/abort transactions, we need to make sure that authorization is checked for both the proxy and the client. * Add a second authorization check when `originalPrincipal` is set in the `ServerCnx`. * Fix a bug where we were not doing a deep copy of the `SubscriptionsList` object. (Tests caught this bug!) Added a new test to cover some of the changes. This is an internal change. - [x] `doc-not-needed` PR in forked repository: michaeljmarshall#38 (cherry picked from commit f76beda) (cherry picked from commit 5a180f78d7636537198a758e1c9416e58d80bf42)
Configuration menu - View commit details
-
Copy full SHA for 716db37 - Browse repository at this point
Copy the full SHA 716db37View commit details
Commits on Apr 8, 2023
-
[refactor][fn] Use AuthorizationServer more in Function Worker API (a…
…pache#19975) The current function worker interfaces introduced by apache#8560 are hard to extend. It is better to pass an object that we can add fields to as needed. * Introduce a new `Authentication` class to wrap all of the relevant authentication "data". This class is somewhat unfortunate in that we already have many classes that hold authentication information. However, my goal with this class is to wrap all of the relevant auth info. This class is only currently used in the Function Worker API, but I plan to add it to the rest of the Admin HTTP endpoints. * Deprecate all of the methods that are no longer needed. Add a default implementation to call the new methods that supersede those methods. * Add `proxyRoles` setting to function worker. There are tests to cover the changes. This PR changes several interfaces in completely backwards compatible ways. It's possible we'll want to improve the abstraction for the `Authentication` class by making it an interface. - [x] `doc` This change has Javadoc updates to document the changes. PR in forked repository: michaeljmarshall#37 (cherry picked from commit 55acbe6) (cherry picked from commit 54c97ad)
Configuration menu - View commit details
-
Copy full SHA for cf40926 - Browse repository at this point
Copy the full SHA cf40926View commit details
Commits on Apr 10, 2023
-
[refactor][broker] Use AuthenticationParameters for rest producer (ap…
…ache#20046) In apache#19975, we introduced a wrapper for all authentication parameters. This PR adds that wrapper to the Rest Producer. * Use `AuthenticationParameters` to simplify parameter management in Rest Producer. * Add method to the `AuthorizationService` that takes the `AuthenticationParameters`. * Update annotations on Rest Producer to indicate that a 401 is an expected response. This change is covered by the `TopicsAuthTest`. - [x] `doc-not-needed` This is an internal change that does not need to be documented. PR in forked repository: skipping PR since the relevant tests pass locally (cherry picked from commit 7990948) (cherry picked from commit 02b27e8)
Configuration menu - View commit details
-
Copy full SHA for 4b9befa - Browse repository at this point
Copy the full SHA 4b9befaView commit details
Commits on Apr 11, 2023
-
[fix] [cli] Fix Broker crashed by too much memory usage of pulsar too…
…ls (apache#20031) ### Motivation After apache#15868, we allow `PULSAR_MEM` & `PULSAR_GC` to be overridden in `pulsar_tool_env.sh`. Many users set `-Xms` to `2G` or larger in `PULSAR_MEM`, this will make the tools(such as `pulsar-admin`) cost a lot of memory, and if users execute `pulsar-admin` or another tool on the machine where the Broker is deployed, the current device will not have enough memory to allocate, resulting in a broker crash. ### Modifications When `PULSAR_MEM` is overridden in `pulsar_tool_env.sh`, delete parameter `-Xms` (cherry picked from commit 4f503fd)
Configuration menu - View commit details
-
Copy full SHA for 1fe05d5 - Browse repository at this point
Copy the full SHA 1fe05d5View commit details
Commits on Apr 18, 2023
-
[improve] [broker] Fix broker restart logic (apache#20113)
(cherry picked from commit 092819b)
Configuration menu - View commit details
-
Copy full SHA for 9e47fa6 - Browse repository at this point
Copy the full SHA 9e47fa6View commit details -
Configuration menu - View commit details
-
Copy full SHA for bff920a - Browse repository at this point
Copy the full SHA bff920aView commit details
Commits on Apr 21, 2023
-
[fix] Use scheduled executor in BinaryProtoLookupService (apache#20043)
Motivation: PulsarClient using ExecutorService as ScheduledExecutorService Modifications: Use exactly ScheduledExecutorService
Configuration menu - View commit details
-
Copy full SHA for bdd70e5 - Browse repository at this point
Copy the full SHA bdd70e5View commit details
Commits on Apr 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d86e168 - Browse repository at this point
Copy the full SHA d86e168View commit details
Commits on Apr 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f8dc8c1 - Browse repository at this point
Copy the full SHA f8dc8c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c99903 - Browse repository at this point
Copy the full SHA 6c99903View commit details
Commits on Apr 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 73462d6 - Browse repository at this point
Copy the full SHA 73462d6View commit details
Commits on Apr 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d3766c8 - Browse repository at this point
Copy the full SHA d3766c8View commit details
Commits on Apr 26, 2023
-
Revert "[branch-2.10][improve][build] Upgrade jackson version to 2.15…
….0 for CVE-2022-1471 (apache#20181)" This reverts commit d3766c8.
Configuration menu - View commit details
-
Copy full SHA for b062d8c - Browse repository at this point
Copy the full SHA b062d8cView commit details
Commits on May 6, 2023
-
[fix][broker] Fix Return value of getPartitionedStats doesn't contain…
… subscription type (apache#20210)
Configuration menu - View commit details
-
Copy full SHA for ec2b084 - Browse repository at this point
Copy the full SHA ec2b084View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4392da6 - Browse repository at this point
Copy the full SHA 4392da6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bf6b33 - Browse repository at this point
Copy the full SHA 6bf6b33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f096da - Browse repository at this point
Copy the full SHA 9f096daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a9f005 - Browse repository at this point
Copy the full SHA 9a9f005View commit details -
[fix] [broker] Fast fix infinite HTTP call getSubscriptions caused by…
… wrong topicName (apache#20131) (cherry picked from commit 0c50866)
Configuration menu - View commit details
-
Copy full SHA for eff0a29 - Browse repository at this point
Copy the full SHA eff0a29View commit details -
[fix] [ml] make the result of delete cursor is success if cursor is d…
…eleted (apache#19825) When deleting the zk node of the cursor, if the exception `MetadataStoreException.NotFoundException` occurs, the deletion is considered successful. (cherry picked from commit f294be3)
Configuration menu - View commit details
-
Copy full SHA for eaba2f9 - Browse repository at this point
Copy the full SHA eaba2f9View commit details -
Revert "[fix][broker] Fix NPE when update topic policy. (apache#19875)"
This reverts commit 6bf6b33.
Configuration menu - View commit details
-
Copy full SHA for 85f4d0e - Browse repository at this point
Copy the full SHA 85f4d0eView commit details -
[fix] [broker] delete topic failed if disabled system topic (apache#1…
…9735) Motivation: After PR apache#18823, The cmd delete topic will fail if disabled the feature system topic. Modifications: do not delete the system policy if disabled the feature system topic (cherry picked from commit 401fb05)
Configuration menu - View commit details
-
Copy full SHA for 22a0c6d - Browse repository at this point
Copy the full SHA 22a0c6dView commit details -
[fix][client] Release the orphan producers after the primary consumer…
… is closed (apache#19858) Motivation: The producers ["retryLetterProducer", "deadLetterProducer"] will be auto-created by consumers if enabled `DLQ`, but these producers will not close after consumers are closed. Modifications: Auto close "retryLetterProducer" and "deadLetterProducer" after the primary consumer is closed (cherry picked from commit 94ae340)
Configuration menu - View commit details
-
Copy full SHA for a0ff522 - Browse repository at this point
Copy the full SHA a0ff522View commit details -
Configuration menu - View commit details
-
Copy full SHA for 793de9a - Browse repository at this point
Copy the full SHA 793de9aView commit details -
[fix] [broker] Producer created by replicator is not displayed in top…
…ic stats (apache#20229) ### Motivation A producer of the remote cluster is automatically created when replication is turned on. But we can't see anything about it from the response of `(remote cluster) pulsar-admin topic stats` ### Modifications Make this producer displayed in the topic stats (cherry picked from commit 9f7a539)
Configuration menu - View commit details
-
Copy full SHA for bf117bb - Browse repository at this point
Copy the full SHA bf117bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd7c9ff - Browse repository at this point
Copy the full SHA bd7c9ffView commit details
Commits on May 7, 2023
-
[fix] [broker] Upgrade rocksDB version to 6.29.4.1 to keep in sync wi…
…th BookKeeper's RocksDB version (apache#20243)
Configuration menu - View commit details
-
Copy full SHA for f88a49e - Browse repository at this point
Copy the full SHA f88a49eView commit details -
[fix][monitor] Fix the partitioned publisher topic stat aggregation b…
…ug (apache#18807) (cherry picked from commit 8790ed1)
Configuration menu - View commit details
-
Copy full SHA for b5b2de6 - Browse repository at this point
Copy the full SHA b5b2de6View commit details -
[fix] [broker] Fix infinite ack of Replicator after topic is closed (a…
…pache#20232) (cherry picked from commit 9841364)
Configuration menu - View commit details
-
Copy full SHA for c934df7 - Browse repository at this point
Copy the full SHA c934df7View commit details
Commits on May 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f6eee8d - Browse repository at this point
Copy the full SHA f6eee8dView commit details -
[improve] [broker] Skip split boundle if only one broker (apache#20190)
Co-authored-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit d135c4a)
Configuration menu - View commit details
-
Copy full SHA for 7da7873 - Browse repository at this point
Copy the full SHA 7da7873View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80dcea7 - Browse repository at this point
Copy the full SHA 80dcea7View commit details -
[fix][broker] Fix
RoaringBitmap.contains
can't check value 65535 (a……pache#20176) (cherry picked from commit 2f9f5df)
Configuration menu - View commit details
-
Copy full SHA for edc3a6f - Browse repository at this point
Copy the full SHA edc3a6fView commit details
Commits on May 10, 2023
-
Revert "[fix] [broker] [branch-2.10] Upgrade rocksDB version to 6.29.…
…4.1 to keep in sync with BookKeeper's RocksDB version (apache#20287)
Configuration menu - View commit details
-
Copy full SHA for 88038e3 - Browse repository at this point
Copy the full SHA 88038e3View commit details
Commits on May 11, 2023
-
[fix][monitor] topic with double quote breaks the prometheus format (a…
…pache#20230) (cherry picked from commit ea56197) (cherry picked from commit f94c8cb)
Configuration menu - View commit details
-
Copy full SHA for d8bf38e - Browse repository at this point
Copy the full SHA d8bf38eView commit details -
Revert "[improve] [broker] Skip split boundle if only one broker (apa…
…che#20190)" This reverts commit 7da7873.
Configuration menu - View commit details
-
Copy full SHA for 14dd76f - Browse repository at this point
Copy the full SHA 14dd76fView commit details -
[improve] [broker] Skip split boundle if only one broker (apache#20190)
Co-authored-by: Zixuan Liu <nodeces@gmail.com> (cherry picked from commit d135c4a)
Configuration menu - View commit details
-
Copy full SHA for f3edfc5 - Browse repository at this point
Copy the full SHA f3edfc5View commit details
Commits on May 12, 2023
-
[fix] [broker] [branch-2.10] Upgrade rocksDB version to 6.16.4 to kee…
…p sync with BookKeeper 4.14.7 (apache#20312)
Configuration menu - View commit details
-
Copy full SHA for 1c00154 - Browse repository at this point
Copy the full SHA 1c00154View commit details
Commits on May 17, 2023
-
[fix][build] update the zookeeper version to 3.6.4 (apache#20333)
Co-authored-by: Jiwe Guo <technoboy@apache.org>
Configuration menu - View commit details
-
Copy full SHA for 3eed289 - Browse repository at this point
Copy the full SHA 3eed289View commit details
Commits on May 18, 2023
-
[fix][broker]Fix deadlock of metadata store (apache#20189)
Motivation: This task loadOrCreatePersistentTopic occupied the event thread of the ZK client so that other ZK tasks could not be finished anymore(Including the task itself), and it calls bundlesCache.synchronous().get(nsname) which is a blocking method. Modification: Since the method getBundle(topic) will eventually call the method bundlesCache.synchronous().get(nsname), use getBundleAsync(topic) instead of getBundle(topic) to avoid blocking the thread. (cherry picked from commit 4678c36)
Configuration menu - View commit details
-
Copy full SHA for 8a1a4be - Browse repository at this point
Copy the full SHA 8a1a4beView commit details
Commits on May 19, 2023
-
[fix] [broker] In Key_Shared mode: remove unnecessary mechanisms of m…
…essage skip to avoid unnecessary consumption stuck (apache#20335) - apache#7105 provide a mechanism to avoid a stuck consumer affecting the consumption of other consumers: - if all consumers can not accept more messages, stop delivering messages to the client. - if one consumer can not accept more messages, just read new messages and deliver them to other consumers. - apache#7553 provide a mechanism to fix the issue of lost order of consumption: If the consumer cannot accept any more messages, skip the consumer for the next round of message delivery because there may be messages with the same key in the replay queue. - apache#10762 provide a mechanism to fix the issue of lost order of consumption: If there have any messages with the same key in the replay queue, do not deliver the new messages to this consumer. apache#10762 and apache#7553 do the same thing and apache#10762 is better than apache#7553 , so apache#7553 is unnecessary. remove the mechanism provided by apache#7553 to avoid unnecessary consumption stuck. (cherry picked from commit 1e664b7)
Configuration menu - View commit details
-
Copy full SHA for c973603 - Browse repository at this point
Copy the full SHA c973603View commit details
Commits on May 23, 2023
-
[fix] [broker] error TimeUnit to record publish latency (apache#20074)
Co-authored-by: fanjianye <fanjianye@bigo.sg> Co-authored-by: tison <wander4096@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8be5279 - Browse repository at this point
Copy the full SHA 8be5279View commit details -
[improve][broker] Get lowest PositionImpl from NavigableSet (apache#1…
…8278) * [cleanup] Direct get lowest PositionImpl from TreeMap change signature from Set<T> to NavigableSet<T> which makes the caller to get lowest PositionImpl more efficient. * change poll to first when call `NavigableSet` * fix check style remove unused import Co-authored-by: wangjinlong <wangjinlong@zhihu.com>
Configuration menu - View commit details
-
Copy full SHA for 01badd2 - Browse repository at this point
Copy the full SHA 01badd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b07ae00 - Browse repository at this point
Copy the full SHA b07ae00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 976c2c3 - Browse repository at this point
Copy the full SHA 976c2c3View commit details -
[fix][ml] Fix ledger left in OPEN state when enable `inactiveLedgerRo…
…llOverTimeMs` (apache#20276) close `currentLegder` after roll current ledger if full
Configuration menu - View commit details
-
Copy full SHA for 64688d5 - Browse repository at this point
Copy the full SHA 64688d5View commit details
Commits on May 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ee02ec6 - Browse repository at this point
Copy the full SHA ee02ec6View commit details
Commits on May 25, 2023
-
[fix][fn] Make pulsar-admin support update py/go with package url (ap…
…ache#19897) (cherry picked from commit fb9c4d0)
Configuration menu - View commit details
-
Copy full SHA for 4a1719d - Browse repository at this point
Copy the full SHA 4a1719dView commit details
Commits on May 26, 2023
-
[fix][broker] partitioned __change_events topic is policy topic (apac…
Configuration menu - View commit details
-
Copy full SHA for 323d112 - Browse repository at this point
Copy the full SHA 323d112View commit details
Commits on May 29, 2023
-
[fix][ci] Update nar maven plugin version to fix excessive downloads (a…
…pache#20410) (cherry picked from commit 795eb51)
Configuration menu - View commit details
-
Copy full SHA for d8876d5 - Browse repository at this point
Copy the full SHA d8876d5View commit details -
[fix][sec] Upgrade sqlite-jdbc to resolve CVE-2023-32697 (apache#20411)
(cherry picked from commit a953027)
Configuration menu - View commit details
-
Copy full SHA for f2d7808 - Browse repository at this point
Copy the full SHA f2d7808View commit details -
[fix][broker] If ledger lost, cursor mark delete position can not for…
…ward (apache#18620) Motivation: Configuration `autoSkipNonRecoverableData` is designed to turn this feature on if we can accept partial data loss. When a ledger is lost, the broker will still work. But now we have this problem: If a ledger is lost, consumer and producer can work, but the cursor mark delete position can not forward. Modifications: - When an unrecoverable ledger is found, remove the records in`individualDeletedMessages` and `batchDeletedIndexes`. - When the managed cursor is recovered, check whether there are invalid records in `individualDeletedMessages` and `batchDeletedIndexes` and print a warning log. (cherry picked from commit ab810f4)
Configuration menu - View commit details
-
Copy full SHA for 3cc9001 - Browse repository at this point
Copy the full SHA 3cc9001View commit details
Commits on May 30, 2023
-
[improve][misc] Upgrade Netty to 4.1.89.Final (apache#19649)
- Contains important Netty bug fixes and improvements - Upgrade Netty to 4.1.89.Final and io_uring transport to 0.0.18.Final Release notes: - 4.1.88.Final: https://netty.io/news/2023/02/12/4-1-88-Final.html - 4.1.89.Final: https://netty.io/news/2023/02/13/4-1-89-Final.html - io_uring 0.0.18.Final: https://netty.io/news/2023/02/22/io_uring_0-0-18-Final.html (cherry picked from commit 1a76e0d)
Configuration menu - View commit details
-
Copy full SHA for a54a4e0 - Browse repository at this point
Copy the full SHA a54a4e0View commit details -
[improve][misc] Upgrade Netty to 4.1.93.Final (apache#20423)
(cherry picked from commit e380910)
Configuration menu - View commit details
-
Copy full SHA for db1f9ab - Browse repository at this point
Copy the full SHA db1f9abView commit details
Commits on Jun 1, 2023
-
[fix][fn]Reset idle timer correctly (apache#20450)
Co-authored-by: Andy Walker <andy@andy.dev> Fix apache#20449 <!-- or this PR is one task of an issue --> Master Issue: apache#20449 ### Verifying this change - [ ] Make sure that the change passes the CI checks. This change is a trivial rework / code cleanup without any test coverage. ### Does this pull request potentially affect one of the following parts: <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> *If the box was checked, please highlight the changes* - [ ] Dependencies (add or upgrade a dependency) - [ ] The public API - [ ] The schema - [ ] The default values of configurations - [ ] The threading model - [ ] The binary protocol - [ ] The REST endpoints - [ ] The admin CLI options - [ ] The metrics - [ ] Anything that affects deployment ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [X] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> ### Matching PR in forked repository PR in forked repository: flowchartsman#5 (cherry picked from commit e05b890)
Configuration menu - View commit details
-
Copy full SHA for dfb2d5e - Browse repository at this point
Copy the full SHA dfb2d5eView commit details
Commits on Jun 2, 2023
-
[fix][client] Cache empty schema version in ProducerImpl schemaCache. (…
…apache#19929) Co-authored-by: wangjinlong <wangjinlong@zhihu.com> (cherry picked from commit cff3f9b)
Configuration menu - View commit details
-
Copy full SHA for a46acef - Browse repository at this point
Copy the full SHA a46acefView commit details
Commits on Jun 5, 2023
-
[fix][fn] Go functions need to use static grpcPort in k8s runtime (ap…
…ache#20404) (cherry picked from commit 7e6ca31)
Configuration menu - View commit details
-
Copy full SHA for 32b4607 - Browse repository at this point
Copy the full SHA 32b4607View commit details -
Fix license header with missing *
The missing * was introduced by a46acef
Configuration menu - View commit details
-
Copy full SHA for 03c7add - Browse repository at this point
Copy the full SHA 03c7addView commit details
Commits on Jun 6, 2023
-
[fix][build][branch-2.10] Fix ci-license check (apache#20505)
Co-authored-by: Lari Hotari <lhotari@apache.org>
Configuration menu - View commit details
-
Copy full SHA for 832d7e0 - Browse repository at this point
Copy the full SHA 832d7e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 071af38 - Browse repository at this point
Copy the full SHA 071af38View commit details -
[fix][sec] Upgrade Guava to 32.0.0 to address CVE-2023-2976 (apache#2…
Configuration menu - View commit details
-
Copy full SHA for 1cc99b3 - Browse repository at this point
Copy the full SHA 1cc99b3View commit details -
[fix][build] Don't publish docker image with "latest" tag to docker r…
…epository (cherry picked from commit 49d81af)
Configuration menu - View commit details
-
Copy full SHA for 33a45e0 - Browse repository at this point
Copy the full SHA 33a45e0View commit details -
[fix][io] Close the kafka source connector if there is uncaught excep…
…tion (apache#20479) Signed-off-by: Zike Yang <zike@apache.org>
Configuration menu - View commit details
-
Copy full SHA for 49eaa30 - Browse repository at this point
Copy the full SHA 49eaa30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f84354 - Browse repository at this point
Copy the full SHA 3f84354View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6506d6a - Browse repository at this point
Copy the full SHA 6506d6aView commit details -
[fix][fn] Go functions must retrieve consumers by non-particioned top…
…ic ID (apache#20413) Co-authored-by: Andy Walker <andy@andy.dev> (cherry picked from commit fb1b46e)
Configuration menu - View commit details
-
Copy full SHA for b6c2743 - Browse repository at this point
Copy the full SHA b6c2743View commit details
Commits on Jun 7, 2023
-
[fix][fn] Configure pulsar admin for TLS (apache#20533)
### Motivation This PR is a combination of apache#20482 and apache#20513 because cherry picking those PRs produced too many conflicts. ### Modifications * Made the same addition as the source PRs, though the code has changed a bit, so I had to make a few extra changes. ### Documentation - [x] `doc-not-needed` (cherry picked from commit 8c9c6e9)
Configuration menu - View commit details
-
Copy full SHA for 2b0659a - Browse repository at this point
Copy the full SHA 2b0659aView commit details
Commits on Jun 8, 2023
-
[fix][ml] There are two same-named managed ledgers in the one broker (a…
…pache#18688) (cherry picked from commit d7186a6)
Configuration menu - View commit details
-
Copy full SHA for acb8fd9 - Browse repository at this point
Copy the full SHA acb8fd9View commit details -
[fix][broker] Restore solution for certain topic unloading race condi…
…tions (apache#20527) (cherry picked from commit 03f9167)
Configuration menu - View commit details
-
Copy full SHA for 2fc0742 - Browse repository at this point
Copy the full SHA 2fc0742View commit details
Commits on Jun 9, 2023
-
[fix][broker] REST Client Producer fails with TLS only (apache#20535)
Co-authored-by: Matt Anderson <> Fixes apache#20536 ### Motivation When disabling HTTP ports in the Pulsar broker, the [REST Client Producer](https://pulsar.apache.org/docs/3.0.x/client-libraries-rest/) fails to produce messages. For reproduction steps, please reference issue details. ### Modifications Change the following lines: ```java LookupResult result = optionalResult.get(); if (result.getLookupData().getHttpUrl().equals(pulsar().getWebServiceAddress())) { // Current broker owns the topic, add to owning topic. ``` To: ```java LookupResult result = optionalResult.get(); if (result.getLookupData().getHttpUrl().equals(pulsar().getWebServiceAddress()) || result.getLookupData().getHttpUrlTls().equals(pulsar().getWebServiceAddressTls())) { // Current broker owns the topic, add to owning topic. ``` ### Verifying this change This change is a trivial rework / code cleanup without any test coverage. (outside of the reproduction tests described in the apache#20536) <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> *If the box was checked, please highlight the changes* - [ ] Dependencies (add or upgrade a dependency) - [ ] The public API - [ ] The schema - [ ] The default values of configurations - [ ] The threading model - [ ] The binary protocol - [x] The REST endpoints - [ ] The admin CLI options - [ ] The metrics - [ ] Anything that affects deployment ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> ### Matching PR in forked repository PR in forked repository: https://github.com/maanders-tibco/pulsar <!-- After opening this PR, the build in apache/pulsar will fail and instructions will be provided for opening a PR in the PR author's forked repository. apache/pulsar pull requests should be first tested in your own fork since the apache/pulsar CI based on GitHub Actions has constrained resources and quota. GitHub Actions provides separate quota for pull requests that are executed in a forked repository. The tests will be run in the forked repository until all PR review comments have been handled, the tests pass and the PR is approved by a reviewer. --> (cherry picked from commit 005cce1)
Configuration menu - View commit details
-
Copy full SHA for ebb97d0 - Browse repository at this point
Copy the full SHA ebb97d0View commit details
Commits on Jun 15, 2023
-
[fix][broker] release orphan replicator after topic closed (apache#20567
) Motivation: When the `replicator.producer` retries to start<sup>[1]</sup> the topic close<sup>[2]</sup> executed concurrently, there is an orphan replicator after this topic is closed. Modifications: If the topic was already closed, stop to retry. (cherry picked from commit d85736c)
Configuration menu - View commit details
-
Copy full SHA for db7832b - Browse repository at this point
Copy the full SHA db7832bView commit details
Commits on Jun 27, 2023
-
[cleanup][broker] Validate authz earlier in delete subscription logic (…
…apache#20549) Move the authorization check a few steps earlier in the delete subscription admin endpoint. * Move the authz check earlier We do not have any tests for these endpoints. We should add them. This change is trivial enough that I think it is fine to defer on testing the authz change. - [x] `doc-not-needed` (cherry picked from commit c73967c) (cherry picked from commit 47f7487)
Configuration menu - View commit details
-
Copy full SHA for 04a7a60 - Browse repository at this point
Copy the full SHA 04a7a60View commit details
Commits on Jun 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b355d31 - Browse repository at this point
Copy the full SHA b355d31View commit details -
[improve][test][branch-2.10] Backport disabling disk usage threshold …
…for Elastic Testcontainers (apache#20676)
Configuration menu - View commit details
-
Copy full SHA for 526e216 - Browse repository at this point
Copy the full SHA 526e216View commit details
Commits on Jun 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 39cf8d7 - Browse repository at this point
Copy the full SHA 39cf8d7View commit details -
[fix][broker] Fix the publish latency spike from the contention of Me…
…ssageDeduplication (apache#20647)
Configuration menu - View commit details
-
Copy full SHA for fa68bf3 - Browse repository at this point
Copy the full SHA fa68bf3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55609eb - Browse repository at this point
Copy the full SHA 55609ebView commit details -
Optimize conusmer pause (apache#14566)
(cherry picked from commit a32edc7)
Configuration menu - View commit details
-
Copy full SHA for 90369a0 - Browse repository at this point
Copy the full SHA 90369a0View commit details
Commits on Jun 30, 2023
-
[fix][fn] Exit JVM when main thread throws exception (apache#20689)
Fixes: apache#20688 When a function throws an exception that ends processing, we should exit the JVM. * Update `JavaInstanceMain` so that an exception leads to exiting the JVM. Since the class does not use any dependencies (see the class's Javadoc), we use reflection to shutdown logging. This change is a trivial rework / code cleanup without any test coverage. - [x] `doc-not-needed` (cherry picked from commit d83c7a6)
Configuration menu - View commit details
-
Copy full SHA for 090d1b7 - Browse repository at this point
Copy the full SHA 090d1b7View commit details -
[fix][io] Close the kafka source connector got stuck (apache#20698)
Motivation: apache#19880 (comment) When Kafka connector is closing, it waits for the `runnerThread` to stop, but the task-close is running at the same thread, so it will be stuck. Modifications: run `close` in another thread. (cherry picked from commit c5237ea)
Configuration menu - View commit details
-
Copy full SHA for 3a2e593 - Browse repository at this point
Copy the full SHA 3a2e593View commit details
Commits on Jul 2, 2023
-
[fix][branch-2.10] Fix duplicated deleting topics (apache#20685)
### Motivation 1. The topics have been deleted twice. https://github.com/apache/pulsar/blob/90369a0da639d43c841974d08ab77faeb7ba5cdd/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java#L342-L355 2. Similar to apache#20683 We need to do Deduplication.
Configuration menu - View commit details
-
Copy full SHA for f10797a - Browse repository at this point
Copy the full SHA f10797aView commit details
Commits on Jul 3, 2023
-
[fix][broker]fix the publish latency spike issue with large number of…
… producers (apache#20607) (cherry picked from commit 084d2ab)
Configuration menu - View commit details
-
Copy full SHA for 9fa56fc - Browse repository at this point
Copy the full SHA 9fa56fcView commit details -
[fix][sec] Upgrade snappy-java to address multiple CVEs (apache#20604)
(cherry picked from commit 62a99ed)
Configuration menu - View commit details
-
Copy full SHA for 186fc9d - Browse repository at this point
Copy the full SHA 186fc9dView commit details
Commits on Jul 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c5f2128 - Browse repository at this point
Copy the full SHA c5f2128View commit details -
[improve] [broker] Avoid
PersistentSubscription.expireMessages
logi……c check backlog twice. (apache#20416)
Configuration menu - View commit details
-
Copy full SHA for c9eb6bd - Browse repository at this point
Copy the full SHA c9eb6bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 64831dc - Browse repository at this point
Copy the full SHA 64831dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee3ad34 - Browse repository at this point
Copy the full SHA ee3ad34View commit details -
[fix] [Perf] PerformanceProducer do not produce expected number of me…
…ssages. (apache#19775) Co-authored-by: tison <wander4096@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 25bfc46 - Browse repository at this point
Copy the full SHA 25bfc46View commit details -
[fix][branch-2.10]Fix compilation issue introduced by Save createIfMi…
…ssing in TopicLoadingContext (apache#19993)
Configuration menu - View commit details
-
Copy full SHA for 043ecd7 - Browse repository at this point
Copy the full SHA 043ecd7View commit details
Commits on Jul 5, 2023
-
Issue 16802: fix Repeated messages of shared dispatcher (apache#16812)
(cherry picked from commit 825b68d)
Configuration menu - View commit details
-
Copy full SHA for 7093196 - Browse repository at this point
Copy the full SHA 7093196View commit details -
[fix][branch-2.10]Fix compilation issue introduced byfix Repeated mes…
…sages of shared dispatcher (apache#16812)
Configuration menu - View commit details
-
Copy full SHA for 3548d67 - Browse repository at this point
Copy the full SHA 3548d67View commit details -
fix: bundle-data metadata leak because of bundlestats was not clean (a…
…pache#17095) Co-authored-by: zhiyuanlei <zhiyuanlei@tencent.com> (cherry picked from commit e23a4c7)
Configuration menu - View commit details
-
Copy full SHA for f7138b9 - Browse repository at this point
Copy the full SHA f7138b9View commit details
Commits on Jul 6, 2023
-
[fix][flaky-test]NamespaceServiceTest.flaky/testModularLoadManagerRem…
…oveBundleAndLoad (apache#17487) (cherry picked from commit 5c67ded)
Configuration menu - View commit details
-
Copy full SHA for 44c033c - Browse repository at this point
Copy the full SHA 44c033cView commit details -
Configuration menu - View commit details
-
Copy full SHA for eac263e - Browse repository at this point
Copy the full SHA eac263eView commit details
Commits on Jul 7, 2023
-
[broker] clean inactive bundle from bundleData in loadData and bundle…
…sCache (apache#13974) * clean inactive bundle from bundleData in loadData and bundlesCache after the bundle be split or unload * update unit test clean inactive bundle from bundleData in loadData and bundlesCache after the bundle be split or unload * inactive bundle from bundleData in loadData and bundlesCache after the bundle be split or unload * clean inactive bundle from bundleData in loadData and bundlesCache after the bundle be split or unload * update unit test clean inactive bundle from bundleData in loadData and bundlesCache after the bundle be split or unload * inactive bundle from bundleData in loadData and bundlesCache after the bundle be split or unload * change the unit test function argument lists * fix unit test import list Co-authored-by: nicklixinyang <nicklixinyang@didiglobal.com> (cherry picked from commit f5019c8)
Configuration menu - View commit details
-
Copy full SHA for 8d501f2 - Browse repository at this point
Copy the full SHA 8d501f2View commit details -
[fix] [txn] fix consumer can receive aborted txn message when readTyp…
…e is replay (apache#19815) Co-authored-by: fanjianye <fanjianye@bigo.sg> (cherry picked from commit ac33311)
Configuration menu - View commit details
-
Copy full SHA for 4d7876b - Browse repository at this point
Copy the full SHA 4d7876bView commit details -
[fix][fn] Fix JavaInstanceStarter inferring type class name error (ap…
…ache#19896) (cherry picked from commit 05e57dd)
Configuration menu - View commit details
-
Copy full SHA for 2ba506b - Browse repository at this point
Copy the full SHA 2ba506bView commit details -
[fix][broker] Return if AbstractDispatcherSingleActiveConsumer closed (…
…apache#19934) (cherry picked from commit 42a6969)
Configuration menu - View commit details
-
Copy full SHA for c1b3024 - Browse repository at this point
Copy the full SHA c1b3024View commit details -
[fix][fn] Make KubernetesRuntime translate characters in function ten…
…ant, namespace, and name during function removal to avoid label errors (apache#19584) Co-authored-by: tison <wander4096@gmail.com> (cherry picked from commit 9340d6e)
Configuration menu - View commit details
-
Copy full SHA for 3a3c6f3 - Browse repository at this point
Copy the full SHA 3a3c6f3View commit details -
[fix][client] Fix race condition that leads to caching failed Complet…
…ableFutures in ConnectionPool (apache#19661) (cherry picked from commit 69fb3c2)
Configuration menu - View commit details
-
Copy full SHA for 0a4639e - Browse repository at this point
Copy the full SHA 0a4639eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5253fd - Browse repository at this point
Copy the full SHA c5253fdView commit details -
[fix] [meta]Switch to the metadata store thread after zk operation (a…
…pache#20303) (cherry picked from commit 35d9612)
Configuration menu - View commit details
-
Copy full SHA for 32e1463 - Browse repository at this point
Copy the full SHA 32e1463View commit details -
[improve][admin] Return BAD_REQUEST on cluster data is null for creat…
…eCluster (apache#20346) (cherry picked from commit c075725)
Configuration menu - View commit details
-
Copy full SHA for 46ef34a - Browse repository at this point
Copy the full SHA 46ef34aView commit details -
[fix][offload] Filesystem offloader class not found hadoop-hdfs-client (
apache#20365) (cherry picked from commit 56ce296)
Configuration menu - View commit details
-
Copy full SHA for a91874b - Browse repository at this point
Copy the full SHA a91874bView commit details -
[fix][broker] Fix return the earliest position when query position by…
… timestamp. (apache#20457) (cherry picked from commit 0e60340)
Configuration menu - View commit details
-
Copy full SHA for 6a62499 - Browse repository at this point
Copy the full SHA 6a62499View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1dbc723 - Browse repository at this point
Copy the full SHA 1dbc723View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6d4f09 - Browse repository at this point
Copy the full SHA e6d4f09View commit details -
[fix][broker] Fix NPE when reset Replicator's cursor by position. (ap…
…ache#20597) (cherry picked from commit 5abadbe)
Configuration menu - View commit details
-
Copy full SHA for 18f89b6 - Browse repository at this point
Copy the full SHA 18f89b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b6d1c9 - Browse repository at this point
Copy the full SHA 7b6d1c9View commit details -
[fix][broker] Topic policy can not be work well if replay policy mess…
…age has any exception. (apache#20613) (cherry picked from commit 200fb56)
Configuration menu - View commit details
-
Copy full SHA for 0a69f66 - Browse repository at this point
Copy the full SHA 0a69f66View commit details -
[fix][schema] Only handle exception when there has (apache#20730)
(cherry picked from commit 881a1f4)
Configuration menu - View commit details
-
Copy full SHA for b639685 - Browse repository at this point
Copy the full SHA b639685View commit details
Commits on Jul 8, 2023
-
[fix][broker] Fix namespace deletion if __change_events topic has not…
… been created yet (apache#18804) (cherry picked from commit 789122b)
Configuration menu - View commit details
-
Copy full SHA for 043dbc3 - Browse repository at this point
Copy the full SHA 043dbc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a6a460 - Browse repository at this point
Copy the full SHA 9a6a460View commit details -
Configuration menu - View commit details
-
Copy full SHA for 823dc8c - Browse repository at this point
Copy the full SHA 823dc8cView commit details -
[fix][client] Make the whole grabCnx() progress atomic (apache#20595)
(cherry picked from commit 2bede01)
Configuration menu - View commit details
-
Copy full SHA for d5631c9 - Browse repository at this point
Copy the full SHA d5631c9View commit details -
[fix] [client] Messages lost when consumer reconnect (apache#20695)
(cherry picked from commit 09c89cd)
Configuration menu - View commit details
-
Copy full SHA for 5d9f764 - Browse repository at this point
Copy the full SHA 5d9f764View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7670e01 - Browse repository at this point
Copy the full SHA 7670e01View commit details -
Update FaultInjectableZKRegistrationManager.java
Missed the required /** in the license header
Configuration menu - View commit details
-
Copy full SHA for 0e70bdd - Browse repository at this point
Copy the full SHA 0e70bddView commit details -
Configuration menu - View commit details
-
Copy full SHA for a4b3ae5 - Browse repository at this point
Copy the full SHA a4b3ae5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7925b3 - Browse repository at this point
Copy the full SHA c7925b3View commit details
Commits on Jul 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f8729c0 - Browse repository at this point
Copy the full SHA f8729c0View commit details -
Revert "[fix][broker] Fix NPE when reset Replicator's cursor by posit…
…ion. (apache#20597)" This reverts commit 18f89b6.
Configuration menu - View commit details
-
Copy full SHA for 209b222 - Browse repository at this point
Copy the full SHA 209b222View commit details
Commits on Jul 12, 2023
-
[fix][broker][branch-2.10] Fix NPE when reset Replicator's cursor by …
…position. (apache#20597) (apache#20781)
Configuration menu - View commit details
-
Copy full SHA for 643ffad - Browse repository at this point
Copy the full SHA 643ffadView commit details -
Fix breaking change of the deprecated constructor of PersistentMessag…
…eExpiryMonitor ### Motivation apache#20781 adds a new constructor to `PersistentMessageExpiryMonitor` and initialize the old constructor with ```java this.topic = subscription.topic; ``` NPE will happen when `subscription` is null. However, it's allowed to pass a null `subscription` for test because methods like `findEntryFailed` don't depend on the `topic` field. ### Modifications Add the null check and mark the old constructor as deprecated.
Configuration menu - View commit details
-
Copy full SHA for 5c55633 - Browse repository at this point
Copy the full SHA 5c55633View commit details
Commits on Jul 13, 2023
-
[improve] [broker] Add consumer-id into the log when doing subscribe. (…
…apache#20568) - Since `cnx.address + consumerId` is the identifier of one consumer; add `consumer-id` into the log when doing subscribe. - add a test to confirm that even if the error occurs when sending messages to the client, the consumption is still OK. - print debug log if ack-command was discarded due to `ConsumerFuture is not complete.` - print debug log if sending a message to the client is failed. (cherry picked from commit a41ac49)
Configuration menu - View commit details
-
Copy full SHA for e25d764 - Browse repository at this point
Copy the full SHA e25d764View commit details -
[fix] [broker] Can not receive any messages after switch to standby c…
…luster (apache#20767) (cherry picked from commit 465fac5)
Configuration menu - View commit details
-
Copy full SHA for 20adfe4 - Browse repository at this point
Copy the full SHA 20adfe4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82c589f - Browse repository at this point
Copy the full SHA 82c589fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c185ae4 - Browse repository at this point
Copy the full SHA c185ae4View commit details
Commits on Jul 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1cd009d - Browse repository at this point
Copy the full SHA 1cd009dView commit details
Commits on Jul 18, 2023
-
[fix] [cli] the variable producerName of BatchMsgContainer is null (a…
…pache#20819) Motivation: If the producer name is generated by the Broker, the producer will update the variable `producerName` after connecting, but not update the same variable of the batch message container. Modifications: fix bug (cherry picked from commit aba50f2)
Configuration menu - View commit details
-
Copy full SHA for 4dae6cb - Browse repository at this point
Copy the full SHA 4dae6cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a894af - Browse repository at this point
Copy the full SHA 4a894afView commit details
Commits on Jul 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1eb5eb3 - Browse repository at this point
Copy the full SHA 1eb5eb3View commit details
Commits on Jul 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fea2f9b - Browse repository at this point
Copy the full SHA fea2f9bView commit details
Commits on Jul 26, 2023
-
[branch-2.10][fix][broker] Fix inconsensus namespace policies by getP…
…oliciesIfCached (apache#20873)
Configuration menu - View commit details
-
Copy full SHA for 6d321e1 - Browse repository at this point
Copy the full SHA 6d321e1View commit details
Commits on Jul 27, 2023
-
[improve] [broker] Print warn log if compaction failure (apache#19405)
(cherry picked from commit 5b32220)
Configuration menu - View commit details
-
Copy full SHA for ebf9961 - Browse repository at this point
Copy the full SHA ebf9961View commit details
Commits on Jul 28, 2023
-
[fix][broker] In replication scenario, remote consumer could not be r…
…egistered if there has no message was sent (apache#20888) Motivation: In the replication scenario, we want to produce messages on the native cluster and consume messages on the remote cluster, the producer and consumer both use a same schema, but the consumer cannot be registered if there has no messages in the topic yet.The root cause is that for the remote cluster, there is a producer who has been registered with `AUTO_PRODUCE_BYTES` schema, so there is no schema to check the compatibility. Modifications: If there is no schema and only the replicator producer was registered, skip the compatibility check. (cherry picked from commit 9be0b52)
Configuration menu - View commit details
-
Copy full SHA for 54359b6 - Browse repository at this point
Copy the full SHA 54359b6View commit details
Commits on Aug 1, 2023
-
[fix] [ml] fix discontinuous ledger deletion (apache#20898)
- The task `trim ledgers` runs in the thread `BkMainThreadPool.choose(ledgerName)` - The task `write entries to BK` runs in the thread `BkMainThreadPool.choose(ledgerId)` So the two tasks above may run concurrently/ The task `trim ledgers` work as the flow below: - find the ledgers which are no longer to read, the result is `{Ledgers before the slowest read}`. - check if the `{Ledgers before the slowest read}` is out of retention policy, the result is `{Ledgers to be deleted}`. - if the create time of the ledger is lower than the earliest retention time, mark it should be deleted - if after deleting this ledger, the rest ledgers are still larger than the retention size, mark it should be deleted - delete the`{Ledgers to be deleted}` **(Highlight)** There is a scenario that causes the task `trim ledgers` did discontinuous ledger deletion, resulting consume messages discontinuous: - context: - ledgers: `[{id=1, size=100}, {id=2,size=100}]` - retention size: 150 - no cursor there - Check `ledger 1`, skip by retention check `(200 - 100) < 150` - One in-flight writing is finished, the `calculateTotalSizeWrited()` would return `300` now. - Check `ledger 2`, retention check `(300 - 100) > 150`, mark the ledger-2 should be deleted. - Delete the `ledger 2`. - Create a new consumer. It will receive messages from `[ledger-1, ledegr-3]`, but the `ledger-2` will be skipped. Once the retention constraint has been met, break the loop. (cherry picked from commit 782e91f)
Configuration menu - View commit details
-
Copy full SHA for ea16fb8 - Browse repository at this point
Copy the full SHA ea16fb8View commit details
Commits on Aug 8, 2023
-
[branch-2.10] Remove cpp tests
The C++ and Python clients are not maintained in the main repo now.
Configuration menu - View commit details
-
Copy full SHA for b0e2c0a - Browse repository at this point
Copy the full SHA b0e2c0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31d59cf - Browse repository at this point
Copy the full SHA 31d59cfView commit details
Commits on Aug 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0b22c0f - Browse repository at this point
Copy the full SHA 0b22c0fView commit details