Skip to content

Commit

Permalink
DBZ-8325 Fix snapshot recovery itest
Browse files Browse the repository at this point in the history
  • Loading branch information
twthorn committed Oct 30, 2024
1 parent c55cc9b commit 6a36d4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public SchemaBuilder schemaBuilder(Column column) {
@Override
public ValueConverter converter(Column column, Field fieldDefn) {
String typeName = column.typeName().toUpperCase();
if (matches(typeName, "JSON")) {
if (matches(typeName, Query.Type.JSON.name())) {
return (data) -> convertJson(column, fieldDefn, data);
}
if (matches(typeName, Query.Type.ENUM.name())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2136,7 +2136,8 @@ public void testMidSnapshotRecoveryLargeTable() throws Exception {
assertThat(recordCount < expectedSnapshotRecordsCount).isTrue();
// Assert the total snapshot records are sent after starting
consumer = testConsumer(expectedSnapshotRecordsCount, tableTopicPrefix);
startConnector();
startConnector(Function.identity(), false, false, 1,
-1, -1, tableInclude, VitessConnectorConfig.SnapshotMode.INITIAL, TestHelper.TEST_SHARD);
consumer.await(TestHelper.waitTimeForRecords(), TimeUnit.SECONDS);

for (int i = 1; i <= expectedSnapshotRecordsCount; i++) {
Expand Down

0 comments on commit 6a36d4e

Please sign in to comment.