Skip to content

Commit 6e4635a

Browse files
committed
Rolled back controversial change to IngesterDesc.IsHealthy() which will require a dedicated discussion
Signed-off-by: Marco Pracucci <[email protected]>
1 parent fc8cc01 commit 6e4635a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ring/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (d *Desc) TokensFor(id string) (tokens, other []uint32) {
184184
func (i *IngesterDesc) IsHealthy(op Operation, heartbeatTimeout time.Duration) bool {
185185
if op == Write && i.State != ACTIVE {
186186
return false
187-
} else if op == Read && i.State != ACTIVE && i.State != LEAVING {
187+
} else if op == Read && i.State == JOINING {
188188
return false
189189
}
190190
return time.Now().Sub(time.Unix(i.Timestamp, 0)) <= heartbeatTimeout

0 commit comments

Comments
 (0)