Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Metric GC process terminates with badarg in 3.6.9 #42

Closed
laurentluce opened this issue Mar 30, 2017 · 8 comments
Closed

Metric GC process terminates with badarg in 3.6.9 #42

laurentluce opened this issue Mar 30, 2017 · 8 comments
Assignees
Milestone

Comments

@laurentluce
Copy link

Management plugin config:

{rabbitmq_management,
  [{listener, [{port,     15672},
                {ssl,      false},
                {ssl_opts, [{cacertfile, "/etc/rabbitmq/ssl/cacert.pem"},
                            {certfile,   "/etc/rabbitmq/ssl/server.pem"},
                            {keyfile,    "/etc/rabbitmq/ssl/server.key"}]}]},
   {rates_mode, none},
   {sample_retention_policies,
    [{global,   [{60, 5}]},
     {basic,    [{60, 20}]},
     {detailed, [{10, 5}]}]}
  ]},

Log error:

=ERROR REPORT==== 30-Mar-2017::00:24:14 ===
** Generic server rabbit_mgmt_gc terminating
** Last message in was start_gc
** When Server state == {state,#Ref<0.0.1.100845>,120000}
** Reason for termination ==
** {badarg,[{erlang,node,[none],[]},
            {rabbit_misc,is_process_alive,1,
                         [{file,"src/rabbit_misc.erl"},{line,872}]},
            {rabbit_mgmt_gc,gc_process,3,
                            [{file,"src/rabbit_mgmt_gc.erl"},{line,136}]},
            {lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
            {ets,do_foldl,4,[{file,"ets.erl"},{line,585}]},
            {ets,foldl,3,[{file,"ets.erl"},{line,574}]},
            {rabbit_mgmt_gc,handle_info,2,
                            [{file,"src/rabbit_mgmt_gc.erl"},{line,44}]},
            {gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,601}]}]}
@michaelklishin michaelklishin changed the title badarg in GC with 3.6.9 Metric GC process terminates with badarg in 3.6.9 Mar 30, 2017
@michaelklishin
Copy link
Member

The GC process is then restarted, so this can be mostly cosmetic.

@dcorbacho
Copy link
Contributor

This issue seems to be caused by the web STOMP plugin, which I believe @laurentluce is using.
The none atom is the initial value of the connection status, generated on the processor, which is propagated while emitting stats before the connection is established and/or terminated abruptly.

This condition was already handled by the STOMP plugin, but not the web one.

Added a new guard in MQTT too, for 'undefined' and 'none' - although I believe it never takes the value none in MQTT.

@laurentluce
Copy link
Author

@dcorbacho Yes, I am using the web STOMP plugin. Keep in mind that I am seeing this trace at regular intervals.

@michaelklishin
Copy link
Member

@laurentluce that's expected. The issue has to do with Web STOMP connection stats emission timing on connections that are not yet fully open.

@laurentluce
Copy link
Author

@michaelklishin Do you have an ETA for the 3.6.10 release?

@michaelklishin
Copy link
Member

We can release a milestone next Monday. There are no plans about GA yet as some Pivotal teams haven't shipped 3.6.9 yet.

@michaelklishin
Copy link
Member

michaelklishin commented Apr 11, 2017

@laurentluce 3.6.10 M1 is released.

@michaelklishin
Copy link
Member

Sorry about the private repo release notes link, should point to the public GitHub release now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants