Skip to content

Commit

Permalink
turn on cachingbucketenabled in compactor test and add more descript …
Browse files Browse the repository at this point in the history
…to the feature flag

Signed-off-by: Wen Xu <[email protected]>
  • Loading branch information
wenxu1024 committed Dec 6, 2023
1 parent e7f39a2 commit e8885ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compactor/compactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
f.DurationVar(&cfg.BlockVisitMarkerFileUpdateInterval, "compactor.block-visit-marker-file-update-interval", 1*time.Minute, "How frequently block visit marker file should be updated duration compaction.")

f.BoolVar(&cfg.AcceptMalformedIndex, "compactor.accept-malformed-index", false, "When enabled, index verification will ignore out of order label names.")
f.BoolVar(&cfg.CachingBucketEnabled, "compactor.caching-bucket-enabled", false, "When enabled, caching bucket will be used for compactor, except cleaner service.")
f.BoolVar(&cfg.CachingBucketEnabled, "compactor.caching-bucket-enabled", false, "When enabled, caching bucket will be used for compactor, except cleaner service, which serves as the source of truth for block status")
}

func (cfg *Config) Validate(limits validation.Limits) error {
Expand Down
3 changes: 3 additions & 0 deletions pkg/compactor/compactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1644,6 +1644,9 @@ func prepareConfig() Config {
// Set lower timeout for waiting on compactor to become ACTIVE in the ring for unit tests
compactorCfg.ShardingRing.WaitActiveInstanceTimeout = 5 * time.Second

// Set CachingBucketEnabled to true
compactorCfg.CachingBucketEnabled = true

return compactorCfg
}

Expand Down

0 comments on commit e8885ed

Please sign in to comment.