Skip to content

Commit

Permalink
[PARTITIONER] fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
chia7712 committed Nov 2, 2024
1 parent bbd2878 commit 7ad0846
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ void multipleThreadTest(String className) throws IOException {
.build()) {
Runnable runnable =
() -> {
Partitioner.beginInterdependent(instanceOfProducer(producer));
var exceptPartition =
producerSend(producer, topicName, key, value, timestamp, header).partition();
IntStream.range(0, 10)
Expand All @@ -140,9 +139,7 @@ void multipleThreadTest(String className) throws IOException {
assertEquals(timestamp, metadata.timestamp().get());
assertEquals(exceptPartition, metadata.partition());
});
Partitioner.endInterdependent(instanceOfProducer(producer));
};
Partitioner.beginInterdependent(instanceOfProducer(producer));

var fs =
IntStream.range(0, 10)
Expand All @@ -160,7 +157,6 @@ void multipleThreadTest(String className) throws IOException {
assertEquals(timestamp, metadata.timestamp().get());
assertEquals(exceptPartition, metadata.partition());
});
Partitioner.endInterdependent(instanceOfProducer(producer));
fs.forEach(CompletableFuture::join);
}
}
Expand Down Expand Up @@ -190,7 +186,6 @@ void interdependentTest(String className) throws IOException {
assertEquals(topicName, metadata.topic());
assertEquals(timestamp, metadata.timestamp().get());
});
Partitioner.beginInterdependent(instanceOfProducer(producer));
var exceptPartition =
producerSend(producer, topicName, key, value, timestamp, header).partition();
IntStream.range(0, 99)
Expand All @@ -202,7 +197,6 @@ void interdependentTest(String className) throws IOException {
assertEquals(timestamp, metadata.timestamp().get());
assertEquals(exceptPartition, metadata.partition());
});
Partitioner.endInterdependent(instanceOfProducer(producer));
IntStream.range(0, 2400)
.forEach(
i -> {
Expand All @@ -211,7 +205,6 @@ void interdependentTest(String className) throws IOException {
assertEquals(topicName, metadata.topic());
assertEquals(timestamp, metadata.timestamp().get());
});
Partitioner.beginInterdependent(instanceOfProducer(producer));
var exceptPartitionSec =
producerSend(producer, topicName, key, value, timestamp, header).partition();
IntStream.range(0, 99)
Expand All @@ -223,7 +216,6 @@ void interdependentTest(String className) throws IOException {
assertEquals(timestamp, metadata.timestamp().get());
assertEquals(exceptPartitionSec, metadata.partition());
});
Partitioner.endInterdependent(instanceOfProducer(producer));
}
}

Expand Down

0 comments on commit 7ad0846

Please sign in to comment.