This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 2487b28acb docs(services/lakefs-s3): describe source If-Match
limitation (#9068)
2487b28acb is described below
commit 2487b28acbc8860c556b2aaac699df30a3e455a0
Author: Xuanwo <[email protected]>
AuthorDate: Wed Nov 25 20:15:30 2026 +0800
docs(services/lakefs-s3): describe source If-Match limitation (#9068)
---
core/services/s3/src/lakefs-s3.md | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/core/services/s3/src/lakefs-s3.md
b/core/services/s3/src/lakefs-s3.md
index a9fb95194c..a2f7029266 100644
--- a/core/services/s3/src/lakefs-s3.md
+++ b/core/services/s3/src/lakefs-s3.md
@@ -27,6 +27,28 @@ See [S3 object and prefix
examples](https://docs.lakefs.io/reference/python/boto
[temporary
credentials](https://docs.lakefs.io/security/s3-temporary-credentials/),
and [supported operations](https://docs.lakefs.io/reference/s3/).
+## Source ETag conditions
+
+The preset reports the capabilities of the shared S3 implementation. With
+local storage, lakeFS 1.88.0 can accept a stale source ETag on a ranged
+`GetObject` or `UploadPartCopy` request and return or copy the current bytes.
+This affects both reads and `Writer::copy_from_options`.
+
+To reject these calls before sending a request, set `read_with_if_match`
+to `false` on the operator. Reads and writer copies that specify `if_match`
+then return `ErrorKind::Unsupported`.
+
+```rust
+# fn guard(op: opendal_core::Operator) ->
opendal_core::Result<opendal_core::Operator> {
+use opendal_core::layers::CapabilityOverrideLayer;
+
+let op = op.layer(CapabilityOverrideLayer::from_overrides(
+ "read_with_if_match=false",
+)?);
+# Ok(op)
+# }
+```
+
## Example
```rust