Skip to content

Commit 587e874

Browse files
authored
Remove excessive logs in counter (#37541)
1 parent d9ee103 commit 587e874

File tree

17 files changed

+16
-24
lines changed

17 files changed

+16
-24
lines changed

airbyte-cdk/java/airbyte-cdk/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Maven and Gradle will automatically reference the correct (pinned) version of th
144144

145145
| Version | Date | Pull Request | Subject |
146146
|:--------|:-----------|:-----------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------|
147+
| 0.30.9 | 2024-04-24 | [\#37477](https://github.com/airbytehq/airbyte/pull/37477) | remove unnecessary logs
147148
| 0.30.7 | 2024-04-23 | [\#37477](https://github.com/airbytehq/airbyte/pull/37477) | fix kotlin warnings in core CDK submodule
148149
| 0.30.7 | 2024-04-23 | [\#37484](https://github.com/airbytehq/airbyte/pull/37484) | fix kotlin warnings in dependencies CDK submodule |
149150
| 0.30.7 | 2024-04-23 | [\#37479](https://github.com/airbytehq/airbyte/pull/37479) | fix kotlin warnings in azure-destination, datastore-{bigquery,mongo,postgres} CDK submodules |

airbyte-cdk/java/airbyte-cdk/core/src/main/kotlin/io/airbyte/cdk/db/jdbc/JdbcSourceOperations.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import org.slf4j.LoggerFactory
1717
/** Implementation of source operations with standard JDBC types. */
1818
open class JdbcSourceOperations :
1919
AbstractJdbcCompatibleSourceOperations<JDBCType>(), SourceOperations<ResultSet, JDBCType> {
20-
private fun safeGetJdbcType(columnTypeInt: Int): JDBCType {
20+
protected fun safeGetJdbcType(columnTypeInt: Int): JDBCType {
2121
return try {
2222
JDBCType.valueOf(columnTypeInt)
2323
} catch (e: Exception) {
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.30.8
1+
version=0.30.10

airbyte-cdk/java/airbyte-cdk/db-sources/src/main/kotlin/io/airbyte/cdk/integrations/source/relationaldb/state/CursorStateMessageProducer.kt

-9
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ class CursorStateMessageProducer(
8181
currentCursorRecordCount++
8282
}
8383
}
84-
println("processed a record message. count: $currentCursorRecordCount")
8584
return message
8685
}
8786

@@ -103,14 +102,6 @@ class CursorStateMessageProducer(
103102
*/
104103
private fun createStateMessage(stream: ConfiguredAirbyteStream): AirbyteStateMessage? {
105104
val pair = AirbyteStreamNameNamespacePair(stream.stream.name, stream.stream.namespace)
106-
println(
107-
"state message creation: " +
108-
pair +
109-
" " +
110-
currentMaxCursor.orElse(null) +
111-
" " +
112-
currentCursorRecordCount
113-
)
114105
val stateMessage =
115106
stateManager!!.updateAndEmit(
116107
pair,

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.30.7'
6+
cdkVersionRequired = '0.30.10'
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.0.14
12+
dockerImageTag: 4.0.15
1313
dockerRepository: airbyte/source-mssql
1414
documentationUrl: https://docs.airbyte.com/integrations/sources/mssql
1515
githubIssueLabel: source-mssql

airbyte-integrations/connectors/source-mssql/src/main/java/io/airbyte/integrations/source/mssql/MssqlSource.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,7 @@ public AutoCloseableIterator<AirbyteMessage> getDebeziumSnapshotIterators(
472472
targetPosition,
473473
tableSnapshotPublisher::hasClosed,
474474
new DebeziumShutdownProcedure<>(queue, tableSnapshotPublisher::close, tableSnapshotPublisher::hasClosed),
475-
firstRecordWaitTime,
476-
subsequentRecordWaitTime);
475+
firstRecordWaitTime);
477476

478477
final var eventConverter = new RelationalDbDebeziumEventConverter(cdcMetadataInjector, emittedAt);
479478
return AutoCloseableIterators.concatWithEagerClose(

airbyte-integrations/connectors/source-mssql/src/main/java/io/airbyte/integrations/source/mssql/initialsync/MssqlInitialReadUtil.java

-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ public static List<AutoCloseableIterator<AirbyteMessage>> getCdcReadIterators(fi
161161
targetPosition,
162162
true,
163163
firstRecordWaitTime,
164-
subsequentRecordWaitTime,
165164
queueSize,
166165
false);
167166

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.30.7'
9+
cdkVersionRequired = '0.30.9'
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.3.21
12+
dockerImageTag: 3.3.22
1313
dockerRepository: airbyte/source-mysql
1414
documentationUrl: https://docs.airbyte.com/integrations/sources/mysql
1515
githubIssueLabel: source-mysql

airbyte-integrations/connectors/source-mysql/src/main/java/io/airbyte/integrations/source/mysql/initialsync/MySqlInitialReadUtil.java

-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ public static List<AutoCloseableIterator<AirbyteMessage>> getCdcReadIterators(fi
165165
MySqlCdcTargetPosition.targetPosition(database),
166166
true,
167167
firstRecordWaitTime,
168-
subsequentRecordWaitTime,
169168
AirbyteDebeziumHandler.QUEUE_CAPACITY,
170169
false);
171170
final var propertiesManager = new RelationalDbDebeziumPropertiesManager(

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.30.7'
15+
cdkVersionRequired = '0.30.9'
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.3.28
12+
dockerImageTag: 3.3.29
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/java/io/airbyte/integrations/source/postgres/cdc/PostgresCdcCtidInitializer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public static List<AutoCloseableIterator<AirbyteMessage>> cdcCtidIteratorsCombin
183183
// receive that is after the target LSN.
184184
PostgresUtils.advanceLsn(database);
185185
final AirbyteDebeziumHandler<Long> handler = new AirbyteDebeziumHandler<>(sourceConfig,
186-
targetPosition, false, firstRecordWaitTime, subsequentRecordWaitTime, queueSize, false);
186+
targetPosition, false, firstRecordWaitTime, queueSize, false);
187187
final PostgresCdcStateHandler postgresCdcStateHandler = new PostgresCdcStateHandler(stateManager);
188188
final var propertiesManager = new RelationalDbDebeziumPropertiesManager(
189189
PostgresCdcProperties.getDebeziumDefaultProperties(database), sourceConfig, catalog);

docs/integrations/sources/mssql.md

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

418418
| Version | Date | Pull Request | Subject |
419419
|:--------|:-----------| :---------------------------------------------------------------------------------------------------------------- |:------------------------------------------------------------------------------------------------------------------------------------------------|
420+
| 4.0.15 | 2024-04-22 | [37541](https://github.com/airbytehq/airbyte/pull/37541) | Adopt latest CDK. reduce excessive logs. |
420421
| 4.0.14 | 2024-04-22 | [37476](https://github.com/airbytehq/airbyte/pull/37476) | Adopt latest CDK. |
421422
| 4.0.13 | 2024-04-16 | [37111](https://github.com/airbytehq/airbyte/pull/37111) | Populate null values in record message. |
422423
| 4.0.12 | 2024-04-15 | [37326](https://github.com/airbytehq/airbyte/pull/37326) | Allow up to 60 minutes of wait for the an initial CDC record. |

docs/integrations/sources/mysql.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ Any database or table encoding combination of charset and collation is supported
223223

224224
| Version | Date | Pull Request | Subject |
225225
|:--------|:-----------|:-----------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------|
226-
| 3.3.21 | 2024-04-22 | [37476](https://github.com/airbytehq/airbyte/pull/37476) | Adopt latest CDK. |
227-
| 3.3.20 | 2024-04-16 | [37111](https://github.com/airbytehq/airbyte/pull/37111) | Populate null values in record message. |
226+
| 3.3.22 | 2024-04-22 | [37541](https://github.com/airbytehq/airbyte/pull/37541) | Adopt latest CDK. reduce excessive logs. |
227+
| 3.3.21 | 2024-04-22 | [37476](https://github.com/airbytehq/airbyte/pull/37476) | Adopt latest CDK. |
228+
| 3.3.20 | 2024-04-16 | [37111](https://github.com/airbytehq/airbyte/pull/37111) | Populate null values in record message. |
228229
| 3.3.19 | 2024-04-15 | [37328](https://github.com/airbytehq/airbyte/pull/37328) | Populate airbyte_meta.changes |
229230
| 3.3.18 | 2024-04-15 | [37324](https://github.com/airbytehq/airbyte/pull/37324) | Refactor source operations. |
230231
| 3.3.17 | 2024-04-10 | [36919](https://github.com/airbytehq/airbyte/pull/36919) | Fix a bug in conversion of null values. |

docs/integrations/sources/postgres.md

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

293293
| Version | Date | Pull Request | Subject |
294294
|---------|------------|----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
295+
| 3.3.29 | 2024-04-23 | [37509](https://github.com/airbytehq/airbyte/pull/37509) | remove excessive logs |
295296
| 3.3.28 | 2024-04-23 | [37509](https://github.com/airbytehq/airbyte/pull/37509) | Better error messages on switching between sync modes. |
296297
| 3.3.27 | 2024-04-22 | [37441](https://github.com/airbytehq/airbyte/pull/37441) | Remove legacy bad values handling code. |
297298
| 3.3.26 | 2024-04-10 | [36982](https://github.com/airbytehq/airbyte/pull/36982) | Populate airyte_meta.changes for xmin path |

0 commit comments

Comments
 (0)