-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[improve][broker][PIP-195] Add topicName and cursorName for ledger metadata of bucket snapshot #19802
[improve][broker][PIP-195] Add topicName and cursorName for ledger metadata of bucket snapshot #19802
Conversation
a47a28a
to
d4611d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
I think it should be one that we missed in the proposal
Could you please also update the proposal according
to the changes of the Ledger's metadata? It can help
users to troubleshoot issues like why the ledger has not
been deleted.
/pulsarbot run-failure-checks |
Yes, I will update this part of the proposal |
@@ -48,7 +48,9 @@ public final class LedgerMetadataUtils { | |||
private static final String METADATA_PROPERTY_COMPACTEDTO = "pulsar/compactedTo"; | |||
private static final String METADATA_PROPERTY_SCHEMAID = "pulsar/schemaId"; | |||
|
|||
private static final String METADATA_PROPERTY_DELAYED_INDEX_BUCKETID = "pulsar/delayedIndexBucketId"; | |||
private static final String METADATA_PROPERTY_DELAYED_INDEX_BUCKET_KEY = "pulsar/delayedIndexBucketKey"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change affect getting older values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we don't read metadata directly, it only used to troubleshoot issues.
…tadata of bucket snapshot (apache#19802)
…tadata of bucket snapshot (apache#19802)
PIP: #16763
Motivation & Modifications
add topicName and cursorName for BK metadata of bucket snapshot, so we know who is using the ledger.
Verifying this change
(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:)
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: