Skip to content
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

Can not increase partitions in topic with only one partition #6564

Closed
poulhenriksen opened this issue Mar 19, 2020 · 1 comment
Closed

Can not increase partitions in topic with only one partition #6564

poulhenriksen opened this issue Mar 19, 2020 · 1 comment
Labels
type/bug The PR fixed a bug or issue reported a bug

Comments

@poulhenriksen
Copy link

poulhenriksen commented Mar 19, 2020

Describe the bug
A partitioned topic with only one partition can not 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.

@sijie
Copy link
Member

sijie commented Mar 26, 2020

This has been fixed by #6560

@sijie sijie closed this as completed Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

No branches or pull requests

2 participants