-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
config: move storage check after initializeTempDir #16257
Conversation
} else if capacityByte > uint64(c.TempStorageQuota) { | ||
return fmt.Errorf("value of [temp-storage-quota](%d byte) exceeds the capacity(%d byte) of the [%s] directory", c.TempStorageQuota, capacityByte, c.TempStoragePath) | ||
} |
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.
The original logic here is wrong, I correct it in this request.
Codecov Report
@@ Coverage Diff @@
## master #16257 +/- ##
===========================================
Coverage 80.4897% 80.4897%
===========================================
Files 506 506
Lines 137446 137446
===========================================
Hits 110630 110630
Misses 18305 18305
Partials 8511 8511 |
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
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
/run-all-tests |
@Yisaer merge failed. |
/run-all-tests |
/run-unit-test |
/run-integration-copr-test |
@Yisaer Please cherry-pick this commit to release-4.0 |
/run-cherry-picker |
cherry pick to release-4.0 in PR #16462 |
What problem does this PR solve?
Move storage check after initializeTempDir so that avoiding the capacity we get is smaller than the fact.
Related changes
Release note
None