Event hubs silent disconnect and no reconnect
See original GitHub issueExpected Behavior
Messages are getting processed without losing connection.
Current Behavior
After a couple of days our connection drops and event hubs is not reconnecting. We are still seeing that telemetry data is being sent by the library.
Possible Solution
When the connection drops reconnect. If reconnect doesn’t work try again in 1 minute and keep doing this indefinitely until connection is possible.
Steps to Reproduce (for bugs)
Not reproducible. But when your connection is open long enough it will drop.
Snapshot Code for Reproduce
pom.xml
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>spring-cloud-azure-eventhubs-stream-binder</artifactId>
<version>1.1.3</version>
</dependency>
subscriber.java
@Slf4j
@Service
@RequiredArgsConstructor
@EnableBinding(Sink.class)
public class ErrorSubscriber {
@StreamListener(target = Sink.INPUT)
public synchronized void receiveMessage(@Payload byte[] payload) {
System.out.println(new String(payload));
}
}
Branch
1.1.3 for spring-cloud-azure-eventhubs-stream-binder
Your Environment
- Version used: spring-cloud-azure-eventhubs-stream-binder
- Operating System and version (desktop or mobile): windows & linux (both platforms have it)
- SDK version: 1.1.3 - spring-cloud-azure-eventhubs-stream-binder
Issue Analytics
- State:
- Created 3 years ago
- Comments:32 (14 by maintainers)
Top Results From Across the Web
Troubleshoot connectivity issues - Azure Event Hubs
There are various reasons for client applications not able to connect to an event hub. The connectivity issues that you experience may be ......
Read more >Reconnecting a connection subscribed to a hub causes ...
LoginHub implements IDisconnect. If I start the app, let it connect, pull the network cable, wait for the server side disconnect event to...
Read more >Configuring Microsoft Azure Event Hubs to communicate ...
Obtain a Microsoft Azure Event Hub Connection String. The Event Hub Connection String contains the Namespace Name, the path to the Event Hub...
Read more >Why is my USB mouse disconnecting and reconnecting ...
If you're experiencing mouse lockups or failures, it may be because your computer is automatically turning off the power to a USB Root...
Read more >To connect or to disconnect! - Journey Wiki - Fandom
If the connection to the game or internet is lost, each player sees the other one turn to dust. Just because you see...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@yiliuTo thank you! My first tests were looking positive. We are deploying them now to our staging cluster. If that is stable they will go to UAT where we have lots of messages. I will keep you updated here.
Hi @vinceve, are there any other problems about this issue? if no, we plan to close the issue