deepthi912 commented on code in PR #15178: URL: https://github.com/apache/pinot/pull/15178#discussion_r1983963123
########## pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/DedupIntegrationTest.java: ########## @@ -59,8 +72,41 @@ public void setUp() addSchema(schema); TableConfig tableConfig = createDedupTableConfig(_avroFiles.get(0), "id", getNumKafkaPartitions()); addTableConfig(tableConfig); - waitForAllDocsLoaded(600_000L); + createDedupConfigsWithReplicas(); + } + + public void createDedupConfigsWithReplicas() + throws IOException { + Schema schemaWithReplicas = createSchema(getSchemaFileName()); + schemaWithReplicas.setSchemaName(DEDUP_WITH_REPLICAS_SCHEMA); + addSchema(schemaWithReplicas); + TableConfig tableConfigWithReplication = + createDedupTableConfigWithReplication(_avroFiles.get(0), "id", getNumKafkaPartitions()); + addTableConfig(tableConfigWithReplication); + waitForDocsLoaded(600_000L, true, DEDUP_TABLE_WITH_REPLICAS); + } + + /** + * Creates a new Dedup enabled table config with replication=2 and metadatTTL=30 + */ + protected TableConfig createDedupTableConfigWithReplication(File sampleAvroFile, String primaryKeyColumn, Review Comment: Done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org