pulsar
pulsar copied to clipboard
Apache Pulsar - distributed pub-sub messaging system
Releted PR/issue: #20833 - [ ] `doc` - [ ] `doc-required` - [x] `doc-not-needed` - [ ] `doc-complete`
Fixes https://github.com/apache/pulsar/issues/23550 ### Motivation After diving into the code, finding that there is a concurrent error in TransactionBufferHandlerImpl#checkRequestCredits(), checkPendingRequests(), which would cause the above issue. Currently, we have config TransactionBufferClientMaxConcurrentRequests...
### Motivation The Dispatch rate limiter serves two purposes: 1. Limit your consumption speed 2. When there are many backlogs, bk can be protected to avoid excessive I/O But the...
[fix][client] Fix clearIncomingMessages so that it doesn't leak memory while new entries are added
### Motivation The current ConsumerBase.clearIncomingMessage has a race condition when using Shared or Key_Shared subscription type. https://github.com/apache/pulsar/blob/69a45a11e22c1d963391110fb3488c9b9f98f759/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBase.java#L1224-L1229 When using Shared or Key_Shared, this method is called in `redeliverUnacknowledgedMessages` while new...
- Remove `managedLedgerOffloadReadThreads` from https://github.com/apache/pulsar/pull/24025 - Remove `managedLedgerMaxReadsInFlightPermitsAcquireTimeoutMillis` and `managedLedgerMaxReadsInFlightPermitsAcquireQueueSize` from https://github.com/apache/pulsar/pull/23901 - Remove `managedLedgerCursorResetLedgerCloseTimestampMaxClockSkewMillis` from https://github.com/apache/pulsar/pull/22792 The configs above only increase the complexity and are hard to configure. Add...
### Motivation - There is an issue that leads to repeated consumption when replay reading and `cursor.rewind` execute concurrently. **Information** - `read-position`: `3:21` - `mark-deleted-position: `3: -1` - `acked messages`:...
### Motivation In some tests, I noticed that LeaderElectionImpl could continue to make operations and override the closed state. ### Modifications Add checks if the internalState is Closed ### Documentation...
### Motivation The default value of the `connected` field in `org.apache.pulsar.common.policies.data.stats.ReplicatorStatsImpl` is false, and the logic for accumulating each partition (`org.apache.pulsar.common.policies.data.stats.ReplicatorStatsImpl#add`) is `this.connected &= stats.connected;`. This causes the status of...
[improve][broker] Add dedicated partition configuration for system topics to reduce resource usage
### Motivation The number of partitions for creating system topics depends on the value of the "defaultNumPartitions" configuration field, but this field is also the number of partitions for automatically...
### Motivation Upgrade K8S java client lib to latest version. This version is pulling the latest version of `org.bitbucket.b_c:jose4j:jar:0.9.4:compile` which has a fix for: ``` ┌──────────────────────────────────────┬────────────────┬──────────┬────────┬───────────────────┬───────────────┬─────────────────────────────────────────────────────────────┐ │ Library │ Vulnerability...