Uh oh!
There was an error while loading. Please reload this page.
branch-4.0: [fix](filecache) avoid recursive empty dir cleanup - #63728
branch-4.0: [fix](filecache) avoid recursive empty dir cleanup#63728liaoxin01 wants to merge 1 commit into
Conversation
hello-stephen
commented
May 27, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
There was a problem hiding this comment.
Pull request overview
This PR updates local file cache cleanup to avoid recursively deleting cache directories, using an empty-directory-only removal path instead.
Changes:
- Adds
LocalFileSystem::delete_empty_directory()implemented withrmdir. - Uses empty-directory deletion during file cache block removal.
- Adds unit coverage for deleting empty vs non-empty local directories.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
be/src/io/fs/local_file_system.h | Declares the empty-directory deletion API. |
be/src/io/fs/local_file_system.cpp | Implements non-recursive empty directory removal. |
be/src/io/cache/fs_file_cache_storage.cpp | Switches file cache cleanup to delete directories only when empty. |
be/test/io/fs/local_file_system_test.cpp | Adds tests for empty and non-empty directory deletion behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
liaoxin01
commented
May 27, 2026
run buildall |
hello-stephen
commented
May 27, 2026
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
May 27, 2026
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
### What problem does this PR solve? Issue Number: close#63728 Problem Summary: FE depends on JDK 17 for compilation (parent pom set `maven.compiler.source/target=17` since PR #62221), but fe-core's `maven-compiler-plugin` still had `<release>8</release>` as a leftover from PR #41417. This caused FE unit tests using JDK 17 APIs (e.g., `Random.nextLong(long)`) to fail at compile time. Additionally, `PatternDescribableProcessor` declared `@SupportedSourceVersion(SourceVersion.RELEASE_8)`, which is inconsistent with the JDK 17 compilation target.
Pick #63344