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

DM-36918: Protect against the new cache file being deleted before it can be registered #750

Merged
merged 5 commits into from Nov 8, 2022

Conversation

timj
Copy link
Member

@timj timj commented Nov 7, 2022

This usually means that the cache size is too small for the number of processes writing to the cache.

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

…istered

This usually means that the cache size is too small for the number
of processes writing to the cache.
@timj timj requested a review from czwa November 7, 2022 23:43
x : T = None

should be written as

x : T | None = None
mypy now seems to understand hasattr checks so does not
complain if you check for an attribute and then use that attribute.
@codecov
Copy link

codecov bot commented Nov 8, 2022

Codecov Report

Base: 85.29% // Head: 85.30% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (3f87489) compared to base (eeb583e).
Patch coverage: 93.02% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #750   +/-   ##
=======================================
  Coverage   85.29%   85.30%           
=======================================
  Files         260      260           
  Lines       34348    34375   +27     
  Branches     5800     5803    +3     
=======================================
+ Hits        29298    29323   +25     
  Misses       3815     3815           
- Partials     1235     1237    +2     
Impacted Files Coverage Δ
python/lsst/daf/butler/_butler.py 79.76% <ø> (ø)
python/lsst/daf/butler/_butlerConfig.py 100.00% <ø> (ø)
python/lsst/daf/butler/core/datasets/ref.py 81.96% <ø> (ø)
python/lsst/daf/butler/core/datastore.py 79.67% <ø> (ø)
...hon/lsst/daf/butler/datastores/chainedDatastore.py 88.01% <ø> (ø)
python/lsst/daf/butler/datastores/fileDatastore.py 81.35% <ø> (ø)
...butler/registry/datasets/byDimensions/summaries.py 96.20% <ø> (ø)
...thon/lsst/daf/butler/core/datastoreCacheManager.py 80.39% <57.14%> (-0.56%) ⬇️
python/lsst/daf/butler/core/named.py 85.78% <100.00%> (+1.86%) ⬆️
python/lsst/daf/butler/core/storageClass.py 93.93% <100.00%> (-0.56%) ⬇️
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

mypy worked out that the no-arg version was never going to
work because the parent implementation was abstract. We could
not use MutableSet directly so implemented it in a similar way.
Tests were added.
@timj timj merged commit 2406860 into main Nov 8, 2022
@timj timj deleted the tickets/DM-36918 branch November 8, 2022 20:57
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