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.opcua): Reconnect if closed connection #15696

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Jul 31, 2024

Summary

Rather than checking if we are only disconnected, we should also check if the connection is closed to try to reconnect.

Checklist

  • No AI generated code was used in this PR

Related issues

fixes: #15693

Rather than checking if we are only disconnected, we should also check
if the connection is closed to try to reconnect.

fixes: influxdata#15693
@powersj powersj self-assigned this Jul 31, 2024
@telegraf-tiger telegraf-tiger bot added area/opcua fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Jul 31, 2024
@telegraf-tiger
Copy link
Contributor

@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 Jul 31, 2024
@powersj powersj assigned srebhan and DStrand1 and unassigned powersj Jul 31, 2024
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.

That makes a lot of sense. Thanks @powersj!

@srebhan srebhan removed their assignment Jul 31, 2024
@DStrand1 DStrand1 merged commit b090cf6 into influxdata:master Jul 31, 2024
27 checks passed
@github-actions github-actions bot added this to the v1.31.3 milestone Jul 31, 2024
powersj added a commit that referenced this pull request Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/opcua 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.

telegraf opcua inputs in Closed after rebooting
3 participants