-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 EntityTooSmall error in flush/compaction #2662
Comments
By default, if we only invoke |
However, this is returned by close... So it is invoking There is an issue in OpenDAL apache/opendal#3262 but not related to this issue, I guess. Updated: I find out the twcs compaction task sets the write buffer size to 4M. So it is possible to upload a part less than 5M. greptimedb/src/mito2/src/compaction/twcs.rs Lines 164 to 170 in 53a5864
|
I reproduced the case in this branch. I created some SSTs larger than the buffer size and then triggered compaction. |
OpenDAL provides native buffer support to prevent such issue by: let w = op.writer_with(path).buffer(8 * 1024 * 1024).await; By enable |
What type of bug is this?
Unexpected error
What subsystems are affected?
Datanode
What happened?
S3 returns
EntityTooSmall
while closing the writer in flush/compaction job.What operating system did you use?
Unrelated
Relevant log output and stack trace
How can we reproduce the bug?
Occasionally, not sure how to reproduce it exactly.
Maybe related to OpenDAL.
Some reference:
The text was updated successfully, but these errors were encountered: