GitHub user Xuanwo added a comment to the discussion: BlockCountExceedsLimit on 
azblob when uploading large files

Hi, it looks like we didn't expose the `chunk` API to java side: 
https://github.com/apache/opendal/blob/e9df3ebf832317a3d732c61e0e9e6733f8b91325/bindings/java/src/operator_output_stream.rs#L44-L52

Instead, we expose a very small chunk `16KiB`: 
https://github.com/apache/opendal/blob/e9df3ebf832317a3d732c61e0e9e6733f8b91325/bindings/java/src/main/java/org/apache/opendal/OperatorOutputStream.java#L38-L41

We will need to expose 
https://docs.rs/opendal/0.50.2/opendal/operator_functions/struct.FunctionWriter.html#method.chunk
 to java side so that you can configure it to 8MiB or 16MiB instead.

Also cc @tisonkun @G-XD for ideas.

GitHub link: 
https://github.com/apache/opendal/discussions/5420#discussioncomment-11583389

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to