jineshparakh commented on code in PR #18203:
URL: https://github.com/apache/pinot/pull/18203#discussion_r3108691647


##########
pinot-broker/src/main/java/org/apache/pinot/broker/api/resources/ResponseStoreResource.java:
##########
@@ -184,6 +184,31 @@ public String deleteResponse(
             .build());
   }
 
+  @DELETE
+  @Produces(MediaType.APPLICATION_JSON)
+  @Path("/")
+  @Authorize(targetType = TargetType.CLUSTER, action = 
Actions.Cluster.DELETE_RESPONSE_STORE)
+  @ApiOperation(value = "Delete expired response stores",
+      notes = "Delete all response stores expired before the given timestamp.")
+  public String deleteExpiredResponses(
+      @ApiParam(value = "Delete responses expired at or before this epoch ms", 
required = true)
+      @QueryParam("expiredBefore") Long expiredBeforeMs,
+      @Context HttpHeaders headers) {
+    if (expiredBeforeMs == null) {

Review Comment:
   Done



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to