-
Notifications
You must be signed in to change notification settings - Fork 107
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
Failure to recover from network interruption in event hub binder #537
Comments
Hi, It might be related to issue Azure/azure-sdk-for-java#8439 |
Thanks for your reporting, according to your error log it seems to be the same as the issue you mentioned. Could you provide more infomation about how you use the event hub binder and the situation that the error occurs? |
I do not see this error java.lang.IllegalStateException: There are no partitions in Event Hub xyz any more. I am getting different error. This is my current environment. 2020-06-21T12:11:01.12-0400 [APP/PROC/WEB/0] OUT 2020-06-21 16:11:01.121 [INFO ] 23 --- [or-http-epoll-2] c.m.a.s.i.e.impl.EventHubProcessor : Started receiving on partition: 30 |
Noticing following error from one of the instance, remaining instances runs without any errors. 2020-06-22T10:12:15.56-0400 [APP/PROC/WEB/2] OUT 2020-06-22 14:12:15.567 [ERROR ] 24 --- [ parallel-3] c.m.a.s.i.e.impl.EventHubProcessor : Error occurred on partition: NONE. Error: {} |
Hi @pinnamaneni , according to the error log, connection to event hub has interrupted for some unknown reason and failed to recover. After refering the issue you mentioned, we update the version of |
Hi @yiliuTo , I tried with the updated libs. Getting following errors. 2020-06-23T13:19:09.16-0400 [APP/PROC/WEB/0] OUT 2020-06-23 17:19:09.163 [INFO ] 14 --- [pool-7-thread-1] c.a.m.e.PartitionBasedLoadBalancer : Load balancer already running [] 2020-06-23T16:01:27.47-0400 [APP/PROC/WEB/0] OUT 2020-06-23 20:01:27.476 [INFO ] 14 --- [pool-7-thread-1] c.a.m.e.PartitionBasedLoadBalancer : Starting load balancer for b2b654e6-4251-4dbc-8023-53dc8c5cc92f [] |
Hi @pinnamaneni , first I am sorry that I forgot to remind you updating another library |
Hi @yiliuTo Spring Boot: 2.3.0.RELEASE Getting following error: 2020-06-24T14:33:25.71-0400 [APP/PROC/WEB/1] OUT 2020-06-24 18:33:25.712 [ERROR ] 15 --- [or-http-epoll-3] io.netty.util.ResourceLeakDetector : LEAK: ByteBuf.release() was not called before it's garbage-collected. See https://netty.io/wiki/reference-counted-objects.html for more information. |
Hi @yiliuTo Enabled advanced leak report which might be helpful for you. 2020-06-24T16:10:39.27-0400 [APP/PROC/WEB/0] OUT 2020-06-24 20:10:39.269 [ERROR ] 16 --- [or-http-epoll-4] io.netty.util.ResourceLeakDetector : LEAK: ByteBuf.release() was not called before it's garbage-collected. See https://netty.io/wiki/reference-counted-objects.html for more information. |
Hi @pinnamaneni sorry for the late response due to a local festival. Considering your comment on issue 709, we will invesigate these two issues together. |
Closing this issue. |
Expected Behavior
A spring cloud azure stream binder application is able to reconnect, and continue to receive events, after a network interruption occurs.
Current Behavior
When connected to an event hub, and the application loses connectivity to the hub, a ReceiverDisconnectedException may occur, and the application does not recover.
Steps to Reproduce
Create a Sink something like this:
and configuration something like this:
using these gradle dependencies
Cause a network interruption (e.g., I close the lid on my computer for a few minutes). When the application picks up where it left off, I get a stack trace something like this:
and then ultimately this:
The application doesn't exit, but event processing is shut down. I would like a way to recover from this error.
Your Environment
The text was updated successfully, but these errors were encountered: