Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quarkus KafkaStream application do not close immediately when no broker is present #13309

Closed
vietk opened this issue Nov 16, 2020 · 1 comment · Fixed by #13310
Closed

Quarkus KafkaStream application do not close immediately when no broker is present #13309

vietk opened this issue Nov 16, 2020 · 1 comment · Fixed by #13310
Labels
area/kafka-streams kind/bug Something isn't working
Milestone

Comments

@vietk
Copy link
Contributor

vietk commented Nov 16, 2020

Describe the bug
Quarkus application using the kafka-stream extension do not close immediately if the kafka broker is not available at the time the application starts.

Expected behavior
If no broker available the application have to shutdown immediately

Actual behavior
When closing the application, the admin client that is used by the kafkastream extension do not close immediately because it waits to perform startup task (querying metadata) that need to timeout before closing the admin client.

To Reproduce

  • Start a kafkastream application without starting any kafka broker
  • Quit the application (with Ctrl-C)
  • Wait (60s) and read the following message :

2020-11-16 12:05:28,601 WARN [org.apa.kaf.cli.NetworkClient] (kafka-admin-client-thread | adminclient-1) [AdminClient clientId=adminclient-1] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available. 2020-11-16 12:05:29,410 INFO [org.apa.kaf.cli.adm.int.AdminMetadataManager] (kafka-admin-client-thread | adminclient-1) [AdminClient clientId=adminclient-1] Metadata update failed: org.apache.kafka.common.errors.TimeoutException: Call(callName=fetchMetadata, deadlineMs=1605524729409) timed out at 1605524729410 after 1 attempt(s) Caused by: org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment. 2020-11-16 12:05:29,773 INFO [org.apa.kaf.cli.adm.int.AdminMetadataManager] (kafka-admin-client-thread | adminclient-1) [AdminClient clientId=adminclient-1] Metadata update failed: org.apache.kafka.common.errors.TimeoutException: Call(callName=fetchMetadata, deadlineMs=1605524759410) timed out at 9223372036854775807 after 1 attempt(s) Caused by: org.apache.kafka.common.errors.TimeoutException: The AdminClient thread has exited.
Regards

@vietk vietk added the kind/bug Something isn't working label Nov 16, 2020
@ghost ghost added the area/kafka-streams label Nov 16, 2020
@ghost
Copy link

ghost commented Nov 16, 2020

/cc @gunnarmorling, @rquinio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kafka-streams kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants