-
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 create consumer on partitioned topic while disable topic auto creation. #5572
Conversation
@wolfstudy if this PR can complete before cut 2.4.2, please considering include it, thanks. |
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.
I don't think that is the right fix for this problem. The purpose of disabling topic auto-creation is to prevent consumers and producers creating topics.
I think the correct fix should be improving the pulsar-admin tool to create and delete partitions when creating or updating a partitioned topic.
run integration tests |
run java8 tests |
@codelipenghui l will change the |
@wolfstudy Thanks |
run java8 tests |
1 similar comment
run java8 tests |
run java8 tests |
3 similar comments
run java8 tests |
run java8 tests |
run java8 tests |
@sijie Please help review this PR again |
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/AdminResource.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/AdminResource.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java
Outdated
Show resolved
Hide resolved
@codelipenghui are you going to include this fix in 2.5.0 or shall we move it to 2.5.1 or 2.6.0? |
it can move to 2.5.1 if 2.5.0 branch will start cut soon.
Sijie Guo <[email protected]>于2019年11月26日 周二04:57写道:
… @codelipenghui <https://github.com/codelipenghui> are you going to
include this fix in 2.5.0 or shall we move it to 2.5.1 or 2.6.0?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5572?email_source=notifications&email_token=ADACIBNEFVHYYSH7LBLXYSLQVQ35BA5CNFSM4JJSNE2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFDYW6Q#issuecomment-558336890>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADACIBNF3KJK4F5B2MUDI3DQVQ35BANCNFSM4JJSNE2A>
.
|
@sijie I have addressed your comments, PTAL. |
run java8 tests |
run java8 tests |
run integration tests |
1 similar comment
run integration tests |
…ation. (#5572) ### Motivation Currently, disable the topic auto creation will cause consumer create failed on a partitioned topic. Since the partitioned topic is already created, so we should handle the topic partition create when disable the topic auto creation. ### Modifications By default, create partitioned topics also try to create all partitions, and if create partitions failed, users can use `create-missed-partitions` to repair. If users already have a partitioned topic without created partitions, can also use `create-missed-partitions` to repair. (cherry picked from commit 602f1c2)
done the cherry-pick to branch-2.5 |
…ation. (#5572) ### Motivation Currently, disable the topic auto creation will cause consumer create failed on a partitioned topic. Since the partitioned topic is already created, so we should handle the topic partition create when disable the topic auto creation. ### Modifications By default, create partitioned topics also try to create all partitions, and if create partitions failed, users can use `create-missed-partitions` to repair. If users already have a partitioned topic without created partitions, can also use `create-missed-partitions` to repair. (cherry picked from commit 602f1c2)
…ation. (apache#5572) ### Motivation Currently, disable the topic auto creation will cause consumer create failed on a partitioned topic. Since the partitioned topic is already created, so we should handle the topic partition create when disable the topic auto creation. ### Modifications By default, create partitioned topics also try to create all partitions, and if create partitions failed, users can use `create-missed-partitions` to repair. If users already have a partitioned topic without created partitions, can also use `create-missed-partitions` to repair. (cherry picked from commit 602f1c2)
…ation. (apache#5572) Currently, disable the topic auto creation will cause consumer create failed on a partitioned topic. Since the partitioned topic is already created, so we should handle the topic partition create when disable the topic auto creation. By default, create partitioned topics also try to create all partitions, and if create partitions failed, users can use `create-missed-partitions` to repair. If users already have a partitioned topic without created partitions, can also use `create-missed-partitions` to repair.
…ation. (apache#5572) ### Motivation Currently, disable the topic auto creation will cause consumer create failed on a partitioned topic. Since the partitioned topic is already created, so we should handle the topic partition create when disable the topic auto creation. ### Modifications By default, create partitioned topics also try to create all partitions, and if create partitions failed, users can use `create-missed-partitions` to repair. If users already have a partitioned topic without created partitions, can also use `create-missed-partitions` to repair.
Fixes #5565
Motivation
Currently, disable the topic auto creation will cause consumer create failed on a partitioned topic. Since the partitioned topic is already created, so we should handle the topic partition create when disable the topic auto creation.
Modifications
By default, create partitioned topics also try to create all partitions, and if create partitions failed, users can use
create-missed-partitions
to repair.If users already have a partitioned topic without created partitions, can also use
create-missed-partitions
to repair.Verifying this change
Add new unit tests for this change
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation