chitralverma opened a new pull request, #9037:
URL: https://github.com/apache/opendal/pull/9037

   # Which issue does this PR close?
   
   Closes #9036.
   
   # Rationale for this change
   
   The `hdfs-native` writer supports multi-chunk and empty writes, but the 
service does not report `write_can_multi` or `write_can_empty`. Callers that 
check the flags treat it as a one-shot service, and 11 behavior tests return 
early.
   
   # What changes are included in this PR?
   
   - The service reports `write_can_multi` and `write_can_empty`.
   - `website/data/capabilities.json` is regenerated with `cargo run -- 
generate -l docs`.
   
   The hdfs-native behavior suite against MiniDFS from the `hdfs-native` 
repository passes 129 of 129 tests on main and on this branch. On this branch, 
the chunked-writer tests (`test_writer_write`, `test_writer_sink`, 
`test_writer_futures_copy`, their concurrent variants, 
`test_writer_return_metadata`, `test_writer_copy_from_interleaved` and 
`test_writer_write_with_if_not_exists`) and `test_write_with_empty_content` run 
their checks instead of returning early. `cargo clippy -p 
opendal-service-hdfs-native --all-targets -- -D warnings` and `cargo fmt --all 
-- --check` pass.
   
   # Are there any user-facing changes?
   
   `Operator::info().capability()` for `hdfs-native` reports `write_can_multi` 
and `write_can_empty`. The write behavior does not change.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Harness: Jcode
   - Model: Claude
   - Effort: default
   - Role: Found the missing flags while checking the service against the 
`hdfs-native` client, made the change, and ran the behavior suite and a write 
probe against MiniDFS. I reviewed the change and the results.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to