Skip to content

Commit

Permalink
fix(index): sanitize S3 upload buffer size (#3300)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenchi <[email protected]>
  • Loading branch information
zhongzc authored Feb 16, 2024
1 parent 31ace9d commit 34050ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mito2/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}
Expand Down

0 comments on commit 34050ea

Please sign in to comment.