You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/03/19 14:02:56 UTC

[GitHub] [pulsar] poulhenriksen opened a new issue #6564: Can not increase partitions in topic with only one partition

poulhenriksen opened a new issue #6564: Can not increase partitions in topic with only one partition
URL: https://github.com/apache/pulsar/issues/6564
 
 
   **Describe the bug**
   A partitioned topic with only one partition can not be be increased to have more partitions.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Create a partitioned topic with one partition:
       ```
       bin/pulsar-admin persistent create-partitioned-topic \
       persistent://public/default/part_topic \
       --partitions 1
       ```
   2. Try to increase the number of partitions:
       ```
       bin/pulsar-admin topics update-partitioned-topic persistent://public/default/part_topic -p 3
       ```
   
   It then fails with:
   
   ```
   13:57:59.057 [AsyncHttpClient-5-1] WARN  org.apache.pulsar.client.admin.internal.BaseResource - [http://localhost:8080/admin/v2/persistent/public/default/part_topic/partitions?updateLocalTopicOnly=false] Failed to perform http post request: javax.ws.rs.ClientErrorException: HTTP 409 Conflict
   Topic is not partitioned topic
   
   Reason: Topic is not partitioned topic
   ```
   
   **Expected behavior**
   It does not fail.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] zhanghaou commented on issue #6564: Can not increase partitions in topic with only one partition

Posted by GitBox <gi...@apache.org>.
zhanghaou commented on issue #6564: Can not increase partitions in topic with only one partition
URL: https://github.com/apache/pulsar/issues/6564#issuecomment-605411875
 
 
   It seems that this bug can be reproduced. I'm interesting in fix it.
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] sijie commented on issue #6564: Can not increase partitions in topic with only one partition

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #6564: Can not increase partitions in topic with only one partition
URL: https://github.com/apache/pulsar/issues/6564#issuecomment-604241937
 
 
   This has been fixed by #6560

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] zhanghaou removed a comment on issue #6564: Can not increase partitions in topic with only one partition

Posted by GitBox <gi...@apache.org>.
zhanghaou removed a comment on issue #6564: Can not increase partitions in topic with only one partition
URL: https://github.com/apache/pulsar/issues/6564#issuecomment-605411875
 
 
   It seems that this bug can be reproduced. I'm interesting in fix it.
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] sijie closed issue #6564: Can not increase partitions in topic with only one partition

Posted by GitBox <gi...@apache.org>.
sijie closed issue #6564: Can not increase partitions in topic with only one partition
URL: https://github.com/apache/pulsar/issues/6564
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services