-
Notifications
You must be signed in to change notification settings - Fork 292
CA-408841 rrd: don't call ds_update with an empty datasource array #6393
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
CA-408841 rrd: don't call ds_update with an empty datasource array #6393
Conversation
I've tested manually and confirmed this fixes xcp-rrdd no longer working due to |
…ty datasource array Several assumptions in the ds_update function expect at least one element to be present in the array, and will raise Invalid_argument("index out of bounds") otherwise. This could be triggered by disabling all datasources for a particular plugin/owner combination, for example. Signed-off-by: Andrii Sultanov <andrii.sultanov@cloud.com>
bc4929f
to
4ee32f2
Compare
Should I merge this? |
If you think it's ready :) |
I think @BengangY was doing more testing, so I would like to hear his opinion. |
I'm doing some testing on it (including manual and automatic). And I am testing if WLB, HA, SNMP, NRPE, etc all work well. |
Thank you! |
I have finished the testing. The fix is going well. The PR can be merged. @last-genius |
Several assumptions in the
ds_update
function expect at least one element to be present in the array, and will raiseInvalid_argument("index out of bounds")
otherwise. This could be triggered by disabling all datasources for a particular plugin/owner combination, for example.