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

Fix status code of REST API to get partitioned topic stats #2542

Merged
merged 1 commit into from
Sep 8, 2018

Conversation

massakam
Copy link
Contributor

@massakam massakam commented Sep 7, 2018

Motivation

If trying to get stats of partitioned topic whose internal topics have not been generated, 500 Internal Server Error is returned. I think that the status code in this case should be 404 rather than 500.

Modifications

If broker has failed to get stats of the internal topics and its status code is 404, the broker returns 404 error to the client.

Result

Appropriate error response will be returned to the client.

@massakam massakam added type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages area/broker labels Sep 7, 2018
@massakam massakam added this to the 2.2.0-incubating milestone Sep 7, 2018
@massakam massakam self-assigned this Sep 7, 2018
@massakam
Copy link
Contributor Author

massakam commented Sep 7, 2018

rerun java8 tests

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.

👍

@merlimat merlimat merged commit cd185d1 into apache:master Sep 8, 2018
@massakam massakam deleted the partitioned-topic-stats branch September 10, 2018 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants