DBZ-2916 Fix test failures
This commit is contained in:
parent
2d87fa9b3d
commit
a33af6a2d7
@ -160,7 +160,7 @@ void processResult(ResultSet resultSet) throws SQLException {
|
||||
historyRecorder.record(scn, tableName, segOwner, operationCode, changeTime, txId, 0, redoSql);
|
||||
LOGGER.info("DDL: {}, REDO_SQL: {}", logMessage, redoSql);
|
||||
try {
|
||||
assert tableName != null;
|
||||
if (tableName != null) {
|
||||
final TableId tableId = RowMapper.getTableId(connectorConfig.getCatalogName(), resultSet);
|
||||
dispatcher.dispatchSchemaChangeEvent(tableId,
|
||||
new OracleSchemaChangeEventEmitter(
|
||||
@ -174,6 +174,7 @@ void processResult(ResultSet resultSet) throws SQLException {
|
||||
changeTime.toInstant(),
|
||||
streamingMetrics));
|
||||
}
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
throw new DebeziumException("Failed to dispatch DDL event", e);
|
||||
}
|
||||
|
@ -1076,7 +1076,7 @@ public void shouldNotEmitDdlEventsForNonTableObjects() throws Exception {
|
||||
Awaitility.await()
|
||||
.atMost(TestHelper.defaultMessageConsumerPollTimeout(), TimeUnit.SECONDS)
|
||||
.until(() -> {
|
||||
if (logInterceptor.countOccurrences("Processing DDL event ") == expected) {
|
||||
if (logInterceptor.countOccurrences("DDL: ") == expected) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user