Tracking Copier API

Aperta
#7,521 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
aws, azure, gcp, rust
Ambito
cloud

Direzione di ricerca

Inizia con RFC #7519 e il design esistente del copier multipart di S3, quindi esamina le fasi completate elencate in questa issue. Confronta i servizi rimanenti con le loro capacità di copia lato server e con i vincoli relativi a copy_can_multi, chunk e next(). Il lavoro è completato quando i percorsi applicabili del copier e il comportamento delle capacità sono implementati senza esporre lo stato del monitor né emulare le condizioni della destinazione.

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

Descrizione

core enhancement releases-note/feat services/azblob services/cos services/gcs services/obs services/onedrive services/oss services/s3

Summary

Track the remaining work for the Copier API proposed by RFC #7519.

Completed

  • RFC: #7519
  • Phase 1: API skeleton and one-shot compatibility: #7527
  • Phase 2: S3 multipart copier: #7541
  • Phase 3: GCS rewrite copier: #7545
  • Phase 4: Azure Blob block copier: #7551

Remaining tasks

Phase 5: S3-compatible standalone services

OSS native multipart copy landed in #9090. COS native multipart copy landed in #9093. Native OBS still needs a service fixture.

  • Evaluate whether cos, oss, and obs can share or adapt the existing S3 multipart copier design.
  • Implement multipart copy for services that expose compatible upload-part-copy APIs.
  • Add service-specific copy multi capabilities only after the protocol path is implemented.

Phase 6: Monitor-based copy services

  • OneDrive copy evaluated. Keep OneShotCopier and its internal polling of the Graph monitor URL. Graph reports a completion percentage. The documentation does not establish how many bytes each Copier::next() call could report. Revisit incremental progress when a caller needs it and a live OneDrive copy can verify those byte counts. This evaluation used source and provider documentation. OneDrive implementation · Graph copy API (AI-generated evaluation.)
  • If useful, implement a stateful copier that stores the monitor URL and advances on next() instead of blocking inside copy.
  • Do not expose provider monitor tokens in the public API.

Phase 7: Remaining one-shot copy services

  • Keep plain one-shot services as-is unless the backend exposes a real long-running or segmented server-side copy primitive.
  • Do not add copy_can_multi for client-mediated local copies or provider APIs that only support one-shot copy.

Constraints

  • Keep backend continuation state internal.
  • Do not emulate atomic destination conditions such as if_not_exists with stat plus unconditional copy.
  • Prefer backend-native server-side copy primitives over client-mediated read plus write.
  • Use copy_can_multi only when users can actively request segmented server-side copy through chunk.

References

  • RFC PR: #7519
Lingua principale
Rust
Stelle
5.5k
Fork
869
Merge medio
8h 2m
PR unite (30g)
862

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 apache/opendal

Tutte le issue di apache/opendal

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.