From 7508ffb2b8036f06fde2a611700ea2ae2484a31f Mon Sep 17 00:00:00 2001 From: Yue Li <61070669+theyueli@users.noreply.github.com> Date: Thu, 13 Jun 2024 04:48:36 -0700 Subject: [PATCH] CDK: translate java EOF exception's message to a more customer-friendly message (#39417) fixes airbytehq/oncall#4283 --- .../airbyte/cdk/integrations/util/ConnectorExceptionUtil.kt | 5 ++++- .../airbyte-cdk/core/src/main/resources/version.properties | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/airbyte-cdk/java/airbyte-cdk/core/src/main/kotlin/io/airbyte/cdk/integrations/util/ConnectorExceptionUtil.kt b/airbyte-cdk/java/airbyte-cdk/core/src/main/kotlin/io/airbyte/cdk/integrations/util/ConnectorExceptionUtil.kt index 5b84a0de8716..00e5901fa5b3 100644 --- a/airbyte-cdk/java/airbyte-cdk/core/src/main/kotlin/io/airbyte/cdk/integrations/util/ConnectorExceptionUtil.kt +++ b/airbyte-cdk/java/airbyte-cdk/core/src/main/kotlin/io/airbyte/cdk/integrations/util/ConnectorExceptionUtil.kt @@ -136,7 +136,10 @@ object ConnectorExceptionUtil { "temporary file size exceeds temp_file_limit" ) private val TRANSIENT_EOF_EXCEPTION_MESSAGE: Array = - arrayOf("connection was unexpectedly lost") + arrayOf( + "connection was unexpectedly lost", + "can not read response from server. expected to read" + ) private val RECOVERY_CONNECTION_EXCEPTION_MESSAGE: Array = arrayOf("due to conflict with recovery") diff --git a/airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties b/airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties index 8c59062dc4d7..0baca54913ec 100644 --- a/airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties +++ b/airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties @@ -1 +1 @@ -version=0.37.2 +version=0.37.3