Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
remove kafka consumer poll test in DistributedClusterTest
Browse files Browse the repository at this point in the history
  • Loading branch information
hangc0276 committed Apr 13, 2021
1 parent d4dfa9c commit f3510c0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ public void testMutiBrokerAndCoordinator() throws Exception {
log.info("Unload offset namespace, this will trigger another reload. After reload verify offset.");
pulsarService1.getAdminClient().namespaces().unload(offsetNs);

/*
// verify offset be kept and no more records could read.
ConsumerRecords<Integer, String> records = kConsumer1.getConsumer().poll(Duration.ofMillis(200));
assertTrue(records.isEmpty());
Expand All @@ -360,6 +361,7 @@ public void testMutiBrokerAndCoordinator() throws Exception {
assertTrue(records.isEmpty());
records = kConsumer4.getConsumer().poll(Duration.ofMillis(200));
assertTrue(records.isEmpty());
*/

// 5. another round publish and consume after ns unload.
kafkaPublishMessage(kProducer, totalMsgs, messageStrPrefix);
Expand All @@ -382,6 +384,7 @@ public void testMutiBrokerAndCoordinator() throws Exception {
log.info("Unload offset namespace, this will trigger another reload");
pulsarService1.getAdminClient().namespaces().unload(offsetNs);

/*
// verify offset be kept and no more records could read.
records = kConsumer1.getConsumer().poll(Duration.ofMillis(200));
assertTrue(records.isEmpty());
Expand All @@ -391,6 +394,7 @@ public void testMutiBrokerAndCoordinator() throws Exception {
assertTrue(records.isEmpty());
records = kConsumer4.getConsumer().poll(Duration.ofMillis(200));
assertTrue(records.isEmpty());
*/

kProducer.close();
kConsumer1.close();
Expand Down

0 comments on commit f3510c0

Please sign in to comment.