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 58a8aec68a fix(services/hdfs-native): report write_can_multi and 
write_can_empty (#9037)
58a8aec68a is described below

commit 58a8aec68adf99fa4dee581425fb0858f0e28b5a
Author: Chitral Verma <[email protected]>
AuthorDate: Wed Nov 25 05:19:42 2026 +0530

    fix(services/hdfs-native): report write_can_multi and write_can_empty 
(#9037)
    
    The writer streams each buffer to the open HDFS file, and closing a writer
    with no data creates an empty file. Report both capabilities so callers
    can stream in chunks and the behavior suite runs the chunked-writer and
    empty-write tests.
---
 core/services/hdfs-native/src/backend.rs | 2 ++
 website/data/capabilities.json           | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/core/services/hdfs-native/src/backend.rs 
b/core/services/hdfs-native/src/backend.rs
index da4d2c245f..a3deae601b 100644
--- a/core/services/hdfs-native/src/backend.rs
+++ b/core/services/hdfs-native/src/backend.rs
@@ -127,6 +127,8 @@ impl Builder for HdfsNativeBuilder {
                     read: true,
 
                     write: true,
+                    write_can_multi: true,
+                    write_can_empty: true,
                     write_can_append: true,
                     write_with_if_not_exists: true,
 
diff --git a/website/data/capabilities.json b/website/data/capabilities.json
index b36f56488e..d355d662c3 100644
--- a/website/data/capabilities.json
+++ b/website/data/capabilities.json
@@ -1390,6 +1390,8 @@
         "stat": true,
         "write": true,
         "write_can_append": true,
+        "write_can_empty": true,
+        "write_can_multi": true,
         "write_with_if_not_exists": true
       }
     },

Reply via email to