8000 Properly handle `partition_transformer` shutdown by IyeOnline · Pull Request #5301 · tenzir/tenzir · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Properly handle partition_transformer shutdown #5301

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

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

IyeOnline
Copy link
Contributor
@IyeOnline IyeOnline commented Jun 24, 2025

The index actor keeps track of all currently running partition_transformers and properly shuts them down.

Copy link
github-actions bot commented Jun 24, 2025

📚 Documentation Preview

🧹 Preview deployment has been cleaned up

The documentation preview for this PR has been removed since the PR was closed.

@IyeOnline IyeOnline force-pushed the topic/index-actor-shutdown branch from cc6f0f2 to 9f8cba4 Compare June 24, 2025 15:47
@IyeOnline IyeOnline added the bug Incorrect behavior label Jun 24, 2025
@IyeOnline IyeOnline changed the title Properly handle partition_transformer` shutdown Properly handle partition_transformer shutdown Jun 24, 2025
@IyeOnline IyeOnline force-pushed the topic/index-actor-shutdown branch from 9f8cba4 to 1bedfb2 Compare June 24, 2025 17:52
@dominiklohmann dominiklohmann requested a review from Copilot June 27, 2025 12:06
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the shutdown process for partition transformers by adding monitoring and active management of those actors, ensuring a graceful and parallel shutdown to avoid hangs.

  • Adds registration and monitoring of partition_transformer actors in the index state.
  • Implements a new shutdown procedure that disposes monitors and shuts down all active transformers.
  • Updates the changelog to document the shutdown hang fix.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
libtenzir/src/index.cpp Introduces monitoring and parallel shutdown for partition transformers.
libtenzir/include/tenzir/index.hpp Adds active_transformers map with detailed documentation for transformer actors.
changelog/changes/centre-backed-agree.md Documents the bugfix for the shutdown hang in partition rebuild scenarios.
Comments suppressed due to low confidence (1)

libtenzir/src/index.cpp:1560

  • The variable 'partition_transfomer' appears to be misspelled; consider renaming it to 'partition_transformer' for clarity.
                      std::move(partition_synopsis_path_template));

The index actor keeps track of all currently running
`partition_transformer`s and properly shuts them down.
@IyeOnline IyeOnline force-pushed the topic/index-actor-shutdown branch from 1bedfb2 to 8976f8b Compare June 27, 2025 12:25
@IyeOnline IyeOnline enabled auto-merge June 27, 2025 12:26
@IyeOnline IyeOnline merged commit 67b9554 into main Jun 30, 2025
60 checks passed
@IyeOnline IyeOnline deleted the topic/index-actor-shutdown branch June 30, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0