This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch xuanwo/read-metadata-api
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/xuanwo/read-metadata-api by
this push:
new 5fbb981d9 fix(object_store): document read metadata fallback
5fbb981d9 is described below
commit 5fbb981d9a6cf8772ab30a5e5db86fca2ff99e63
Author: Xuanwo <[email protected]>
AuthorDate: Wed May 27 20:09:08 2026 +0800
fix(object_store): document read metadata fallback
---
integrations/object_store/src/store.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/integrations/object_store/src/store.rs
b/integrations/object_store/src/store.rs
index 408adbd61..e336b8cf0 100644
--- a/integrations/object_store/src/store.rs
+++ b/integrations/object_store/src/store.rs
@@ -117,6 +117,8 @@ fn format_read_range(range: Option<&GetRange>, size: u64)
-> Range<u64> {
fn format_without_stat_error(err: opendal::Error, path: &str) ->
object_store::Error {
match err.kind() {
+ // Ask get_opts to fall back to the stat path when read-open can't
provide
+ // enough metadata to build a valid GetResult, such as ranges beyond
EOF.
opendal::ErrorKind::Unsupported |
opendal::ErrorKind::RangeNotSatisfied => {
object_store::Error::NotSupported {
source: Box::new(err),