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 issue with OPCUA client disconnection #24

Conversation

DaruZero
Copy link
Contributor

@DaruZero DaruZero commented Dec 6, 2023

On a failed read, in case of a StatusBadServerNotConnected OPC UA error, returning the service.ErrNotConnected error triggers a logic that continuously tries to reconnect

Fixes https://github.com/united-manufacturing-hub/MgmtIssues/issues/1163

Test "Connect Subscribe Scalar Arrays" was already failing before my changes

Copy link
Member

@JeremyTheocharis JeremyTheocharis left a comment

Choose a reason for hiding this comment

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

Can you add a test related to this?

Also what do you mean with failing test? The last test run worked perfectly fine: https://github.com/united-manufacturing-hub/benthos-umh/actions/runs/7034288225/job/19141981561

@DaruZero
Copy link
Contributor Author

Failing test is fixed in #26

I would not know how to test the change introduced by this PR, as I don't know how to simulate that type of disconnection

@JeremyTheocharis JeremyTheocharis merged commit 82be266 into united-manufacturing-hub:master Dec 12, 2023
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

Successfully merging this pull request may close these issues.

2 participants