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

[influxdb] Improve connection handling #15879

Merged
merged 2 commits into from
Nov 11, 2023
Merged

[influxdb] Improve connection handling #15879

merged 2 commits into from
Nov 11, 2023

Conversation

J-N-K
Copy link
Member

@J-N-K J-N-K commented Nov 11, 2023

Fixes #15614

Especially for InfluxDB2 the connection check was not properly implemented. It only checked if a connections was ever successfully established. Since we removed the full crash when a write error occured, this lead to a situation where a broken connection was not detected. A ping is now implemented and also a failed write results in a disconnect.

Especially for InfluxDB2 the connection check was not properly implemented. It only checked if a connections was ever successfully established. Since we removed the full crash when a write error occured, this lead to a situation where a broken connection was not detected. A ping is now implemented and also a failed write results in a disconnect.

Signed-off-by: Jan N. Klug <[email protected]>
@J-N-K J-N-K added the bug An unexpected problem or unintended behavior of an add-on label Nov 11, 2023
@J-N-K J-N-K requested a review from lujop as a code owner November 11, 2023 14:31
Signed-off-by: Jan N. Klug <[email protected]>
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

LGTM

@lolodomo lolodomo merged commit 2892731 into openhab:main Nov 11, 2023
3 checks passed
@lolodomo lolodomo added this to the 4.1 milestone Nov 11, 2023
@lolodomo
Copy link
Contributor

Sorry @@lujop I was probably too fast and I should have waited for your feedback.

andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Nov 26, 2023
* [influxdb] Improve connection handling

Especially for InfluxDB2 the connection check was not properly implemented. It only checked if a connections was ever successfully established. Since we removed the full crash when a write error occured, this lead to a situation where a broken connection was not detected. A ping is now implemented and also a failed write results in a disconnect.

---------

Signed-off-by: Jan N. Klug <[email protected]>
@J-N-K J-N-K deleted the influx branch December 6, 2023 13:47
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
* [influxdb] Improve connection handling

Especially for InfluxDB2 the connection check was not properly implemented. It only checked if a connections was ever successfully established. Since we removed the full crash when a write error occured, this lead to a situation where a broken connection was not detected. A ping is now implemented and also a failed write results in a disconnect.

---------

Signed-off-by: Jan N. Klug <[email protected]>
Signed-off-by: Jørgen Austvik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[influxdb] Persistence "sends" values to former temporarily offline Server.
2 participants