Skip to content

Commit d6e4db1

Browse files
Increase wait time creating Kafka topic in IT (#18216)
Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>
1 parent 70e890a commit d6e4db1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

plugins/ingestion-kafka/src/internalClusterTest/java/org/opensearch/plugin/kafka/RemoteStoreKafkaIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ public void testPauseAndResumeIngestion() throws Exception {
198198
assertTrue(pauseResponse.isShardsAcknowledged());
199199
waitForState(() -> {
200200
GetIngestionStateResponse ingestionState = getIngestionState(indexName);
201-
return Arrays.stream(ingestionState.getShardStates())
202-
.allMatch(state -> state.isPollerPaused() && state.pollerState().equalsIgnoreCase("paused"));
201+
return ingestionState.getFailedShards() == 0
202+
&& Arrays.stream(ingestionState.getShardStates())
203+
.allMatch(state -> state.isPollerPaused() && state.pollerState().equalsIgnoreCase("paused"));
203204
});
204205

205206
// verify ingestion state is persisted

plugins/ingestion-kafka/src/test/java/org/opensearch/plugin/kafka/KafkaUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static void createTopic(String topicName, int numOfPartitions, String boo
5353
}
5454

5555
// validates topic is created
56-
await().atMost(10, TimeUnit.SECONDS).until(() -> checkTopicExistence(topicName, bootstrapServers));
56+
await().atMost(60, TimeUnit.SECONDS).until(() -> checkTopicExistence(topicName, bootstrapServers));
5757
}
5858

5959
public static boolean checkTopicExistence(String topicName, String bootstrapServers) {

0 commit comments

Comments
 (0)