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

fix(inputs.vsphere): Resolve occasional serverFault #14463

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

knollet
Copy link
Contributor

@knollet knollet commented Dec 15, 2023

the serverFaultCode "A specified parameter was not correct: querySpec.startTime, querySpec.endTime" results from requests for metrics from the future.

Those requests get planned (check: hiwater mark, hwMark) for a plugin-run (-> plugin "interval") in the future in relation to the estimated time the vcenter will have collected the next metrics.

This estimated time/interval gets mangled up on a connection error (e.g. connection reset), because the est. interval gets reset to 1.

Solution: If we realize (ourselves) that the metric we are about to request is from the future, then... don't request it. Skip it.

  • No AI generated code was used in this PR

resolves #12500

resolves influxdata#12500

the serverFaultCode "A specified parameter was not correct:
querySpec.startTime, querySpec.endTime" results from requests for
metrics from the future.

Those requests get planned (check: hiwater mark, hwMark) for a
plugin-run (-> plugin "interval") in the future in relation to the
estimated time the vcenter will have collected the next metrics.

This estimated time/interval gets mangled up on a connection error
(e.g. connection reset), because the est. interval gets reset to 1.

Solution: If we realize (ourselves) that the metric we are about to
request is from the future, then... don't request it. Skip it.
@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Dec 15, 2023
@telegraf-tiger
Copy link
Contributor

@Hipska Hipska added area/vsphere ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Dec 18, 2023
@powersj powersj removed the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Dec 18, 2023
@Hipska Hipska added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Dec 18, 2023
@powersj powersj removed the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Dec 18, 2023
Copy link
Contributor

@powersj powersj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@powersj powersj changed the title fix: #issue 12500 occasional serverFault fix(inputs.vsphere): Resolve occasional serverFault Dec 21, 2023
@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Dec 21, 2023
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice finding and thanks for the patch @knollet!

@srebhan srebhan merged commit 19347bf into influxdata:master Jan 2, 2024
7 checks passed
@github-actions github-actions bot added this to the v1.29.2 milestone Jan 2, 2024
powersj pushed a commit that referenced this pull request Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vsphere fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[input.vsphere] vSphere plugin occasionally throws ServerFaultCode error
4 participants