Skip to content

BlockCountExceedsLimit on azblob when uploading large files #5420

Answered by Xuanwo
BaurzhanSakhariev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, it looks like we didn't expose the chunk API to java side:

fn intern_construct_write(
env: &mut JNIEnv,
op: &mut BlockingOperator,
path: JString,
) -> crate::Result<jlong> {
let path = jstring_to_string(env, &path)?;
let writer = op.writer(&path)?;
Ok(Box::into_raw(Box::new(writer)) as jlong)
}

Instead, we expose a very small chunk 16KiB:

private static final int MAX_BYTES = 16384;
private final Writer writer;
private f…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BaurzhanSakhariev
Comment options

@BaurzhanSakhariev
Comment options

Answer selected by Xuanwo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants