Skip to content

[Broker] Add verification when terminating non-persistent topic#11903

Merged
merlimat merged 3 commits intoapache:masterfrom
shibd:bug-11834
Sep 6, 2021
Merged

[Broker] Add verification when terminating non-persistent topic#11903
merlimat merged 3 commits intoapache:masterfrom
shibd:bug-11834

Conversation

@shibd
Copy link
Member

@shibd shibd commented Sep 2, 2021

#11834

Code 406(Not Acceptable) is returned when the non persistent topic is terminated.

{
    "reason": "Need to provide a persistent topic name"
}

Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Can you also add a unit test that asserts the response?

@merlimat merlimat added this to the 2.9.0 milestone Sep 2, 2021
@merlimat merlimat added the type/bug The PR fixed a bug or issue reported a bug label Sep 2, 2021
@shibd
Copy link
Member Author

shibd commented Sep 3, 2021

@merlimat Unit tests have been added. Can you review them for me?

@shibd shibd changed the title [Broker] Add verification when terminating non-persistent [Broker] Add verification when terminating non-persistent topic Sep 3, 2021
@merlimat merlimat merged commit d4055b5 into apache:master Sep 6, 2021
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
…he#11903)

* [Broker] Add verification when terminating non-persistent

* [Broker] add unit test

* code format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/2.9.0 type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants