Skip to content

Pipe: timely restart pipes according to the deletion of original TsFiles#12406

Merged
SteveYurongSu merged 10 commits intoapache:masterfrom
DanielWang2035:pipe-restart-file
May 14, 2024
Merged

Pipe: timely restart pipes according to the deletion of original TsFiles#12406
SteveYurongSu merged 10 commits intoapache:masterfrom
DanielWang2035:pipe-restart-file

Conversation

@DanielWang2035
Copy link
Collaborator

@DanielWang2035 DanielWang2035 commented Apr 24, 2024

In this PR:
When pipe pins a TsFile, its TsFileResource is also maintained in order to keep track of the TsFileResourceStatus. We timely check the total size of pinned TsFiles whose TsFileResourceStatus is DELETED, if this size exceeds a threshold (with respect to total disk size), we restart all pipes that may be pinning TsFiles.

@SteveYurongSu SteveYurongSu self-requested a review April 24, 2024 11:26
@SteveYurongSu SteveYurongSu self-assigned this Apr 24, 2024
Copy link
Member

@SteveYurongSu SteveYurongSu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant!

@SteveYurongSu SteveYurongSu merged commit 2cb13ed into apache:master May 14, 2024
SzyWilliam pushed a commit to SzyWilliam/iotdb that referenced this pull request Nov 26, 2024
…les (apache#12406)

Co-authored-by: Steve Yurong Su <rong@apache.org>
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.

2 participants