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

Reconnection hungs sometimes #215

Closed
wgolyakov opened this issue Feb 25, 2021 · 7 comments
Closed

Reconnection hungs sometimes #215

wgolyakov opened this issue Feb 25, 2021 · 7 comments

Comments

@wgolyakov
Copy link
Contributor

The reconnection process occasionally freezes.

Name: Thread-4
State: WAITING on java.util.concurrent.CountDownLatch$Sync@a352ed
Stack trace: 
jdk.internal.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source)
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(Unknown Source)
java.util.concurrent.CountDownLatch.await(Unknown Source)
org.glassfish.tyrus.container.jdk.client.JdkClientContainer.connectSynchronously(JdkClientContainer.java:339)
org.glassfish.tyrus.container.jdk.client.JdkClientContainer.access$700(JdkClientContainer.java:58)
org.glassfish.tyrus.container.jdk.client.JdkClientContainer$1.call(JdkClientContainer.java:156)
org.glassfish.tyrus.container.jdk.client.JdkClientContainer$1.call(JdkClientContainer.java:107)
org.glassfish.tyrus.container.jdk.client.JdkClientContainer.openClientSocket(JdkClientContainer.java:192)
org.glassfish.tyrus.client.ClientManager$3$1.run(ClientManager.java:647)
org.glassfish.tyrus.client.ClientManager$3.run(ClientManager.java:696)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
org.glassfish.tyrus.client.ClientManager$SameThreadExecutorService.execute(ClientManager.java:849)
java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:493)
org.glassfish.tyrus.client.ClientManager.connectToServer(ClientManager.java:355)
com.github.jnidzwetzki.bitfinex.v2.WebsocketClientEndpoint.connect(WebsocketClientEndpoint.java:98)
com.github.jnidzwetzki.bitfinex.v2.SimpleBitfinexApiBroker.reconnect(SimpleBitfinexApiBroker.java:451)
   - locked com.github.jnidzwetzki.bitfinex.v2.SimpleBitfinexApiBroker@1aa2509
com.github.jnidzwetzki.bitfinex.v2.HeartbeatThread.executeReconnect(HeartbeatThread.java:217)
com.github.jnidzwetzki.bitfinex.v2.HeartbeatThread.runThread(HeartbeatThread.java:138)
org.bboxdb.commons.concurrent.ExceptionSafeRunnable.run(ExceptionSafeRunnable.java:40)
java.lang.Thread.run(Unknown Source)
@wgolyakov
Copy link
Contributor Author

I think it might be a bug in tyrus #646 or #594.

@jnidzwetzki
Copy link
Owner

Hi @wgolyakov,

Thanks for reporting this bug. I can reproduce this issue with the steps mentioned in eclipse-ee4j/tyrus#646. I have seen that you have already opened a PR for this issue in the tyrus repository. So, I will merge the fixed tyrus version as soon as it gets released.

Can I do anything else for you, or can I close this issue?

Best Regards
Jan

@wgolyakov
Copy link
Contributor Author

It would be nice to wait for the fixed tyrus version, and then close this issue.

@jnidzwetzki
Copy link
Owner

👍

I have subscribed the tyrus issue, so I should get notified as soon as your PR is merged.

@jnidzwetzki
Copy link
Owner

Hi @wgolyakov,

I have just merged tyrus 1.18 into the project. Can you confirm that this closes the bug?

Best Regards
Jan

@wgolyakov
Copy link
Contributor Author

Yes.

@jnidzwetzki
Copy link
Owner

Perfect, thanks for the information. So, I will close this issue.

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