Tracking Copier API

Open
#7,521 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
aws, azure, gcp, rust
Domain
cloud

Research direction

Start with RFC #7519 and the existing S3 multipart copier design, then review the completed phases listed in this issue. Compare the remaining services against their server-side copy capabilities and the constraints around copy_can_multi, chunk, and next(). Done means the applicable copier paths and capability behavior are implemented without exposing monitor state or emulating destination conditions.

Written by the indexing model from the issue text.

Description

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
Dominant language
Rust
Stars
5.5k
Forks
869
Avg merge
8h 2m
Merged PRs (30d)
862

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/opendal

All issues in apache/opendal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.