Skip to content

Local datasets: index files copied without a manifest - #163

Merged
xfischer merged 1 commit into
masterfrom
fix/local-dataset-manifests
Nov 23, 2026
Merged

xfischer merged 1 commit into
masterfrom
fix/local-dataset-manifests

Conversation

@xfischer

Copy link
Copy Markdown
Member

Summary

Fixes Dataset GEBCO_2026 has no coverage for provided bounding box after GEBCO_2026 (#162) is deployed.

The WebAPI's startup preload calls RasterService.LoadManifestMetadata, which only read existing manifest/*.json files. 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 to globalmanifest.bin. That empty index was accepted as valid on every restart.

  • When globalmanifest.bin is 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.
  • An empty index on disk is rebuilt instead of trusted, so a server that already saved one recovers on the next start, with no manual cleanup.

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.
  • Full suite: 275 passed; the 13 ImageryTests.ImageryProviderTest failures need the ThunderForest API key and fail on master too.

🤖 Generated with Claude Code

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>
@xfischer
xfischer merged commit be38220 into master Nov 23, 2026
2 checks passed
@xfischer
xfischer deleted the fix/local-dataset-manifests branch November 23, 2026 20:51
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.

1 participant