fix(index): sanitize S3 upload buffer size (#3300)

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
This commit is contained in:
Zhenchi
2024-02-16 14:45:31 +08:00
committed by GitHub
parent 31ace9dd5c
commit 34050ea8b5

View File

@@ -294,6 +294,14 @@ impl InvertedIndexConfig {
self.intermediate_path = join_dir(data_home, "index_intermediate");
}
if self.write_buffer_size < MULTIPART_UPLOAD_MINIMUM_SIZE {
self.write_buffer_size = MULTIPART_UPLOAD_MINIMUM_SIZE;
warn!(
"Sanitize index write buffer size to {}",
self.write_buffer_size
);
}
Ok(())
}
}