vburenin commented on code in PR #6270:
URL: https://github.com/apache/hudi/pull/6270#discussion_r947184646
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java:
##########
@@ -311,7 +311,9 @@ private List<PartitionInfo>
fetchPartitionInfos(KafkaConsumer consumer, String t
do {
partitionInfos = consumer.partitionsFor(topicName);
try {
- TimeUnit.SECONDS.sleep(10);
+ if (partitionInfos == null) {
+ TimeUnit.SECONDS.sleep(10);
Review Comment:
@alexeykudinkin do you have an idea which a proper retrying client we can
use here? It is probably not necessary to make it as a part of this PR, due to
the triviality of this change. However, I agree that this issue should be
solved at the root of the problem.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]