]> git.basschouten.com Git - openhab-addons.git/commit
[influxdb] Improve connection handling (#15879)
authorJ-N-K <github@klug.nrw>
Sat, 11 Nov 2023 22:15:21 +0000 (23:15 +0100)
committerGitHub <noreply@github.com>
Sat, 11 Nov 2023 22:15:21 +0000 (23:15 +0100)
commit28927310eb7a495547e18886fd66c683de79447d
treed69bc5b1ca1faeee217074d0f8be7f75e0377a4b
parent1b466fb319892c4a396b6682c6b2fa7aeb131be9
[influxdb] Improve connection handling (#15879)

* [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 <github@klug.nrw>
bundles/org.openhab.persistence.influxdb/src/main/java/org/openhab/persistence/influxdb/InfluxDBPersistenceService.java
bundles/org.openhab.persistence.influxdb/src/main/java/org/openhab/persistence/influxdb/internal/influx2/InfluxDB2RepositoryImpl.java