Skip to content
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

Fix remove deleted files from cache #1304

Merged

Conversation

tdrwenski
Copy link
Member

@tdrwenski tdrwenski commented Feb 7, 2024

This addresses a possible problem with the fix from #1268. The goal there was to cleanup deleted files from the cache, since some users had issues deleting files that were locked by the RandomAccessFile cache. However, that change affected both that and the NetcdfFile cache, where a location can be a file path or a url path (say for an aggregation). Since the url path doesn't point to an existing file it will always remove that from the cache. Here I propose fixing this by having a flag that can be turned on for the RandomAccessFile cache but off for other caches. Update to TDS in Unidata/tds#463.

…be applied to the RandomAccessFile cache but not NetcdfFile cache
@tdrwenski tdrwenski marked this pull request as ready for review February 7, 2024 22:45
@haileyajohnson haileyajohnson merged commit aee6726 into Unidata:maint-5.x Feb 7, 2024
10 checks passed
@tdrwenski tdrwenski deleted the fix-deleted-file-cleanup branch February 7, 2024 23:19
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.

None yet

2 participants