You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/12/17 01:35:43 UTC
[GitHub] [iotdb] SzyWilliam opened a new pull request #4596: add TsFileUtils.isTsFileComplete
SzyWilliam opened a new pull request #4596:
URL: https://github.com/apache/iotdb/pull/4596
## Description
Issue-2154
Add TsFileUtils.isTsFileComplete Method to check whether a TsFile is complete
Currently, we use RestorableTsFileIOWriter to check whether a TsFile is complete. However it will scan the TsFile and return truncate size if it is broken. We also need to remember to close the writer after doing the check.
Sometimes we just need a simple method to determine whether a TsFile is complete, (by complete, only if the head magic and tail magic string exists.)
In this PR, I extract the code of deciding completeness from RestorableTsFileIOWriter and uses TsFileSequenceReader.isComplete internally
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [iotdb] qiaojialin merged pull request #4596: [IOTDB-2154]add TsFileUtils.isTsFileComplete
Posted by GitBox <gi...@apache.org>.
qiaojialin merged pull request #4596:
URL: https://github.com/apache/iotdb/pull/4596
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org