Collectd plugin fails. read-function of plugin `python.aerospike_plugin' failed


#1

I am not getting data consistently from Aerospike using the collectd plugin.

I am getting the following logs:

Jun 30 12:44:17 db-0.site1.amdocs.com collectd[6467]: Aerospike Plugin: client 127.0.0.1:3000
Jun 30 12:44:17 db-0.site1.amdocs.com collectd[6467]: Unhandled python exception in read callback: IndexError: pop from empty list
Jun 30 12:44:17 db-0.site1.amdocs.com collectd[6467]: Traceback (most recent call last):
Jun 30 12:44:17 db-0.site1.amdocs.com collectd[6467]: File "/opt/collectd-plugins/aerospike_plugin.py", line 789, in read
Jun 30 12:44:17 db-0.site1.amdocs.com collectd[6467]: reader(client, config, meta, self.emit)
Jun 30 12:44:17 db-0.site1.amdocs.com collectd[6467]: File "/opt/collectd-plugins/aerospike_plugin.py", line 566, in latency
Jun 30 12:44:17 db-0.site1.amdocs.com collectd[6467]: row = tdata.pop(0)
Jun 30 12:44:17 db-0.site1.amdocs.com collectd[6467]: IndexError: pop from empty list
Jun 30 12:44:17 db-0.site1.amdocs.com collectd[6467]: read-function of plugin `python.aerospike_plugin' failed. Will suspend it for 256.000 seconds.

Any thoughts what the issue is?


#2

Hi Shane,

Which release of Aerospike Server and Aerospike-Collectd plugin is being used?

The error occurs due to an unexpected output from the latency check. A workaround is to not include the latency checks.

Could you manually run an asinfo -v "latency:" to check the unexpected output?

Thanks,

Richard


#3

Hi Shane,

There was an issue with parsing latency stats. This has been fixed with the latest commit in github.

Thanks, Richard