Skip to content

Refactor segmentLocalCacheManager#18494

Merged
FrankChen021 merged 3 commits into
apache:masterfrom
GWphua:refactor-segmentLocalCacheManager
Oct 22, 2025
Merged

Refactor segmentLocalCacheManager#18494
FrankChen021 merged 3 commits into
apache:masterfrom
GWphua:refactor-segmentLocalCacheManager

Conversation

@GWphua

@GWphua GWphua commented Sep 7, 2025

Copy link
Copy Markdown
Contributor

Description

Refactor SegmentLocalCacheManager

Refactor getCachedSegments() by extracting 2 functions:

  • retrieveSegmentMetadataFiles()
  • addFilesToCachedSegments()

Added AtomicInteger to pass by reference and count ignored number of files.

This PR is created to ensure changes in #18489 are easier to review.

Release note


Key changed/added classes in this PR
  • SegmentLocalCacheManager.java

This PR has:

  • been self-reviewed.

@GWphua GWphua mentioned this pull request Sep 7, 2025
7 tasks
@GWphua
GWphua requested a review from kfaraz September 7, 2025 06:44
@GWphua

GWphua commented Sep 19, 2025

Copy link
Copy Markdown
Contributor Author

Hi @kfaraz, can you take a look at this, and highlight any concerns, so that further change requests to #18489 is easier for your review when I'm back from my break?

FYI: #18489 (comment)

@FrankChen021
FrankChen021 merged commit 0988157 into apache:master Oct 22, 2025
123 of 126 checks passed
@kgyrtkirk kgyrtkirk added this to the 36.0.0 milestone Jan 19, 2026
riovic918data pushed a commit to riovic918data/druid that referenced this pull request Jun 12, 2026
* Refactor segmentLocalCacheManager

* Try catch for addFilesToCachedSegments
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