Skip to content

[server] Fix tmp file cleanup in remote log index cache init#3755

Open
fresh-borzoni wants to merge 1 commit into
apache:mainfrom
fresh-borzoni:remote-index-cache-tmp-cleanup
Open

[server] Fix tmp file cleanup in remote log index cache init#3755
fresh-borzoni wants to merge 1 commit into
apache:mainfrom
fresh-borzoni:remote-index-cache-tmp-cleanup

Conversation

@fresh-borzoni

Copy link
Copy Markdown
Member

closes #3754

The .tmp cleanup in RemoteLogIndexCache.init() never fires, Path.endsWith(".tmp") compares path elements, not filename suffixes. Use the filename string instead, so orphaned partial downloads are actually deleted on startup.

@fresh-borzoni
fresh-borzoni force-pushed the remote-index-cache-tmp-cleanup branch from 62e60c9 to 7e38705 Compare July 23, 2026 17:06
@fresh-borzoni
fresh-borzoni force-pushed the remote-index-cache-tmp-cleanup branch from 7e38705 to 1fa430b Compare July 23, 2026 17:08
@fresh-borzoni

Copy link
Copy Markdown
Member Author

@zuston Can you help to review, please?

@zuston zuston left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice catch! LGTM. @fresh-borzoni

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.

[server] Fix tmp file cleanup in remote log index cache init

2 participants