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

Latest Erlang build causes crash in misc:turn_into_gen_server

    XMLWordPrintable

Details

    • Triaged
    • 0
    • Unknown

    Description

      Since the latest Erlang update, cluster_tests fails to test anything.
      This is caused by a crash in misc:turn_into_gen-server, when called by capi-ddoc_manager_sup.
      (http://cv.jenkins.couchbase.com/job/ns-server-cluster-tests/2680/)

      [error_logger:error,2023-06-29T11:56:26.626Z,n_0@cb.local:<0.1064.0>:ale_error_logger_handler:do_log:101]
      =========================SUPERVISOR REPORT=========================
          supervisor: {<0.1064.0>,docs_kv_sup}
          errorContext: start_error
          reason: {{badmatch,
                    {ok,
                     {state,
                      {local,'capi_ddoc_manager_sup-default'},
                      one_for_all,
                      {[capi_ddoc_manager,capi_ddoc_manager_events],
                       #{capi_ddoc_manager =>
                          {child,<17106.464.0>,capi_ddoc_manager,
                           {capi_ddoc_manager,start_link,
                            ["default",<0.1065.0>,<0.1066.0>]},
                           permanent,false,1000,worker,[]},
                         capi_ddoc_manager_events =>
                          {child,<17106.463.0>,capi_ddoc_manager_events,
                           {capi_ddoc_manager,start_link_event_manager,["default"]},
                           permanent,false,brutal_kill,worker,[]}}},
                      undefined,3,10,[],0,never,capi_ddoc_manager_sup,
                      ["default",<0.1065.0>,<0.1066.0>]},
                     hibernate}},
                   [{misc,turn_into_gen_server,4,[{file,"src/misc.erl"},{line,503}]},
                    {proc_lib,init_p_do_apply,3,
                     [{file,"proc_lib.erl"},{line,240}]}]}
          offender: [{pid,undefined},
                     {id,capi_ddoc_manager_sup},
                     {mfargs,
                         {capi_ddoc_manager_sup,start_link_remote,
                             ['couchdb_n_0@cb.local',"default"]}},
                     {restart_type,permanent},
                     {significant,false},
                     {shutdown,infinity},
                     {child_type,supervisor}]
      

      The issue here is that an additional term is being returned by supervisor:init, which is 'hibernate'. The solution is probably to simply ignore this term if it shows up.

      Attachments

        Issue Links

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

          Activity

            People

              peter.searby Peter Searby
              peter.searby Peter Searby
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty