Skip to content

Commit

Permalink
cluster: allow scale-in when there is no tispark master node (#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis authored May 13, 2021
1 parent b1b03c9 commit dd6b818
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/cluster/manager/scale_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ func (m *Manager) ScaleIn(
}

metadata, err := m.meta(name)
if err != nil && !errors.Is(perrs.Cause(err), meta.ErrValidate) &&
if err != nil &&
!errors.Is(perrs.Cause(err), meta.ErrValidate) &&
!errors.Is(perrs.Cause(err), spec.ErrMultipleTiSparkMaster) &&
!errors.Is(perrs.Cause(err), spec.ErrMultipleTisparkWorker) {
!errors.Is(perrs.Cause(err), spec.ErrMultipleTisparkWorker) &&
!errors.Is(perrs.Cause(err), spec.ErrNoTiSparkMaster) {
// ignore conflict check error, node may be deployed by former version
// that lack of some certain conflict checks
return err
Expand Down

0 comments on commit dd6b818

Please sign in to comment.