etcdserver: rename defaultCompactionSleepInterval var#18495
etcdserver: rename defaultCompactionSleepInterval var#18495ahrtr merged 3 commits intoetcd-io:mainfrom
Conversation
Signed-off-by: Jalin Wang <JalinWang@outlook.com>
|
Hi @JalinWang. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
Thanks for the pull request, @JalinWang. It looks like you missed updating the value in @ahrtr, you suggested the variable be named |
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files
... and 391 files with indirect coverage changes @@ Coverage Diff @@
## main #18495 +/- ##
=========================================
+ Coverage 0 68.80% +68.80%
=========================================
Files 0 420 +420
Lines 0 35489 +35489
=========================================
+ Hits 0 24418 +24418
- Misses 0 9642 +9642
- Partials 0 1429 +1429 Continue to review full report in Codecov by Sentry.
|
Apologies :( I overlooked its usage in later commits.
Following update: emmm |
|
/retest |
1 similar comment
|
/retest |
|
/retest-required |
OK to me. |
server/storage/mvcc/kvstore.go
Outdated
| @@ -40,7 +40,7 @@ var ( | |||
|
|
|||
| var restoreChunkKeys = 10000 // non-const for testing | |||
| var defaultCompactBatchLimit = 1000 | |||
There was a problem hiding this comment.
nit as you suggested
| var defaultCompactBatchLimit = 1000 | |
| var defaultCompactionBatchLimit = 1000 |
Signed-off-by: Jalin Wang <JalinWang@outlook.com>
|
Please squash the commits. |
Let me do it this time. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, JalinWang, serathius The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* etcdserver: rename `minimumBatchInterval` to `defaultCompactionSleepInterval` and `defaultCompactBatchLimit` to `defaultCompactionBatchLimit` Signed-off-by: Jalin Wang <JalinWang@outlook.com> (cherry picked from commit 2c53be7)
This is a backporting cherry-pick of the following commits: - add flagsline Signed-off-by: Jalin Wang <JalinWang@outlook.com> - etcdserver: rename defaultCompactionSleepInterval var (etcd-io#18495) etcdserver: rename `minimumBatchInterval` to `defaultCompactionSleepInterval` and `defaultCompactBatchLimit` to `defaultCompactionBatchLimit` Signed-off-by: Jalin Wang <JalinWang@outlook.com> (cherry picked from commit 2c53be7) - test: add CompactionSleepInterval in FakeStore's config After setting the ComparionSleepInterval, we can use time.Ticker instead of time.After to optimize the scheduleComparison(), otherwise it will fail in the 'TestStoreCompact(t)' test. Signed-off-by: guozhao <guozhao@360.cn> (cherry picked from commit fab8474) - add sleep interval (cherry picked from commit 184b0e5) Signed-off-by: Jalin Wang <JalinWang@outlook.com>
This is a backporting cherry-pick of the following commits: - add flagsline Signed-off-by: Jalin Wang <JalinWang@outlook.com> - etcdserver: rename defaultCompactionSleepInterval var (etcd-io#18495) etcdserver: rename `minimumBatchInterval` to `defaultCompactionSleepInterval` and `defaultCompactBatchLimit` to `defaultCompactionBatchLimit` Signed-off-by: Jalin Wang <JalinWang@outlook.com> (cherry picked from commit 2c53be7) - test: add CompactionSleepInterval in FakeStore's config After setting the ComparionSleepInterval, we can use time.Ticker instead of time.After to optimize the scheduleComparison(), otherwise it will fail in the 'TestStoreCompact(t)' test. Signed-off-by: guozhao <guozhao@360.cn> (cherry picked from commit fab8474) - add sleep interval (cherry picked from commit 184b0e5) Signed-off-by: Jalin Wang <JalinWang@outlook.com>
* etcdserver: rename `minimumBatchInterval` to `defaultCompactionSleepInterval` and `defaultCompactBatchLimit` to `defaultCompactionBatchLimit` Signed-off-by: Jalin Wang <JalinWang@outlook.com>
* etcdserver: rename `minimumBatchInterval` to `defaultCompactionSleepInterval` and `defaultCompactBatchLimit` to `defaultCompactionBatchLimit` Signed-off-by: Jalin Wang <JalinWang@outlook.com>
fix comment in PR #13018 (comment)