failed update partition of topic - #11683
Merged
codelipenghui merged 6 commits intoAug 30, 2021
Merged
Conversation
BewareMyPower
requested review from
codelipenghui,
eolivelli and
lhotari
and removed request for
codelipenghui and
eolivelli
August 17, 2021 10:16
BewareMyPower
requested changes
Aug 17, 2021
Member
|
Thanks for your contribution. For this PR, do we need to update docs? (The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks) |
Contributor
Author
no need doc. |
gaozhangmin
force-pushed
the
fix-updatePartitionedTopic-bug
branch
from
August 18, 2021 05:35
58e6675 to
49c6cdd
Compare
gaozhangmin
force-pushed
the
fix-updatePartitionedTopic-bug
branch
from
August 18, 2021 05:36
49c6cdd to
bc771fe
Compare
Contributor
|
Please fix the code style. |
BewareMyPower
requested changes
Aug 18, 2021
gaozhangmin
force-pushed
the
fix-updatePartitionedTopic-bug
branch
from
August 18, 2021 07:47
0fa1c93 to
8dc16b7
Compare
BewareMyPower
approved these changes
Aug 18, 2021
Contributor
Author
|
@eolivelli @lhotari PTAL |
codelipenghui
requested changes
Aug 19, 2021
Contributor
Author
|
@codelipenghui PTAL |
BewareMyPower
approved these changes
Aug 30, 2021
codelipenghui
approved these changes
Aug 30, 2021
codelipenghui
pushed a commit
that referenced
this pull request
Sep 9, 2021
Fixes #11682 ### Motivation 1、`tryCreatePartitionsAsync` would create znode under `managed-ledgers/public/default/persistent/` after success invoke 2、there are chance, `updatePartitionedTopic` would failed, and managed-ledgers znode would stay unclean. If We tried update partition once again , We would fail, because of managed-ledgers znode exists https://github.com/apache/pulsar/blob/80171a733ab4799f912a8935f03c19554b9ca3b1/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L473-L485 ### Modifications clean up managed-ledger znode after we failed update partition. (cherry picked from commit 90c7db4)
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Oct 27, 2021
Fixes apache#11682 ### Motivation 1、`tryCreatePartitionsAsync` would create znode under `managed-ledgers/public/default/persistent/` after success invoke 2、there are chance, `updatePartitionedTopic` would failed, and managed-ledgers znode would stay unclean. If We tried update partition once again , We would fail, because of managed-ledgers znode exists https://github.com/apache/pulsar/blob/80171a733ab4799f912a8935f03c19554b9ca3b1/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L473-L485 ### Modifications clean up managed-ledger znode after we failed update partition. (cherry picked from commit 90c7db4) (cherry picked from commit f96f967)
bharanic-dev
pushed a commit
to bharanic-dev/pulsar
that referenced
this pull request
Mar 18, 2022
Fixes apache#11682 ### Motivation 1、`tryCreatePartitionsAsync` would create znode under `managed-ledgers/public/default/persistent/` after success invoke 2、there are chance, `updatePartitionedTopic` would failed, and managed-ledgers znode would stay unclean. If We tried update partition once again , We would fail, because of managed-ledgers znode exists https://github.com/apache/pulsar/blob/80171a733ab4799f912a8935f03c19554b9ca3b1/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L473-L485 ### Modifications clean up managed-ledger znode after we failed update partition.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11682
Motivation
1、
tryCreatePartitionsAsyncwould create znode undermanaged-ledgers/public/default/persistent/after success invoke2、there are chance,
updatePartitionedTopicwould failed, and managed-ledgers znode would stay unclean. If We tried update partition once again , We would fail, because of managed-ledgers znode existspulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Lines 473 to 485 in 80171a7
Modifications
clean up managed-ledger znode after we failed update partition.