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): Allow to retry reads on invalid sessions #16026

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

srebhan
Copy link
Member

@srebhan srebhan commented Oct 15, 2024

Summary

In cases where a session becomes invalid (e.g. due to the server not respecting the session timeout) we should retry the read after some time to allow the client to reactivate the session. This is done using the newly introduced read_retry_timeout and read_retry_count settings.

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #15998

@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 Oct 15, 2024
@srebhan srebhan self-assigned this Oct 16, 2024
@telegraf-tiger
Copy link
Contributor

@srebhan srebhan 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 Oct 16, 2024
@srebhan srebhan assigned DStrand1 and unassigned srebhan Oct 16, 2024
Copy link
Member

@DStrand1 DStrand1 left a comment

Choose a reason for hiding this comment

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

Looks great! I'll pass it back to you since you had another question for the issue author

@DStrand1 DStrand1 assigned srebhan and unassigned DStrand1 Oct 16, 2024
@srebhan
Copy link
Member Author

srebhan commented Oct 17, 2024

Checked again and I'm sure the PR works as the reporter stated...

@srebhan srebhan merged commit 0abd184 into influxdata:master Oct 17, 2024
27 checks passed
@srebhan srebhan deleted the opcua_issue_15998 branch October 17, 2024 08:03
@github-actions github-actions bot added this to the v1.32.2 milestone Oct 17, 2024
srebhan added a commit that referenced this pull request Oct 28, 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.

5min Interval for OPCUA Input disconnects from the OPCUA Server at :00, :10, :20, etc
2 participants