Skip to content

Commit 421c7b3

Browse files
authored
[Source-Postgres] : Add invalid replication slot config error (#43945)
1 parent 1535cad commit 421c7b3

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

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.14
12+
dockerImageTag: 3.6.15
1313
dockerRepository: airbyte/source-postgres
1414
documentationUrl: https://docs.airbyte.com/integrations/sources/postgres
1515
githubIssueLabel: source-postgres

airbyte-integrations/connectors/source-postgres/src/main/kotlin/io/airbyte/integrations/source/postgres/PostgresSourceExceptionHandler.kt

+13
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,18 @@ class PostgresSourceExceptionHandler : ConnectorExceptionHandler() {
160160
),
161161
),
162162
)
163+
164+
add(
165+
ConnectorErrorProfile(
166+
errorClass = "Postgres Debezium Connection Error",
167+
regexMatchingPattern = ".*cannot read from logical replication slot.*",
168+
failureType = FailureType.CONFIG,
169+
externalMessage =
170+
"The configured replication slot has been dropped or has corrupted. Please recreate the replication slot.",
171+
sampleInternalMessage =
172+
"org.postgresql.util.PSQLException: ERROR: cannot read from logical replication slot \"airbyte_slot\"",
173+
referenceLinks = listOf("https://github.com/airbytehq/oncall/issues/5981"),
174+
),
175+
)
163176
}
164177
}

docs/integrations/sources/postgres.md

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

312312
| Version | Date | Pull Request | Subject |
313313
|---------|------------|----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
314-
| 3.6.14 | 2024-08-08 | [43418](https://github.com/airbytehq/airbyte/pull/43418) | Adopt latest CDK. |
315-
| 3.6.13 | 2024-07-30 | [42869](https://github.com/airbytehq/airbyte/pull/42869) | Adopt latest CDK. |
314+
| 3.6.15 | 2024-08-12 | [43945](https://github.com/airbytehq/airbyte/pull/43945) | Add missing replication slot config error. |
315+
| 3.6.14 | 2024-08-08 | [43418](https://github.com/airbytehq/airbyte/pull/43418) | Adopt latest CDK. |
316+
| 3.6.13 | 2024-07-30 | [42869](https://github.com/airbytehq/airbyte/pull/42869) | Adopt latest CDK. |
316317
| 3.6.12 | 2024-07-30 | [42550](https://github.com/airbytehq/airbyte/pull/42550) | Correctly report stream states. |
317318
| 3.6.11 | 2024-07-29 | [42852](https://github.com/airbytehq/airbyte/pull/42852) | Bump CDK version to latest to use new bug fixes on error translation. |
318319
| 3.6.10 | 2024-07-23 | [42417](https://github.com/airbytehq/airbyte/pull/42417) | Handle null error message in ConnectorExceptionHandler. |

0 commit comments

Comments
 (0)