-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
COS: Fix tools replicate #5166
COS: Fix tools replicate #5166
Conversation
8e3b658
to
e66d927
Compare
docs check fail, it will fixed by #5167 (: |
Can you please rebase main? The doc should be fixed already on main. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like https://github.com/thanos-io/thanos/pull/4687/files is overlapped with this pr.
a2d07a2
to
6d55947
Compare
Thank you reviewing. 🚀 Rebase Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
…dCloser Signed-off-by: Jimmie Han <hanjinming@outlook.com>
Signed-off-by: Jimmie Han <hanjinming@outlook.com>
6d55947
to
ad72427
Compare
@yeya24 some e2e test is flaky, I retry it. Please review again, thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
98d6fb3
to
4100da5
Compare
* objstore: fix TryToGetSize err when the reader wrappered by TimingReadCloser Signed-off-by: Jimmie Han <hanjinming@outlook.com> * COS: Add size info into reader for pass it to Upload function. Signed-off-by: Jimmie Han <hanjinming@outlook.com> * Fix typo Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com> Signed-off-by: Jimmie Han <hanjinming@outlook.com> Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com> Signed-off-by: Nicholaswang <wzhever@gmail.com>
Fix issue reported by @wu3396 (#5139 (comment) ), pr #5139 introduce multi-part upload, it uses TryToGetSize to get the size of
reader
, but it will error when the reader is wrapped by TimingReadCloser. this pr continue to fix it.TryToGetSize
error when the reader wrappered byTimingReadCloser
, It will also fixcos/s3/bos/swift
get size error when useobjstore.TryToGetSize(r)
.(*bucket).Get
for pass it to(*bucket).Upload
function.Signed-off-by: Jimmie Han hanjinming@outlook.com
Changes
Verification
thanos tool replicate
to reproduce the issue and verify.