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

memcached_bucket_config passing magma only config to non-magma Buckets

    XMLWordPrintable

Details

    Description

      Steps:

      • Single node cluster
      • Create Ephemeral bucket

      Observation:

      Bucket created successfully.

      Created bucket "yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000" of type: ephemeral
      [{num_replicas,0},
      {ram_quota,268435456},
      {durability_min_level,none},
      {purge_interval,1},
      {flush_enabled,false},
      {num_threads,3},
      {eviction_policy,no_eviction},
      {conflict_resolution_type,seqno},
      {storage_mode,ephemeral},
      {max_ttl,0},
      {compression_mode,passive}]

      After few seconds, bucket turns into amber in UI with following logs in ns_debug.log

      [error_logger:error,2023-01-31T00:32:07.738-08:00,ns_1@cb.local:janitor_agent-yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000<0.25644.45>:ale_error_logger_handler:do_log:101]
      =========================CRASH REPORT=========================
        crasher:
          initial call: janitor_agent:init/1
          pid: <0.25644.45>
          registered_name: 'janitor_agent-yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000'
          exception exit: {{{badmatch,
                                {memcached_error,einval,
                                    <<"{\"error\":{\"context\":\"Cannot sethistory_retention_seconds : requirements not met\"}}">>}},
                            [{memcached_bucket_config,maybe_update_param,4,
                                 [{file,"src/memcached_bucket_config.erl"},
                                  {line,225}]},
                             {lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
                             {ns_memcached,ensure_selected_bucket,3,
                                 [{file,"src/ns_memcached.erl"},{line,1385}]},
                             {ns_memcached,ensure_bucket_inner,3,
                                 [{file,"src/ns_memcached.erl"},{line,1335}]},
                             {ns_memcached,handle_info,2,
                                 [{file,"src/ns_memcached.erl"},{line,705}]},
                             {gen_server,try_dispatch,4,
                                 [{file,"gen_server.erl"},{line,695}]},
                             {gen_server,handle_msg,6,
                                 [{file,"gen_server.erl"},{line,771}]},
                             {proc_lib,init_p_do_apply,3,
                                 [{file,"proc_lib.erl"},{line,226}]}]},
                           {gen_server,call,
                               [{'ns_memcached-yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000',
                                    'ns_1@cb.local'},
                                {raw_stats,<<"dcp">>,
                                    #Fun<dcp_replicator.4.11572224>,[]},
                                300000]}}
            in function  gen_server:call/3 (gen_server.erl, line 247)
            in call from ns_memcached:do_call/4 (src/ns_memcached.erl, line 1446)
            in call from dcp_replicator:get_connections/1 (src/dcp_replicator.erl, line 319)
            in call from dcp_sup:nuke/1 (src/dcp_sup.erl, line 118)
            in call from janitor_agent:init/1 (src/janitor_agent.erl, line 556)
          ancestors: ['janitor_agent_sup-yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000',
                       'single_bucket_kv_sup-yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000',
                        ns_bucket_sup,ns_bucket_worker_sup,ns_server_sup,
                        ns_server_nodes_sup,<0.270.0>,ns_server_cluster_sup,
                        root_sup,<0.146.0>]
          message_queue_len: 0
          messages: []
          links: [<0.25571.45>]
          dictionary: []
          trap_exit: false
          status: running
          heap_size: 6772
          stack_size: 29
          reductions: 3120
        neighbours:[error_logger:error,2023-01-31T00:32:07.739-08:00,ns_1@cb.local:janitor_agent_sup-yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000<0.25571.45>:ale_error_logger_handler:do_log:101]
      =========================SUPERVISOR REPORT=========================
          supervisor: {local,'janitor_agent_sup-yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000'}
          errorContext: child_terminated
          reason: {{{badmatch,
                        {memcached_error,einval,
                            <<"{\"error\":{\"context\":\"Cannot sethistory_retention_seconds : requirements not met\"}}">>}},
                    [{memcached_bucket_config,maybe_update_param,4,
                         [{file,"src/memcached_bucket_config.erl"},{line,225}]},
                     {lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
                     {ns_memcached,ensure_selected_bucket,3,
                         [{file,"src/ns_memcached.erl"},{line,1385}]},
                     {ns_memcached,ensure_bucket_inner,3,
                         [{file,"src/ns_memcached.erl"},{line,1335}]},
                     {ns_memcached,handle_info,2,
                         [{file,"src/ns_memcached.erl"},{line,705}]},
                     {gen_server,try_dispatch,4,
                         [{file,"gen_server.erl"},{line,695}]},
                     {gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,771}]},
                     {proc_lib,init_p_do_apply,3,
                         [{file,"proc_lib.erl"},{line,226}]}]},
                   {gen_server,call,
                       [{'ns_memcached-yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000',
                            'ns_1@cb.local'},                  {raw_stats,<<"dcp">>,#Fun<dcp_replicator.4.11572224>,[]},
                        300000]}}
          offender: [{pid,<0.25644.45>},
                     {id,janitor_agent},
                     {mfargs,{janitor_agent,start_link,    ["yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000"]}},
                     {restart_type,permanent},
                     {significant,false},
                     {shutdown,brutal_kill},
                     {child_type,worker}]

      info.log

      [ns_server:info,2023-01-31T00:30:56.864-08:00,ns_1@cb.local:ns_memcached-yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000<0.28458.44>:memcached_bucket_config:maybe_update_param:223]Changing parameter history_retention_seconds of bucket yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000 to 0
      [ns_server:info,2023-01-31T00:30:56.878-08:00,ns_1@cb.local:ns_memcached-yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000<0.28466.44>:memcached_bucket_config:has_changed:209]Detected change of parameter history_retention_seconds for bucket yxSaNGIDzu3qagdyGAVA960koZiYLFHn_xOji_jIPrL4gtV_0-8-446000 to 0
      

      Attachments

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

        Activity

          People

            ashwin.govindarajulu Ashwin Govindarajulu
            ashwin.govindarajulu Ashwin Govindarajulu
            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