GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — [Bug] Broker won't immediately cache produced entries when all consumers leave and the first consumer joins · Issue #24656 · apache/pulsar Closed Labels type/bugThe PR fixed a bug or issue reported a bug DescriptionSearch before reporting
Read release policy
User environmentAll released Pulsar versions Issue DescriptionIn Pulsar Broker's Managed Ledger, there's a concept of an "active" cursor and an "inactive" cursor. The broker will only cache produced entries when there's at least one "active" cursor. pulsar/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java Lines 261 to 269 in a14794a
When a new cursor gets created by a new subscription, it is make "active" by default. A cursor can get inactivated when it has "fallen behind": pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java Lines 3448 to 3456 in d275bd4
When the last consumer of a subscription leaves, it will deactivate the cursor: Lines 343 to 356 in d275bd4
When a consumer rejoins, the won't get activated immediately. It won't happen until the pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/PulsarStats.java Lines 147 to 149 in f5c1ad2
Error messagesReproducing the issueThe problem is explained in the description. Additional informationI already have a fix as part of PR #24623. I have created this issue to describe the problem and so that I can submit a separate PR to fix the issue. Are you willing to submit a PR?
ActivityMetadataMetadataAssigneesLabelstype/bugThe PR fixed a bug or issue reported a bug TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |