Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Data Collection Error: list index out of range #2

Open
maguec opened this issue Feb 11, 2022 · 0 comments
Open

Exception: Data Collection Error: list index out of range #2

maguec opened this issue Feb 11, 2022 · 0 comments

Comments

@maguec
Copy link
Contributor

maguec commented Feb 11, 2022

When an active active database is created but the remote is down the following exception gets thrown

  File "/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.redisenterprise/active_gate_redisenterprise_plugin.py", line 347, in query
    self.get_crdt_stats(bdbs, bdb_devices)
  File "/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.redisenterprise/active_gate_redisenterprise_plugin.py", line 131, in get_crdt_stats
    stats = peer_stats["peer_stats"][0]["intervals"][0]
IndexError: list index out of range

Traceback (most recent call last):
  File "/var/lib/dynatrace/remotepluginmodule/agent/runtime/engine_unzipped/ruxit/plugin_state_machine.py", line 336, in _execute_next_task
    self._query_plugin()
  File "/var/lib/dynatrace/remotepluginmodule/agent/runtime/engine_unzipped/ruxit/plugin_state_machine.py", line 670, in _query_plugin
    self._plugin_run_data.plugin_instance._query_internal(**self._plugin_run_data.plugin_args)
  File "/var/lib/dynatrace/remotepluginmodule/agent/runtime/engine_unzipped/ruxit/api/base_plugin.py", line 452, in _query_internal
    return self.query(**kwargs)
  File "/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.redisenterprise/active_gate_redisenterprise_plugin.py", line 357, in query
    raise Exception("Data Collection Error: {}".format(inst))
Exception: Data Collection Error: list index out of range

Need to better handle this edge case

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

No branches or pull requests

1 participant