leventov commented on a change in pull request #452: New endpoints for new
(scalable) coordinator console
URL: https://github.com/apache/incubator-druid/pull/452#discussion_r266044930
##########
File path: server/src/main/java/io/druid/server/http/DatasourcesResource.java
##########
@@ -147,10 +203,10 @@ public Response enableDataSource(
)
{
if (!databaseSegmentManager.enableDatasource(dataSourceName)) {
- return Response.status(Response.Status.NOT_FOUND).build();
+ return Response.noContent().build();
Review comment:
Seems that `Response.serverError().build()` makes more sense here
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]