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

Taking long time to publish event to Event hub after 1 hour of idle time #108

Closed
1 of 15 tasks
prashant-gudodagi-by opened this issue Jun 12, 2020 · 2 comments
Closed
1 of 15 tasks

Comments

@prashant-gudodagi-by
Copy link

Description

Connected to Azure Event Hub, In a normal working scenario with no idle time, the events gets published to event hub within milliseconds, but if there is an idle time of 1 hour, the first event sent after idle time takes 30 secs.

Framework: Spring
Parameters used for Producer:
KEY_SERIALIZER_CLASS_CONFIG
VALUE_SERIALIZER_CLASS_CONFIG
COMPRESSION_TYPE_CONFIG

other properties will be considered default..

How to reproduce

Connect to Azure Event hub, using the above mentioned config values (org.apache.kafka.clients.producer.ProducerConfig).

After connecting send couple of messages.(1st request takes time to publish and all other subsequent events gets published in fraction)
get idle time of 1 hour.
Now publish a new message, it takes almost 30 Secs.

Has it worked previously?

<Is this a first attempt at getting the sample application to run, or has it worked in the past?>

Checklist

IMPORTANT: We will close issues where the checklist has not been completed or where adequate information has not been provided.

Please provide the relevant information for the following items:

  • SDK (include version info): <REPLACE with e.g., kafka-python/Java SDK/confluent-kafka-dotnet with version info>
  • Sample you're having trouble with: <REPLACE with e.g., Java quickstart>
  • If using Apache Kafka Java clients or a framework that uses Apache Kafka Java clients, version: <REPLACE with e.g., 1.1.0>
  • Kafka client configuration: <REPLACE with e.g., auto.reset.offset=earliest, ..> (do not include your connection string or SAS Key)
  • Namespace and EventHub/topic name
  • Consumer or producer failure <REPLACE with e.g., Consumer failure>
  • Timestamps in UTC <REPLACE with e.g., Nov 7 2018 - 17:15:01 UTC>
  • group.id or client.id <REPLACE with e.g., group.id=cg-name>
  • Logs provided (with debug-level logging enabled if possible, e.g. log4j.rootLogger=DEBUG) or exception call stack
  • Standalone repro <REPLACE with e.g., Willing/able to send scenario to repro issue>
  • Operating system: <REPLACE with e.g., Ubuntu 16.04.5 (x64) LTS>
  • Critical issue

If this is a question on basic functionality, please verify the following:

  • Port 9093 should not be blocked by firewall ("broker cannot be found" errors)
  • Pinging FQDN should return cluster DNS resolution (e.g. $ ping namespace.servicebus.windows.net returns ~ ns-eh2-prod-am3-516.cloudapp.net [13.69.64.0])
  • Namespace should be either Standard or Dedicated tier, not Basic (TopicAuthorization errors)
@arerlend
Copy link
Contributor

arerlend commented Jun 12, 2020

Hey @prashant-gudodagi-by can you try setting all of the configuration found in the config doc? Setting max idle timeout for connections should help you.

https://github.com/Azure/azure-event-hubs-for-kafka/blob/master/CONFIGURATION.md

@arerlend
Copy link
Contributor

@prashant-gudodagi-by any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants