You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/06/01 09:37:54 UTC

[GitHub] [pinot] lksvenoy-r7 opened a new issue, #8811: Delete all segments API does not respect retention period

lksvenoy-r7 opened a new issue, #8811:
URL: https://github.com/apache/pinot/issues/8811

   I just tried to use the API for deleting segments `/segments/{tableName} ` through the swagger documentation, and found that it did not respect the retention policy I specified.
   
   <img width="1425" alt="image" src="https://user-images.githubusercontent.com/46895578/171374937-96e3799c-1738-4376-ad6f-5f9ee2c7a52f.png">
   
   After executing the following command, all the segments in the table disappeared.


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


[GitHub] [pinot] mayankshriv commented on issue #8811: Delete all segments API does not respect retention period

Posted by GitBox <gi...@apache.org>.
mayankshriv commented on issue #8811:
URL: https://github.com/apache/pinot/issues/8811#issuecomment-1143697233

   Hi @lksvenoy-r7, this is expected behavior from the delete api. It is indeed expected to delete all (or specified) segments for a table. Retention is auto-managed (via periodic job) and does not require explicit trigger to delete segments.
   
   But, I am curious to learn what's the user experience you are looking for in this case.


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


[GitHub] [pinot] lksvenoy-r7 closed issue #8811: Delete all segments API does not respect retention period

Posted by GitBox <gi...@apache.org>.
lksvenoy-r7 closed issue #8811: Delete all segments API does not respect retention period
URL: https://github.com/apache/pinot/issues/8811


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


[GitHub] [pinot] Jackie-Jiang commented on issue #8811: Delete all segments API does not respect retention period

Posted by GitBox <gi...@apache.org>.
Jackie-Jiang commented on issue #8811:
URL: https://github.com/apache/pinot/issues/8811#issuecomment-1144054802

   This retention is not the retention for the table, but the retention for the deleted segments. When you specify `3d` here, Pinot will keep the deleted segments under the `deletedSegments` folder for 3 days before deleting them completely. We use this retention in case user accidentally deletes the segments and want to recover.


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


[GitHub] [pinot] lksvenoy-r7 commented on issue #8811: Delete all segments API does not respect retention period

Posted by GitBox <gi...@apache.org>.
lksvenoy-r7 commented on issue #8811:
URL: https://github.com/apache/pinot/issues/8811#issuecomment-1161687892

   Thanks for the responses @Jackie-Jiang @mayankshriv. That makes sense now, just a slightly confusing API. I'll close this issue as it was simply a misunderstanding


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