Skip to content

Commit

Permalink
[raft] SyncRequestDeleteReplica should not ignore ErrShardClosed (#8030)
Browse files Browse the repository at this point in the history
  • Loading branch information
luluz66 authored Dec 10, 2024
1 parent 31a1518 commit 955fea7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions enterprise/server/raft/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1033,11 +1033,7 @@ func (s *Store) syncRequestDeleteReplica(ctx context.Context, rangeID, replicaID

// Propose the config change (this removes the node from the raft cluster).
err = client.RunNodehostFn(ctx, func(ctx context.Context) error {
err := s.nodeHost.SyncRequestDeleteReplica(ctx, rangeID, replicaID, configChangeID)
if err == dragonboat.ErrShardClosed {
return nil
}
return err
return s.nodeHost.SyncRequestDeleteReplica(ctx, rangeID, replicaID, configChangeID)
})
return err
}
Expand Down

0 comments on commit 955fea7

Please sign in to comment.