Skip to content

Commit

Permalink
fix(distributor): Activate partition ring is kafka is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriltovena committed Sep 28, 2024
1 parent 84788ad commit 7799989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/loki/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,7 @@ func (t *Loki) initAnalytics() (services.Service, error) {

// The Ingest Partition Ring is responsible for watching the available ingesters and assigning partitions to incoming requests.
func (t *Loki) initPartitionRing() (services.Service, error) {
if !t.Cfg.Ingester.KafkaIngestion.Enabled {
if !t.Cfg.Ingester.KafkaIngestion.Enabled && !t.Cfg.Distributor.KafkaEnabled {
return nil, nil
}

Expand Down

0 comments on commit 7799989

Please sign in to comment.