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 ce9f282050 docs: clarify when Rust ReaderOptions reads report storage 
errors (#9386)
ce9f282050 is described below

commit ce9f28205099dce51a587090625a88faf087ca9f
Author: Xuanwo <[email protected]>
AuthorDate: Mon Nov 30 01:29:45 2026 +0800

    docs: clarify when Rust ReaderOptions reads report storage errors (#9386)
---
 core/core/src/types/options.rs |  3 +--
 dev/src/generate/c/options.rs  |  7 +++----
 dev/src/generate/cpp.rs        | 11 +++++++----
 dev/src/generate/nodejs.rs     |  5 ++---
 4 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/core/core/src/types/options.rs b/core/core/src/types/options.rs
index 7cb16ba1e5..808b1bb6af 100644
--- a/core/core/src/types/options.rs
+++ b/core/core/src/types/options.rs
@@ -403,8 +403,7 @@ pub struct ReadOptions {
 /// not advertise through its capability returns
 /// [`crate::ErrorKind::Unsupported`]; OpenDAL never silently drops a
 /// condition. Creating the reader checks the options and capabilities
-/// without accessing storage, so a missing file or a failed condition
-/// surfaces when reading from it.
+/// without accessing storage.
 ///
 /// See the [conditional operation 
specification][crate::docs::specs::conditional_operations]
 /// for the complete cross-operation contract.
diff --git a/dev/src/generate/c/options.rs b/dev/src/generate/c/options.rs
index aeb50279e0..3bd394c20c 100644
--- a/dev/src/generate/c/options.rs
+++ b/dev/src/generate/c/options.rs
@@ -301,8 +301,7 @@ const RELEASED_OPTIONS: &[OptionsSpec] = &[
         rewrites: &[
             Rewrite {
                 core: "Creating the reader checks the options and 
capabilities\n\
-                       without accessing storage, so a missing file or a 
failed condition\n\
-                       surfaces when reading from it.",
+                       without accessing storage.",
                 c: "Without a positive `chunk`, or with `content_length_hint` 
set,\n\
                     `opendal_operator_reader_with()` checks the options and 
capabilities without\n\
                     accessing storage, so a missing file or a failed condition 
surfaces when a\n\
@@ -1560,7 +1559,7 @@ mod tests {
             ],
             ("ReaderOptions", Lang::C) => &[
                 (
-                    "Creating the reader checks the options and 
capabilities\nwithout accessing storage, so a missing file or a failed 
condition\nsurfaces when reading from it.",
+                    "Creating the reader checks the options and 
capabilities\nwithout accessing storage.",
                     "Without a positive `chunk`, or with `content_length_hint` 
set, `opendal_operator_reader_with()` checks the options and capabilities 
without accessing storage, so a missing file or a failed condition surfaces 
when a read from the returned reader reaches storage. With a positive `chunk` 
and no `content_length_hint`, it first stats the file, so either can fail 
`opendal_operator_reader_with()` instead. `opendal_reader_seek()` with 
`OPENDAL_SEEK_END` also stats the file u [...]
                 ),
                 (
@@ -1578,7 +1577,7 @@ mod tests {
             ],
             ("ReaderOptions", Lang::Go) => &[
                 (
-                    "Creating the reader checks the options and 
capabilities\nwithout accessing storage, so a missing file or a failed 
condition\nsurfaces when reading from it.",
+                    "Creating the reader checks the options and 
capabilities\nwithout accessing storage.",
                     "Without a positive `chunk`, or with `content_length_hint` 
set, `Operator.Reader` checks the options and capabilities without accessing 
storage, so a missing file or a failed condition surfaces when a read from the 
returned `Reader` reaches storage. With a positive `chunk` and no 
`content_length_hint`, it first stats the file, so either can fail 
`Operator.Reader` instead. `Reader.Seek` with `io.SeekEnd` also stats the file 
unless the `Reader` knows the file's length,  [...]
                 ),
                 (
diff --git a/dev/src/generate/cpp.rs b/dev/src/generate/cpp.rs
index 56f9f701a2..7e0a3685bd 100644
--- a/dev/src/generate/cpp.rs
+++ b/dev/src/generate/cpp.rs
@@ -705,8 +705,7 @@ const OPTIONS: &[OptionsSpec] = {
             cpp_rewrites: &[
                 (
                     "Creating the reader checks the options and capabilities 
without \
-                     accessing storage, so a missing file or a failed 
condition surfaces \
-                     when reading from it.",
+                     accessing storage.",
                     "Unless `content_length_hint` is set, 
`opendal::Operator::GetReader` \
                      first stats the file to learn its length. That stat 
carries `version` \
                      and the conditions, so a missing file or a failed 
condition fails \
@@ -1800,7 +1799,7 @@ single byte range, so `gap` has no effect.",
         ),
         (
             "ReaderOptions",
-            "Creating the reader checks the options and capabilities without 
accessing storage, so a missing file or a failed condition surfaces when 
reading from it.",
+            "Creating the reader checks the options and capabilities without 
accessing storage.",
             "Unless `content_length_hint` is set, 
`opendal::Operator::GetReader` first stats the file to learn its length. That 
stat carries `version` and the conditions, so a missing file or a failed 
condition fails `GetReader`, and each of them also needs its stat capability, 
such as [`crate::Capability::stat_with_if_modified_since`] for 
`if_modified_since`; otherwise `GetReader` fails with 
[`crate::ErrorKind::Unsupported`]. With `content_length_hint` set, `GetReader` 
checks the option [...]
         ),
         (
@@ -2572,7 +2571,11 @@ single byte range, so `gap` has no effect.",
         // struct doc (`None`) or a member doc.
         let reader = OPTIONS.iter().find(|s| s.name == 
"ReaderOptions").unwrap();
         let rewordings = [
-            (None, "surfaces when reading from it.", "surfaces later."),
+            (
+                None,
+                "without accessing storage.",
+                "without contacting storage.",
+            ),
             (Some("version"), "before using this", "before you use this"),
             (
                 Some("if_match"),
diff --git a/dev/src/generate/nodejs.rs b/dev/src/generate/nodejs.rs
index a7b4289aa9..34dd672c04 100644
--- a/dev/src/generate/nodejs.rs
+++ b/dev/src/generate/nodejs.rs
@@ -400,8 +400,7 @@ const READER_OPTIONS: JsOptions = JsOptions {
         (
             concat!(
                 "Creating the reader checks the options and capabilities\n",
-                "without accessing storage, so a missing file or a failed 
condition\n",
-                "surfaces when reading from it.",
+                "without accessing storage.",
             ),
             concat!(
                 "Without a positive `chunk`, `reader()` and `readerSync()` 
check the\n",
@@ -2286,7 +2285,7 @@ mod tests {
                 ),
                 (
                     "Creating the reader checks the options and capabilities 
without accessing \
-                     storage, so a missing file or a failed condition surfaces 
when reading from it.",
+                     storage.",
                     "Without a positive `chunk`, `reader()` and `readerSync()` 
check the options and \
                      capabilities without accessing storage, so a missing file 
or a failed condition \
                      surfaces when reading from the returned reader. With a 
positive `chunk`, they \

Reply via email to