opendatacube / datacube-core

Open Data Cube analyses continental scale Earth Observation data through time
http://www.opendatacube.org
Apache License 2.0
509 stars 177 forks source link

Fix race condition initialising ODCEnvironment objects #1596

Closed SpacemanPaul closed 3 months ago

SpacemanPaul commented 3 months ago

Reason for this pull request

ODCEnvironment do not actually read from config at creation time. The actual reading of config has be deferred until after environment aliases have been processed, but this creates a race condition in multi-threaded environments.

Proposed changes

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 85.43%. Comparing base (bcd71a2) to head (dc13fab). Report is 33 commits behind head on develop-1.9.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop-1.9 #1596 +/- ## ============================================ Coverage 85.43% 85.43% ============================================ Files 140 140 Lines 15493 15496 +3 ============================================ + Hits 13236 13239 +3 Misses 2257 2257 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.