[
https://issues.apache.org/jira/browse/HUDI-4838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ethan Guo updated HUDI-4838:
----------------------------
Description:
[https://github.com/apache/hudi/pull/6270/files#r947181371]
We should get rid of sleeping altogether by using proper retrying client
{code:java}
do {
partitionInfos = consumer.partitionsFor(topicName);
try {
TimeUnit.SECONDS.sleep(10);
} catch (InterruptedException e) {
LOG.error("Sleep failed while fetching partitions");
}
} while (partitionInfos == null && (System.currentTimeMillis() <= (start +
timeout))); {code}
was:https://github.com/apache/hudi/pull/6270/files#r947181371
> Use proper retrying client in Kafka source
> ------------------------------------------
>
> Key: HUDI-4838
> URL: https://issues.apache.org/jira/browse/HUDI-4838
> Project: Apache Hudi
> Issue Type: Improvement
> Reporter: Ethan Guo
> Priority: Minor
> Fix For: 0.13.0
>
>
> [https://github.com/apache/hudi/pull/6270/files#r947181371]
> We should get rid of sleeping altogether by using proper retrying client
> {code:java}
> do {
> partitionInfos = consumer.partitionsFor(topicName);
> try {
> TimeUnit.SECONDS.sleep(10);
> } catch (InterruptedException e) {
> LOG.error("Sleep failed while fetching partitions");
> }
> } while (partitionInfos == null && (System.currentTimeMillis() <= (start
> + timeout))); {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)