question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Event hubs silent disconnect and no reconnect

See original GitHub issue

Expected 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:closed
  • Created 3 years ago
  • Comments:32 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
vincevecommented, Jun 23, 2020

@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.

0reactions
zhoufenqincommented, Jul 8, 2020

Hi @vinceve, are there any other problems about this issue? if no, we plan to close the issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found