-
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
[fix][broker] Fix schema deletion error when deleting a partitioned topic with many partitions and schema #21977
Conversation
tests/integration/src/test/java/org/apache/pulsar/tests/integration/schema/SchemaTest.java
Outdated
Show resolved
Hide resolved
… topic and when the topic's reference is not ready
5563eb0
to
73a27c5
Compare
related to : #19882 |
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.
LGTM!
It better also update the comments at here
Updated the comment. |
Related fix #21574 |
…opic with many partitions and schema (#21977)
Do __change_events topics involved? I have partitions enforced on the cluster, so __change_events are partitioned too.
Running broker with this patch. I'm also encountering
|
@KannarFr This PR is specifically trying to fix the ledger error, Also, do your errors start showing with this fix as regression? |
Ok, it looks not related to this issue my bad. I'll open another issue about my problem. |
I see. Thanks. |
…opic with many partitions and schema (#21977)
…opic with many partitions and schema (#21977)
…opic with many partitions and schema (apache#21977) (cherry picked from commit 75e2142)
…opic with many partitions and schema (apache#21977) (cherry picked from commit 75e2142)
…opic with many partitions and schema (apache#21977) (cherry picked from commit 1b4127a) Signed-off-by: Zixuan Liu <[email protected]>
Potentially related to
#15267
#14592
Motivation
Broker returns this error,
No such ledger exists on Metadata Server
to client when deleting a partitioned topic with many partitions and schema.The root cause is that
reproduce steps
Modifications
BrokerService.deleteSchema
when deleting a topic partition since the schema deletion should only happen at the upper level, when the base (partitioned) topic is finally deleted.getSchema
check inBrokerService.deleteSchema
as theBookkeeperSchemaStorage.delete(String key)
already checks the getSchema inside by default.NoSuchLedgerExistsOnMetadataServerException (-25)
in the unrecoverable conditions when throwingSchemaException
for better idempotency.Verifying this change
This change added test.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: