From de01ed7bc36cb6880dcdb10e28d3c6cc6bd301a1 Mon Sep 17 00:00:00 2001 From: xuriwuyun Date: Fri, 13 Dec 2024 15:28:39 +0800 Subject: [PATCH] fix: reset mongodb role when it is unhealthy (#8639) --- pkg/lorry/operations/replica/checkrole.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/lorry/operations/replica/checkrole.go b/pkg/lorry/operations/replica/checkrole.go index f955dcd028a..49c81e2ca38 100644 --- a/pkg/lorry/operations/replica/checkrole.go +++ b/pkg/lorry/operations/replica/checkrole.go @@ -169,9 +169,6 @@ func (s *CheckRole) Do(ctx context.Context, _ *operations.OpsRequest) (*operatio // When network partition occurs, the new primary needs to send global role change information to the controller. isLeader, err := manager.IsLeader(ctx, cluster) if err != nil { - if err != models.ErrNotImplemented { - return nil, err - } isLeader = models.IsLikelyPrimaryRole(role) }