mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-16 11:28:19 +00:00
fix(ingest): kafka ingest task hand up with error bootstrap server (#6820)
This commit is contained in:
parent
bdd346db27
commit
0f8e2d945e
@ -16,6 +16,8 @@ class _KafkaConnectionConfig(ConfigModel):
|
||||
description="Extra schema registry config serialized as JSON. These options will be passed into Kafka's SchemaRegistryClient. https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html?#schemaregistryclient",
|
||||
)
|
||||
|
||||
client_timeout_seconds: int = Field(default=60, description="The request timeout used when interacting with the Kafka APIs.")
|
||||
|
||||
@validator("bootstrap")
|
||||
def bootstrap_host_colon_port_comma(cls, val: str) -> str:
|
||||
for entry in val.split(","):
|
||||
|
@ -200,7 +200,9 @@ class KafkaSource(StatefulIngestionSourceBase):
|
||||
return cls(config, ctx)
|
||||
|
||||
def get_workunits(self) -> Iterable[MetadataWorkUnit]:
|
||||
topics = self.consumer.list_topics().topics
|
||||
topics = self.consumer.list_topics(
|
||||
timeout=self.source_config.connection.client_timeout_seconds
|
||||
).topics
|
||||
extra_topic_details = self.fetch_extra_topic_details(topics.keys())
|
||||
|
||||
for t, t_detail in topics.items():
|
||||
|
Loading…
x
Reference in New Issue
Block a user