Github user PraveenAdlakha commented on a diff in the pull request:
https://github.com/apache/falcon/pull/16#discussion_r51231110
--- Diff:
webapp/src/main/java/org/apache/falcon/resource/SchedulableEntityManager.java
---
@@ -57,6 +59,91 @@ public APIResult getStatus(@Dimension("entityType")
@PathParam("type") String ty
}
}
+ /**
+ * Delete the specified entity.
+ * @param request Servlet Request
+ * @param type Valid options are cluster, feed or process.
+ * @param entity Name of the entity.
+ * @param ignore colo is ignored
+ * @return Results of the delete operation.
+ */
+ @DELETE
+ @Path("delete/{type}/{entity}")
+ @Produces({MediaType.TEXT_XML, MediaType.TEXT_PLAIN,
MediaType.APPLICATION_JSON})
+ @Monitored(event = "delete")
+ @Override
+ public APIResult delete(
+ @Context HttpServletRequest request, @Dimension("entityType")
@PathParam("type") final String type,
+ @Dimension("entityName") @PathParam("entity") final String
entity,
+ @Dimension("colo") @QueryParam("colo") String ignore) {
+ throw FalconWebException.newAPIException("delete on server is not"
+
--- End diff --
Can you please help me understand why we want to check this?
As per my understanding these calls are not supported on falcon server and
whenever this method gets called we should through an error.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---