-
Notifications
You must be signed in to change notification settings - Fork 312
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
Refactor mirror command #860
Conversation
Codecov Report
@@ Coverage Diff @@
## master #860 +/- ##
==========================================
- Coverage 53.16% 51.40% -1.76%
==========================================
Files 260 261 +1
Lines 18956 19254 +298
==========================================
- Hits 10078 9898 -180
- Misses 7338 7743 +405
- Partials 1540 1613 +73
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: lucklove <[email protected]>
Signed-off-by: lucklove <[email protected]>
Signed-off-by: lucklove <[email protected]>
Signed-off-by: lucklove <[email protected]>
1590f3a
to
7ced4be
Compare
Signed-off-by: lucklove <[email protected]>
Signed-off-by: lucklove <[email protected]>
Signed-off-by: lucklove <[email protected]>
Signed-off-by: lucklove <[email protected]>
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.
And don't change the file mode of pkg/cluster/executor/executor.go
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.
We should add more comments in txn.go
to describe how the merging process work.
} | ||
defer resp.Body.Close() | ||
|
||
if resp.StatusCode >= 300 { |
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.
What about 301, 302, 303 and 307?
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.
It's unexpected, the server shouldn't return this, so we just report an error
Co-authored-by: Allen Zhong <[email protected]>
Signed-off-by: lucklove <[email protected]>
/merge |
/run-all-tests |
What problem does this PR solve?
#814
What is changed and how it works?
Check List
Tests
Related changes
Release notes: