Abort Zarr tiles that leave the view once zarrita releases the shared-request abort fix

Aperta
#889 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start in packages/deck.gl-zarr where ZarrLayer lives, and read it beside COGLayer/MultiCOGLayer in packages/deck.gl-cog, which already override _abortUnwantedLoads() to return true. Then bump the zarrita range from ^0.7.5 in packages/deck.gl-zarr and the aef-mosaic, nldas-icechunk, zarr-globe, dynamical-zarr-ecmwf and experimental/onnx-embeddings example manifests once a release containing manzt/zarrita.js#477 is out. Done means a fast pan in dynamical-zarr-ecmwf shows no blank selected tiles and no unhandled AbortErrors; the maxRequests/debounceTime defaults are a judgment call gated on #855.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

zarr

[!NOTE]
This issue was written by Claude (Claude Code), not by @kylebarron.

manzt/zarrita.js#477 (merged 2026-11-19) fixes manzt/zarrita.js#465: aborting one zarr.get() no longer fails other reads that share its request. That covers reads in the same shard, which share one shard-index fetch, and reads that withRangeCoalescing merges into one fetch. A shared fetch is now cancelled only once every read waiting on it has aborted.

The fix isn't released yet. The latest zarrita is 0.7.6 (2026-11-15). This issue tracks picking it up once a release that has it is out.

Why it matters here

ZarrLayer makes one zarr.get() per tile and passes that tile's signal. With a sharded array, many tiles wait on one index fetch, so a tile that left the view could fail its neighbours with AbortErrors. Because of that, ZarrLayer keeps RasterTileLayer's defaults: _abortUnwantedLoads() returns false, and it uses deck.gl's limit of 6 requests at a time. The COG layers turn aborting on and use maxRequests: 256 and debounceTime: 50.

To do once the release is out

  • Raise the zarrita range from ^0.7.5 to the fixed version in packages/deck.gl-zarr and the examples (aef-mosaic, nldas-icechunk, zarr-globe, dynamical-zarr-ecmwf, experimental/onnx-embeddings).
  • Have ZarrLayer override _abortUnwantedLoads() to return true, as COGLayer and MultiCOGLayer do.
  • Consider maxRequests: 256 and debounceTime: 50 as ZarrLayer defaults, as in COGLayer. This makes sense only if the request limit can be left to the store. Without the range reader (#855) a plain FetchStore has no per-origin limit.
  • Check dynamical-zarr-ecmwf with a fast pan: no blank selected tiles and no unhandled AbortErrors in the console.

Effect on #855

#855 plans for a source opened from an app-built store to keep today's behaviour, and only a source opened from a URL to abort tiles. The reason given is the cancellation bug. Once this lands, that split isn't needed for cancellation. The range reader is still worth adding for merged requests, a shared cache and a per-origin request limit.

🤖 Written by Claude Code

Lingua principale
TypeScript
Stelle
240
Fork
34
Merge medio
17h 24m
PR unite (30g)
62

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di developmentseed/deck.gl-raster

Tutte le issue di developmentseed/deck.gl-raster

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.