Skip to content

Commit

Permalink
fix empty resource recovered from wal (apache#11452)
Browse files Browse the repository at this point in the history
  • Loading branch information
HTHou authored Nov 7, 2023
1 parent aa99a22 commit 3244255
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,10 @@ private void recoverUnsealedTsFileCallBack(UnsealedTsFileRecoverPerformer recove
} catch (IOException e) {
logger.error("Fail to close TsFile {} when recovering", tsFileResource.getTsFile(), e);
}
if (!TsFileValidator.getInstance().validateTsFile(tsFileResource)) {
tsFileResource.remove();
return;
}
updateLastFlushTime(tsFileResource, isSeq);
tsFileResourceManager.registerSealedTsFileResource(tsFileResource);
FileMetrics.getInstance()
Expand Down

0 comments on commit 3244255

Please sign in to comment.