Skip to content

Commit 9c46081

Browse files
authored
Fix missing return after writing sharding error (#3897)
At the moment the error ends up getting overwritten/obscured by the `This should not happen` error handling. Signed-off-by: Nick Parker <[email protected]>
1 parent 03d4318 commit 9c46081

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/alertmanager/distributor.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ func (d *Distributor) doWrite(userID string, w http.ResponseWriter, r *http.Requ
143143

144144
if err != nil {
145145
respondFromError(err, w, logger)
146+
return
146147
}
147148

148149
firstSuccessfulResponseMtx.Lock() // Another request might be ongoing after quorum.

0 commit comments

Comments
 (0)