Skip to content

Commit af98a81

Browse files
authored
[certified db sources] adopt latest CDK to use error translation bug fixes (#44841)
1 parent a5b28f4 commit af98a81

File tree

14 files changed

+17
-8
lines changed

14 files changed

+17
-8
lines changed

airbyte-integrations/connectors/source-mongodb-v2/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
airbyteJavaConnector {
6-
cdkVersionRequired = '0.44.4'
6+
cdkVersionRequired = '0.44.17'
77
features = ['db-sources', 'datastore-mongo']
88
useLocalCdk = false
99
}

airbyte-integrations/connectors/source-mongodb-v2/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ data:
88
connectorSubtype: database
99
connectorType: source
1010
definitionId: b2e713cd-cc36-4c0a-b5bd-b47cb8a0561e
11-
dockerImageTag: 1.5.7
11+
dockerImageTag: 1.5.8
1212
dockerRepository: airbyte/source-mongodb-v2
1313
documentationUrl: https://docs.airbyte.com/integrations/sources/mongodb-v2
1414
githubIssueLabel: source-mongodb-v2

airbyte-integrations/connectors/source-mssql/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
airbyteJavaConnector {
6-
cdkVersionRequired = '0.44.4'
6+
cdkVersionRequired = '0.44.17'
77
features = ['db-sources']
88
useLocalCdk = false
99
}

airbyte-integrations/connectors/source-mssql/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ data:
99
connectorSubtype: database
1010
connectorType: source
1111
definitionId: b5ea17b1-f170-46dc-bc31-cc744ca984c1
12-
dockerImageTag: 4.1.8
12+
dockerImageTag: 4.1.9
1313
dockerRepository: airbyte/source-mssql
1414
documentationUrl: https://docs.airbyte.com/integrations/sources/mssql
1515
githubIssueLabel: source-mssql

airbyte-integrations/connectors/source-mysql/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
airbyteJavaConnector {
9-
cdkVersionRequired = '0.44.4'
9+
cdkVersionRequired = '0.44.17'
1010
features = ['db-sources']
1111
useLocalCdk = false
1212
}

airbyte-integrations/connectors/source-mysql/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ data:
99
connectorSubtype: database
1010
connectorType: source
1111
definitionId: 435bb9a5-7887-4809-aa58-28c27df0d7ad
12-
dockerImageTag: 3.7.0
12+
dockerImageTag: 3.7.1
1313
dockerRepository: airbyte/source-mysql
1414
documentationUrl: https://docs.airbyte.com/integrations/sources/mysql
1515
githubIssueLabel: source-mysql

airbyte-integrations/connectors/source-mysql/src/test/kotlin/MySqlSourceExceptionHandlerTest.kt

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright (c) 2024 Airbyte, Inc., all rights reserved.
33
*/
44

5+
import io.airbyte.cdk.integrations.util.FailureType
56
import io.airbyte.integrations.source.mysql.MySqlSourceExceptionHandler
67
import java.io.EOFException
78
import java.sql.SQLSyntaxErrorException
@@ -21,6 +22,7 @@ class MySqlSourceExceptionHandlerTest {
2122
fun testTranslateMySQLSyntaxException() {
2223
val exception = SQLSyntaxErrorException("Unknown column 'xmin' in 'field list'")
2324
val externalMessage = exceptionHandler!!.getExternalMessage(exception)
25+
Assertions.assertTrue(exceptionHandler!!.checkErrorType(exception, FailureType.CONFIG))
2426
Assertions.assertEquals(
2527
"A column needed by MySQL source connector is missing in the database",
2628
externalMessage
@@ -34,6 +36,7 @@ class MySqlSourceExceptionHandlerTest {
3436
"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost."
3537
)
3638
val externalMessage = exceptionHandler!!.getExternalMessage(exception)
39+
Assertions.assertTrue(exceptionHandler!!.checkErrorType(exception, FailureType.TRANSIENT))
3740
Assertions.assertEquals("Can not read data from MySQL server", externalMessage)
3841
}
3942
}

airbyte-integrations/connectors/source-postgres/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ java {
1212
}
1313

1414
airbyteJavaConnector {
15-
cdkVersionRequired = '0.44.4'
15+
cdkVersionRequired = '0.44.17'
1616
features = ['db-sources', 'datastore-postgres']
1717
useLocalCdk = false
1818
}

airbyte-integrations/connectors/source-postgres/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ data:
99
connectorSubtype: database
1010
connectorType: source
1111
definitionId: decd338e-5647-4c0b-adf4-da0e75f5a750
12-
dockerImageTag: 3.6.16
12+
dockerImageTag: 3.6.17
1313
dockerRepository: airbyte/source-postgres
1414
documentationUrl: https://docs.airbyte.com/integrations/sources/postgres
1515
githubIssueLabel: source-postgres

airbyte-integrations/connectors/source-postgres/src/test/kotlin/PostgresSourceExceptionHandlerTest.kt

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright (c) 2024 Airbyte, Inc., all rights reserved.
33
*/
44

5+
import io.airbyte.cdk.integrations.util.FailureType
56
import io.airbyte.integrations.source.postgres.PostgresSourceExceptionHandler
67
import org.junit.jupiter.api.Assertions
78
import org.junit.jupiter.api.BeforeEach
@@ -21,6 +22,7 @@ class PostgresSourceExceptionHandlerTest {
2122
val exception =
2223
PSQLException("ERROR: temporary file size exceeds temp_file_limit (500kB)", null)
2324
val externalMessage = exceptionHandler!!.getExternalMessage(exception)
25+
Assertions.assertTrue(exceptionHandler!!.checkErrorType(exception, FailureType.TRANSIENT))
2426
Assertions.assertEquals("Encountered an error while reading the database", externalMessage)
2527
}
2628
}

docs/integrations/sources/mongodb-v2.md

+1
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ For more information regarding configuration parameters, please see [MongoDb Doc
199199

200200
| Version | Date | Pull Request | Subject |
201201
|:--------|:-----------| :------------------------------------------------------- |:----------------------------------------------------------------------------------------------------------|
202+
| 1.5.8 | 2024-08-27 | [44841](https://github.com/airbytehq/airbyte/pull/44841) | Adopt latest CDK. |
202203
| 1.5.7 | 2024-08-27 | [44846](https://github.com/airbytehq/airbyte/pull/44846) | DBZ filters in related streams only. |
203204
| 1.5.6 | 2024-08-27 | [44839](https://github.com/airbytehq/airbyte/pull/44839) | DBZ filters in related streams only. |
204205
| 1.5.5 | 2024-08-26 | [44779](https://github.com/airbytehq/airbyte/pull/44779) | Revert permission check on oplog.rs. |

docs/integrations/sources/mssql.md

+1
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ WHERE actor_definition_id ='b5ea17b1-f170-46dc-bc31-cc744ca984c1' AND (configura
422422

423423
| Version | Date | Pull Request | Subject |
424424
|:--------|:-----------|:------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------|
425+
| 4.1.9 | 2024-08-27 | [44841](https://github.com/airbytehq/airbyte/pull/44841) | Adopt latest CDK. |
425426
| 4.1.8 | 2024-08-08 | [43410](https://github.com/airbytehq/airbyte/pull/43410) | Adopt latest CDK. |
426427
| 4.1.7 | 2024-08-06 | [42869](https://github.com/airbytehq/airbyte/pull/42869) | Adopt latest CDK. |
427428
| 4.1.6 | 2024-07-30 | [42550](https://github.com/airbytehq/airbyte/pull/42550) | Correctly report stream states. |

docs/integrations/sources/mysql.md

+1
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ Any database or table encoding combination of charset and collation is supported
233233

234234
| Version | Date | Pull Request | Subject |
235235
|:--------|:-----------|:-----------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------|
236+
| 3.7.1 | 2024-08-27 | [44841](https://github.com/airbytehq/airbyte/pull/44841) | Adopt latest CDK. |
236237
| 3.7.0 | 2024-08-13 | [44013](https://github.com/airbytehq/airbyte/pull/44013) | Upgrading to Debezium 2.7.1.Final |
237238
| 3.6.9 | 2024-08-08 | [43410](https://github.com/airbytehq/airbyte/pull/43410) | Adopt latest CDK. |
238239
| 3.6.8 | 2024-07-30 | [42869](https://github.com/airbytehq/airbyte/pull/42869) | Adopt latest CDK. |

docs/integrations/sources/postgres.md

+1
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ According to Postgres [documentation](https://www.postgresql.org/docs/14/datatyp
311311

312312
| Version | Date | Pull Request | Subject |
313313
|---------|------------|----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
314+
| 3.6.17 | 2024-08-27 | [44841](https://github.com/airbytehq/airbyte/pull/44841) | Adopt latest CDK. |
314315
| 3.6.16 | 2024-08-15 | [44119](https://github.com/airbytehq/airbyte/pull/44119) | Fix incorrect final state on initial read in CDC mode. |
315316
| 3.6.15 | 2024-08-12 | [43945](https://github.com/airbytehq/airbyte/pull/43945) | Add missing replication slot config error. |
316317
| 3.6.14 | 2024-08-08 | [43418](https://github.com/airbytehq/airbyte/pull/43418) | Adopt latest CDK. |

0 commit comments

Comments
 (0)