Skip to content

Fix TsFileResource is deleted cause compaction validation result is not correct#11878

Merged
HTHou merged 7 commits intoapache:masterfrom
shuwenwei:fixTsFileResourceNotFoundWhenValidateCompaction
Jan 15, 2024
Merged

Fix TsFileResource is deleted cause compaction validation result is not correct#11878
HTHou merged 7 commits intoapache:masterfrom
shuwenwei:fixTsFileResourceNotFoundWhenValidateCompaction

Conversation

@shuwenwei
Copy link
Copy Markdown
Member

@shuwenwei shuwenwei commented Jan 11, 2024

Description

  1. Fix deleted TsFileResource or borken TsFileResource may cause compaction validation result not correct.
    When validate whether the compaction target file is overlapped with sequence files or not, the resource file may be read by buildDeviceTimeIndex(). However, other sequence files may be deleted by other compaction task. Then the validation method will catch an IOException and directly return a flag which means validate successfully.
  2. Fix the return value of InnerSpaceCompactionTask.getEstimatedMemoryCost() when catch exception

@shuwenwei shuwenwei requested a review from caozj1011 January 12, 2024 03:54
@HTHou HTHou merged commit 212cebf into apache:master Jan 15, 2024
SzyWilliam pushed a commit to SzyWilliam/iotdb that referenced this pull request Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants