harold-kfuse opened a new issue, #10430:
URL: https://github.com/apache/pinot/issues/10430

   Discussed with @Jackie-Jiang offline. He mentioned that the Segment replace 
api allows M>=0 to N>=0 segments, i.e., I can pass an empty `segmentsTo` list 
of segments and it should work and will mark the segments in segmentsFrom for 
deletion). 
   
   However, when I tried giving an empty segmentsTo list, I get a precondition 
check failure: 
https://github.com/apache/pinot/blob/7e9ca6a5a4afe0d4e283ac1307c45430e474cbf2/pinot-common/src/main/java/org/apache/pinot/common/restlet/resources/StartReplaceSegmentsRequest.java#L43
   
   
   Is the preconditions check required?


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