Exception error: no match of right hand side value not_present in function couch_stats_reader:init/1 (src/couch_stats_reader.erl, line 64)

Hello Everyone,

I am observing the following and many other errors in couchbase report.log. Can anyone help me understand what this error is what is the problem here if there is one. I have also observed lot of crash report getting generated when I stop the couchbase server. Even when I start I see some crash reports related to compaction. Could you please help me understand this behaviour. Are these crash reports really problems or some of them are just expected and can be ignored. This is with regard to 4.1.2 version.


Supervisor:

{local,ns_server_sup}
Context: child_terminated
Reason: {badarith,
[{base_stats_collector,calculate_counters,5,
[

{file,“src/base_stats_collector.erl”},{line,157}]},
{query_stats_collector,process_stats,5,
[{file,“src/query_stats_collector.erl”},{line,121}]},
{base_stats_collector,handle_info,2,
[{file,“src/base_stats_collector.erl”}
,

{line,95}
]},
{gen_server,handle_msg,5,
[

{file,“gen_server.erl”}
,

{line,604}
]},
{proc_lib,init_p_do_apply,3,
[

{file,“proc_lib.erl”}
,

{line,239}
]}]}
Offender: [

{pid,<0.345.0>}
,

{name,query_stats_collector}
,
{mfargs,{query_stats_collector,start_link,[]}},

{restart_type,permanent}
,

{shutdown,1000}
,

{child_type,worker}
]


crasher:
initial call: misc:turn_into_gen_server/4
pid: <11444.1471.0>
registered_name: 'couch_stats_reader-abc_def_xyz’
exception error: no match of right hand side value not_present
in function couch_stats_reader:init/1 (src/couch_stats_reader.erl, line
64)
in call from misc:turn_into_gen_server/4 (src/misc.erl, line 608)
ancestors: [<0.3791.0>,‘single_bucket_kv_sup-abc_def_xyz’,
ns_bucket_sup,ns_bucket_worker_sup,ns_server_sup,
ns_server_nodes_sup,<0.152.0>,ns_server_cluster_sup,
<0.88.0>]

[error_logger:error,2017-01-
17T18:08:17.584Z,ns_1@127.0.0.1:error_logger<0.6.0>:ale_error_logger_handler:do
_log:203]** Generic
server ns_bucket_worker
terminating

Last message in was {’$gen_cast’,#Fun<ns_bucket_sup.0.76767414>}
When Server state == []
Reason for termination ==
{{badmatch,
{error,
{{shutdown,
{failed_to_start_child,
{docs_kv_sup,“abc_def_xyz”}
,
{shutdown,
{failed_to_start_child,couch_stats_reader,

{badmatch,not_present}
}}}},

etc.