surekhasaharan commented on a change in pull request #7490: Add reload by 
interval API
URL: https://github.com/apache/incubator-druid/pull/7490#discussion_r276865530
 
 

 ##########
 File path: 
server/src/main/java/org/apache/druid/server/http/DataSourcesResource.java
 ##########
 @@ -700,4 +704,85 @@ static boolean 
isSegmentLoaded(Iterable<ImmutableSegmentLoadInfo> serverView, Se
     }
     return false;
   }
+
+  @PUT
+  @Path("/{dataSourceName}/markUsed")
+  @Produces(MediaType.APPLICATION_JSON)
+  @ResourceFilters(DatasourceResourceFilter.class)
+  public Response enableDatasourceSegments(
+      @PathParam("dataSourceName") String dataSourceName,
+      MarkDatasourceSegmentsPayload payload
+  )
+  {
+    if (payload == null || !payload.isValid()) {
+      return Response.status(Response.Status.BAD_REQUEST).entity(
+          ImmutableMap.of(
+              "error",
+              "Either interval or segments can be specified"
 
 Review comment:
   The message could be "Either a valid interval or segmentIds array must be 
specified" 

----------------------------------------------------------------
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]

Reply via email to