You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "sajjad-moradi (via GitHub)" <gi...@apache.org> on 2023/02/14 00:26:56 UTC

[GitHub] [pinot] sajjad-moradi commented on issue #10237: Disallow consuming segment deletion

sajjad-moradi commented on issue #10237:
URL: https://github.com/apache/pinot/issues/10237#issuecomment-1428913999

   @Jackie-Jiang In our clusters, whenever a consuming segment was deleted, it was a result of a user error. So we prefer to not delete consuming segments. That being said, I see your point of using delete endpoint for deleting some consuming segments being in weird state. 
   What do you think of adding an extra flag indicating force-deleting a consuming segment? 
   ```
   DELETE /segments/{tableName}/{segmentName}
   returns 400 if the segment is in consuming state, with error saying “{segmentName} is in consuming state. If you need to delete the consuming segment, provide ‘forceDeleteConsumingSegment’ parameter”.
   
   DELETE /segments/{tableName}/{segmentName}?forceDeleteConsumingSegment=true
   ```


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org