falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pallavi-rao <...@git.apache.org>
Subject [GitHub] falcon pull request: FALCON-1774 Server side check added
Date Fri, 29 Jan 2016 07:05:53 GMT
Github user pallavi-rao commented on a diff in the pull request:

    --- 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 --
    Falcon can run in 2 modes: 
    1. Distributed. In this case, Falcon prism is what user should use to perform CRUD operations
on entities and direct CRUD operations against Falcon Server should not be allowed.
    2. Embedded. In this case, there is no Prism server at all, there is just one instance
of Server and all CRUD operations should be allowed against server in this mode.

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 infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message