Skip to content

Clean up deep storage after index parallel merge finishes #19187

Open
GWphua wants to merge 10 commits intoapache:masterfrom
GWphua:clean-up-deepstore
Open

Clean up deep storage after index parallel merge finishes #19187
GWphua wants to merge 10 commits intoapache:masterfrom
GWphua:clean-up-deepstore

Conversation

@GWphua
Copy link
Contributor

@GWphua GWphua commented Mar 20, 2026

Fixes #19163

Description

In the context of multi-phase index_parallel tasks, intermediary files created onto deep storage are not being cleaned up.

Fixed the issue by triggering deepstore intermediary-data cleanup from the supervisor task after the merge in phase 2 completes.

Release note

Introduced a mechanism to automatically clean up intermediary files on Deep Storage.


Key changed/added classes in this PR
  • ParallelIndexSupervisorTask

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

* may be null or empty if phase 1 produced no output.
*/
@VisibleForTesting
static void cleanupDeepStorageShuffleData(
Copy link
Member

Choose a reason for hiding this comment

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

is the dir deleted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parallel indexing with deepstore intermediary data does not clean up shuffle-data in deep storage

2 participants