Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-46579

Single node failover dialog doesn't show errors returned by /startFailover endpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.0.0
    • 7.0.0
    • UI
    • Untriaged
    • 1
    • Unknown

    Description

      diff --git a/src/failover.erl b/src/failover.erl
      index 74b114748..8422a2255 100644
      — a/src/failover.erl
      +++ b/src/failover.erl
      @@ -93,7 +93,8 @@ maybe_restore_chronicle_quorum(_FailedNodes, false) ->
      maybe_restore_chronicle_quorum(FailedNodes, true) ->
      case chronicle_compat:enabled() of
      true ->

      • restore_chronicle_quorum(FailedNodes);
        + restore_chronicle_quorum(FailedNodes),
        + exit(failover_crashed);
        false -> {ok, []}

        end.

      ./cluster_run -n 2
      create 2 nodes cluster with one bucket
      shutdown
      ./cluster_run -n 1
      go to the "Servers" page and click "Failover" button on the unresponsive node and proceed to the unsafe failover
      /startFailover will return 500 "Unexpected server error: failover_crashed", but the dialog doesn't show it.

      Multiple nodes failover dialog does show the error.

      Attachments

        Activity

          People

            deepika.verma Deepika Verma (Inactive)
            artem Artem Stemkovski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty