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

pools/default?just_validate=1 returns unexpected server error in 3.x, 4.5 mixed cluster

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.5.0
    • ns_server
    • None
    • Untriaged
    • No

    Description

      UI xhr's against: pools/default?just_validate=1 and is returned ["Unexpected server error, request logged."]

      Error in the logs is as follows:

      [ns_server:error,2016-03-09T20:55:32.839-08:00,n_1@127.0.0.1:<0.4843.1>:menelaus_web:loop:189]Server error during processing: ["web request failed",
                                       {path,"/pools/default"},
                                       {method,'POST'},
                                       {type,error},
                                       {what,{badmatch,not_found}},
                                       {trace,
                                        [{menelaus_web,validate_memory_quota,4,
                                          [{file,"src/menelaus_web.erl"},
                                           {line,2218}]},
                                         {menelaus_web,validate_pool_settings_post,
                                          4,
                                          [{file,"src/menelaus_web.erl"},
                                           {line,2191}]},
                                         {menelaus_web,
                                          do_handle_pool_settings_post,1,
                                          [{file,"src/menelaus_web.erl"},
                                           {line,2307}]},
                                         {menelaus_web,
                                          do_handle_pool_settings_post_loop,2,
                                          [{file,"src/menelaus_web.erl"},
                                           {line,2293}]},
                                         {request_throttler,do_request,3,
                                          [{file,"src/request_throttler.erl"},
                                           {line,59}]},
                                         {menelaus_web,loop,2,
                                          [{file,"src/menelaus_web.erl"},
                                           {line,167}]},
                                         {mochiweb_http,headers,5,
                                          [{file,
                                            "/Users/dfinlay/work5/couchdb/src/mochiweb/mochiweb_http.erl"},
                                           {line,94}]},
                                         {proc_lib,init_p_do_apply,3,
                                          [{file,"proc_lib.erl"},{line,239}]}]}]
      

      indicating a bad match here:

                  {ok, IndexQuota} = ns_storage_conf:get_memory_quota(Config, index),
      

      Logs:
      https://s3.amazonaws.com/cb-customers/davef/mixed-cluster-test/collectinfo-2016-03-10T045719-n_0%40127.0.0.1.zip
      https://s3.amazonaws.com/cb-customers/davef/mixed-cluster-test/collectinfo-2016-03-10T045719-n_1%40127.0.0.1.zip

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Aliaksey Artamonau Aliaksey Artamonau (Inactive)
            dfinlay Dave Finlay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty