Skip to content
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

[3.5] Introduce the CompactionSleepInterval flag #18514

Merged
merged 1 commit into from
Sep 2, 2024

Commits on Aug 30, 2024

  1. Introduce compaction sleep interval flag

    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>
    AlexStocks authored and JalinWang committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    0263597 View commit details
    Browse the repository at this point in the history