Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipe: stop pipe using restarting strategy to unpin the wal's reference count to avoid WAL stacking #11971

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

MiniSho
Copy link
Contributor

@MiniSho MiniSho commented Jan 25, 2024

Description

Change the execution flow of the stop pipe :

  1. drop the pipe task firstly
  2. then create a new pipe task with the same pipeMeta.

When the pipe is dropped and re-created with the same pipeMeta, it will re-trigger the collection of historical data, and most of the files it pins are tsfile files not wal, because the wal files are flushed. By taking advantage of this property, we can make sure that the subsequent pins are new files, not old wal files, thus avoiding the wal stacking.

@SteveYurongSu SteveYurongSu self-assigned this Jan 25, 2024
@SteveYurongSu SteveYurongSu changed the title Pipe: When stopping the pipe, unpin the wal's reference count to avoid WAL stacking Pipe: stop pipe using restarting strategy to unpin the wal's reference count to avoid WAL stacking Jan 30, 2024
@SteveYurongSu SteveYurongSu merged commit d0928eb into apache:master Jan 30, 2024
35 of 36 checks passed
Caideyipi added a commit to Caideyipi/iotdb that referenced this pull request Feb 6, 2024
…reference count to avoid WAL stacking (apache#11971)"

This reverts commit d0928eb.
SteveYurongSu pushed a commit that referenced this pull request Feb 7, 2024
…wal's reference count to avoid WAL stacking (#11971)" to avoid unnecessary pipe drop during subtask exception handling (#12031)

This reverts commit d0928eb.
HTHou added a commit that referenced this pull request Mar 5, 2024
…reference count to avoid WAL stacking (#11971)"

This reverts commit d0928eb.
SzyWilliam pushed a commit to SzyWilliam/iotdb that referenced this pull request Nov 26, 2024
SzyWilliam pushed a commit to SzyWilliam/iotdb that referenced this pull request Nov 26, 2024
…wal's reference count to avoid WAL stacking (apache#11971)" to avoid unnecessary pipe drop during subtask exception handling (apache#12031)

This reverts commit d0928eb.
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