You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "tianshimoyi (via GitHub)" <gi...@apache.org> on 2023/08/22 09:59:11 UTC

[GitHub] [pulsar] tianshimoyi opened a new issue, #21049: [Bug] After enabling replication, the number of topic partitions cannot be modified

tianshimoyi opened a new issue, #21049:
URL: https://github.com/apache/pulsar/issues/21049

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Version
   
   v2.9.4
   
   ### Minimal reproduce step
   
   1. Turn on geo-replication according to the official document steps [https://pulsar.apache.org/docs/2.11.x/administration-geo/]
   2. Master and slave clusters use different zookeepers
   3. Modify the number of partitions of topic multiple times
   
   ### What did you expect to see?
   
   The number of partitions is modified correctly and synchronized to another cluster
   
   ### What did you see instead?
   
   1. Failed to modify the number of partitions
   ![截屏2023-08-22 下午5 56 11](https://github.com/apache/pulsar/assets/68532999/7a322e4b-a3d3-432a-a197-654b67dc307e)
   
   2. Another cluster has an incorrect number of partitions
   ![截屏2023-08-22 下午5 57 14](https://github.com/apache/pulsar/assets/68532999/59b75560-7df6-40f4-8c9d-a1ac21daa2dc)
   
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] tianshimoyi commented on issue #21049: [Bug] After enabling replication, the number of topic partitions cannot be modified

Posted by "tianshimoyi (via GitHub)" <gi...@apache.org>.
tianshimoyi commented on issue #21049:
URL: https://github.com/apache/pulsar/issues/21049#issuecomment-1691081411

   @mattisonchao The reason why t1-partition-5 and t1-partition-4 were created is that I expanded the partition in a cluster, and the synchronized cluster also expanded automatically, but the topic meta information did not change. After several operations to expand the partition, there is no way Expanded, and reported the above error.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] mattisonchao commented on issue #21049: [Bug] After enabling replication, the number of topic partitions cannot be modified

Posted by "mattisonchao (via GitHub)" <gi...@apache.org>.
mattisonchao commented on issue #21049:
URL: https://github.com/apache/pulsar/issues/21049#issuecomment-1727472849

   It seems like a bug before this [PR](https://github.com/apache/pulsar/pull/19166/files). The broker will try to create the partition first and then update the metadata.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] mattisonchao commented on issue #21049: [Bug] After enabling replication, the number of topic partitions cannot be modified

Posted by "mattisonchao (via GitHub)" <gi...@apache.org>.
mattisonchao commented on issue #21049:
URL: https://github.com/apache/pulsar/issues/21049#issuecomment-1692576044

   Hi, @tianshimoyi 
   
   Because the topic partition meta didn't update, I think the partition-4 and partition-5 also don't have data. Because the client needs to fetch metadata before publishing, maybe you can choose to delete them and update the partition number again.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] mattisonchao commented on issue #21049: [Bug] After enabling replication, the number of topic partitions cannot be modified

Posted by "mattisonchao (via GitHub)" <gi...@apache.org>.
mattisonchao commented on issue #21049:
URL: https://github.com/apache/pulsar/issues/21049#issuecomment-1692577439

   If you don't wanna force update the partition number to bypass the check. you can even modify the zookeeper node data directly by zk shell. that is a json data which maybe not be hard. :) 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] mattisonchao commented on issue #21049: [Bug] After enabling replication, the number of topic partitions cannot be modified

Posted by "mattisonchao (via GitHub)" <gi...@apache.org>.
mattisonchao commented on issue #21049:
URL: https://github.com/apache/pulsar/issues/21049#issuecomment-1727474353

   Would you mind to upgrade your cluster to TLS 3.0? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] After enabling replication, the number of topic partitions cannot be modified [pulsar]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #21049:
URL: https://github.com/apache/pulsar/issues/21049#issuecomment-1773595260

   The issue had no activity for 30 days, mark with Stale label.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] mattisonchao commented on issue #21049: [Bug] After enabling replication, the number of topic partitions cannot be modified

Posted by "mattisonchao (via GitHub)" <gi...@apache.org>.
mattisonchao commented on issue #21049:
URL: https://github.com/apache/pulsar/issues/21049#issuecomment-1689451662

   Hi @tianshimoyi 
   
   You should check why `t1-partition-5` and `t1-partition-4` has been created and if they can be discarded.
   
   If you can discard `t1-partition-5` and `t1-partition-4` you can try using `delete topic persistnet://tcloud/backup-ns2/t1-partition-5` and `delete topic persistnet://tcloud/backup-ns2/t1-partition-4` to delete these partitions.
   Afterwards, you can expand the partitions by admin.
   
   _**If `partition 4/5` is useful and some data exist there. you can try updating the partition by `force` flag.**_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] tianshimoyi commented on issue #21049: [Bug] After enabling replication, the number of topic partitions cannot be modified

Posted by "tianshimoyi (via GitHub)" <gi...@apache.org>.
tianshimoyi commented on issue #21049:
URL: https://github.com/apache/pulsar/issues/21049#issuecomment-1692789847

   @mattisonchao Yes, I know how to modify. But why is this the case? Is this a bugger?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org