From d2f56c49a373023df0eb1ba5a18bee6d87e6846e Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Wed, 6 Nov 2024 15:48:41 +0100 Subject: [PATCH 1/2] check connection reset --- .../cygnus/backends/arcgis/restutils/ArcgisFeatureTable.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/restutils/ArcgisFeatureTable.java b/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/restutils/ArcgisFeatureTable.java index b710b26cd..705e2e849 100644 --- a/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/restutils/ArcgisFeatureTable.java +++ b/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/restutils/ArcgisFeatureTable.java @@ -610,6 +610,8 @@ private void setError(Exception e) { connected = false; } LOGGER.error("Error Cause: " + e.getCause().getMessage()); + } else if (e != null && e.getMessage().contains("Connection reset")) { + connected = false; } LOGGER.error("Error Message: " + e.getMessage()); From 8e1c23c6209cbe5b50cff6a32b692f8be891485e Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Wed, 6 Nov 2024 16:22:16 +0100 Subject: [PATCH 2/2] Update CHANGES_NEXT_RELEASE --- CHANGES_NEXT_RELEASE | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index b084509f5..1628cc49a 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1,3 +1,4 @@ - [cygnus-ngsi][arcgis] Log feature table error - [cygnus-ngsi][arcgis] fix log warn to debug level in arcgis feature when no object id is found (#2430) +- [cygnus-ngsi][arcgis] Add another check to connection reset when no java.net.SocketException has no cause (#2405) - [cygnus-ngsi] Upgrade Debian version from 12.6 to 12.7 in Dockerfile