new feature: expose full-file checksum metadata and options in generated bindings
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
- 38/100
Direzione di ricerca
Start with dev/src/generate/metadata.rs, dev/src/generate/core_options.rs, and the checksum handling in dev/src/generate/java.rs, then compare them with the core types under core/core/src/types/. Run the existing binding-generation workflow and review the resulting mirrors. Done means generated bindings expose metadata checksum values and the agreed read, reader, stat, and write checksum options, with maintainer decisions documented for Python compatibility and write digests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Drafted with AI assistance and reviewed by the submitter.
Feature Description
Expose core's full-file checksum in the bindings: Metadata::checksum, the checksum hint on StatOptions, ReadOptions, and ReaderOptions, and WriteOptions::checksum (WriteChecksum).
Problem and Solution
Core is complete (#9182). dev/src/generate/metadata.rs marks checksum as binding-specific, so each binding maps Checksum itself. dev/src/generate/core_options.rs skips WriteOptions::checksum.
Binding state:
- Python:
stat(checksum=True)andMetadata.checksumas(algorithm, digest bytes)orNone(#9328).write()andopen()takechecksum: ChecksumAlgorithm, which maps toWriteChecksum::Algoonly (#9231). - .NET: forwards the
ReadOptionsandStatOptionshints. It has noMetadatachecksum, so the hints have no visible effect. - Java: the JNI layer always sends
checksum: false. - Other bindings: no checksum surface.
No core change is necessary. Each binding adds, in this order:
- A
Metadatachecksum: the algorithm name and the raw digest bytes, with the Python names (crc32c,crc64nvme,crc64ecma,md5,sha1,sha256). - The
stathint. - The write intent. If
write()returnsMetadata, the caller also gets the verified digest.
Skip the read and reader hints in a binding that has no reader metadata. The hint does not verify data, so it has no visible effect there.
Open question: does a binding expose Any, Fast, and Expected, or only Algo? #9231 deferred Expected until a caller needs it. Proposal for Python and Node.js: accept an algorithm name, "any", "fast", or an (algorithm, digest) value with the same shape as Metadata.checksum.
Progress
- Python:
(algorithm, digest)and"any"write intents (#9459) - Node.js:
Metadata.checksum, thestathint, and write intents (#9460) - Java
- .NET:
Metadatachecksum (the read and stat hints exist) - C and Go (#9323)
- C++ (#9324)
Additional Context
Related: #9182, #9231, #9328, #9320.
Are you willing to contribute to the development of this feature?
- Yes, I am willing to contribute to the development of this feature.
- Lingua principale
- Rust
- Stelle
- 5.5k
- Fork
- 869
- Merge medio
- 8h 2m
- PR unite (30g)
- 862
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/opendal
-
bug(services/fs): deleting "/" removes the configured root directoryForse già presa @xgbtxy l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
apache/opendal#9635 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
core enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
apache/opendal#9572 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
fix(bindings/nodejs): reject negative and overflowing BigInt values in WriteOptions.chunk and Read/ReaderOptions.gapForse già presa @rohan4naik l’ha presa oggi. Apertabindings/nodejs bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
apache/opendal#9569 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug(layers/throttle): throttle streaming ReadStream bytes instead of pre-charging ReadOptions::limit upper bounds on open()Forse già presa @Xuanwo l’ha presa oggi. Apertabug core
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
apache/opendal#9567 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bindings/c bindings/dotnet bindings/go bindings/java bindings/python bindings/ruby core integrations/object_store release release-blocker services/azblob services/azdls services/dropbox services/gcs_grpc services/git services/hf3fs services/redis services/remotestorage services/s3 website
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
apache/opendal#9560 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/opendal
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Choochmeque/tauri-plugin-webdriver#134 ·
I maintainer di solito rispondono entro 17 giorni
-
bug(c-sdk): boxlite_box_exec does not check runtime liveness before dispatching streaming execApertabug rust SDK & CLI & REST API
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
boxlite-ai/boxlite#3292 ·
I maintainer di solito rispondono entro 1 giorno
-
Android bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anefzaoui/misterdownloadmanager#2516 ·
I maintainer di solito rispondono entro 1 giorno
-
editor ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
state:triage tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 89/100
agent8-cash/ethpayserver#731 ·
I maintainer di solito rispondono entro 1 giorno