Repository navigation
Local datasets: index files copied without a manifest - #163
Merged
Merged
Conversation
The startup preload (LoadManifestMetadata) only read existing json manifests: a file copied into a new local dataset directory (GEBCO_2026) got an empty catalog, saved to globalmanifest.bin and trusted on every restart, so every request failed with "no coverage for provided bounding box". - When globalmanifest.bin is missing or empty, local datasets generate the missing manifests before building the catalog (header read only). A valid or stale index never triggers that scan. - An empty index on disk is rebuilt instead of trusted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes
Dataset GEBCO_2026 has no coverage for provided bounding boxafter GEBCO_2026 (#162) is deployed.The WebAPI's startup preload calls
RasterService.LoadManifestMetadata, which only read existingmanifest/*.jsonfiles. A raster copied by hand into a new local dataset directory has no manifest yet, so the preload built an empty catalog, cached it and saved it toglobalmanifest.bin. That empty index was accepted as valid on every restart.globalmanifest.binis missing or empty, local datasets generate the missing manifests before building the catalog (only the file header is read, fast even for the 3.3 GB GEBCO_2026 COG). A valid index never triggers this scan, nor does a stale-index rebuild, so large datasets with thousands of files are not scanned again.Tests
Gebco2026Tests.PreloadIndexesAFileWithoutManifest: preload first, then a height map over the file. Failed before the fix.Gebco2026Tests.EmptyIndexOnDiskIsRebuilt: an empty index saved before the file was copied is rebuilt after a restart. Failed before the fix.ImageryTests.ImageryProviderTestfailures need the ThunderForest API key and fail on master too.🤖 Generated with Claude Code