You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "jasperjiaguo (via GitHub)" <gi...@apache.org> on 2025/01/22 18:53:55 UTC

[I] copyFromSegmentFileToDeepStore can create corrupted segements during [pinot]

jasperjiaguo opened a new issue, #14869:
URL: https://github.com/apache/pinot/issues/14869

   [copyFromSegmentFileToDeepStore](https://github.com/apache/pinot/blob/90e7562954b8a8ed87457df53e2b93598eebb26a/pinot-controller/src/main/java/org/apache/pinot/controller/api/upload/ZKOperator.java#L741 ) right now depends very much on the stability of underlying storage layer implementation:
   
   When the storage layer/controller itself becomes unstable and causing the disruption during the segment copy process, the old segment will be irreversibly overwritten in the deep store. Due to the copy process from disk to disk is usually not atomic, such failures would almost guarantee corrupted/zero files left in the deep store. We have seen multiple occurences of this in our deployment. 
   
   The proposed fix is to make the process safer and at least recoverable, this involves a few process:
   
   - calculate CRC of the original file in temp folder
   - rename old segment in deep store
   - copy the segment over from temp folder to dst
   - verify the CRC of the same file in deep store
   - delete the renamed old segment
   
   in the worst case if the corruption does happen we would have the old segment still in deep store 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.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


Re: [I] copyFromSegmentFileToDeepStore can create corrupted segements during storage layer/controller disruption [pinot]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14869:
URL: https://github.com/apache/pinot/issues/14869#issuecomment-4384247081

   This issue has been automatically marked as stale because it has not had any activity in the last 150 days. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!


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


Re: [I] copyFromSegmentFileToDeepStore can create corrupted segements during storage layer/controller disruption [pinot]

Posted by "mcvsubbu (via GitHub)" <gi...@apache.org>.
mcvsubbu commented on issue #14869:
URL: https://github.com/apache/pinot/issues/14869#issuecomment-2608872145

   For the backup to exist, don't we need to designate a specific area/folder to create the temp files in the first place?


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


Re: [I] copyFromSegmentFileToDeepStore can create corrupted segements during storage layer/controller disruption [pinot]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14869:
URL: https://github.com/apache/pinot/issues/14869#issuecomment-4627180695

   This issue has been closed because it has been inactive for 180 days. If you believe this issue is still relevant, please feel free to reopen it or create a new issue. Thank you!


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


Re: [I] copyFromSegmentFileToDeepStore can create corrupted segements during storage layer/controller disruption [pinot]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #14869: copyFromSegmentFileToDeepStore can create corrupted segements during storage layer/controller disruption
URL: https://github.com/apache/pinot/issues/14869


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