swaminathanmanish commented on code in PR #13597:
URL: https://github.com/apache/pinot/pull/13597#discussion_r1680289873


##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java:
##########
@@ -555,6 +750,67 @@ public void uploadSegmentAsMultiPart(FormDataMultiPart 
multiPart,
     }
   }
 
+  @POST
+  @ManagedAsync
+  @Produces(MediaType.APPLICATION_JSON)
+  @Consumes(MediaType.MULTIPART_FORM_DATA)
+  @Path("/segmentList")
+  @Authorize(targetType = TargetType.TABLE, paramName = "tableName", action = 
Actions.Cluster.UPLOAD_SEGMENT)
+  @Authenticate(AccessType.CREATE)
+  @ApiOperation(value = "Upload a segment", notes = "Upload a segment as 
binary")

Review Comment:
   > update the notes "Upload a batch of segments"
   > 
   > high level question: is this batch uploading API atomic? I see there is 
logic to clean up uploaded segments upon any failure in the middle, so it's 
atomic in terms of the uploading action, but I assume it's not atomic as to the 
ongoing queries, as I didn't see SegmentLineage or similar mechanism was used 
here. But anyway, might be helpful to comment the API about how things work 
upon failures.
   
   Good point. This is all or nothing API if I understand @rajagopr ?



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