saintstack commented on a change in pull request #524: HBASE-22846 Internal
Error 500 when Using HBASE REST API to Create Na…
URL: https://github.com/apache/hbase/pull/524#discussion_r324430547
##########
File path:
hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/NamespacesInstanceResource.java
##########
@@ -135,35 +135,9 @@ public Response get(final @Context ServletContext context,
@Consumes({MIMETYPE_XML, MIMETYPE_JSON, MIMETYPE_PROTOBUF,
MIMETYPE_PROTOBUF_IETF})
public Response put(final NamespacesInstanceModel model, final @Context
UriInfo uriInfo) {
- if (LOG.isTraceEnabled()) {
- LOG.trace("PUT " + uriInfo.getAbsolutePath());
- }
- servlet.getMetrics().incrementRequests(1);
return processUpdate(model, true, uriInfo);
}
- /**
- * Build a response for PUT alter namespace with no properties specified.
- * @param message value not used.
- * @param headers value not used.
- * @return response code.
- */
- @PUT
- public Response putNoBody(final byte[] message,
Review comment:
I don't know how this works. When you remove this, the put gets called?
----------------------------------------------------------------
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