-
Notifications
You must be signed in to change notification settings - Fork 25k
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
StackOverflowError in TransportClientNodesService #1930
Comments
Situation where this can happen:
A mockup client is here: https://gist.github.com/2652024 Bulk traffic needs to get simulated. |
A few minutes ago I needed to interrupt my high-volume indexer with kill (so it causes InterruptedExceptions in all threads), and the StackOverflow happened again, this time mixed with additional messages. See in this gist for the messages: https://gist.github.com/2666459 I'm clueless, I think it's my fault, because I treat TransportClient badly - I just let it go. How can I interrupt a TransportClient with many pending bulk requests so that it can shut down cleanly? Is it possible to wait for outstanding bulks got processed (waiting for BulkResponses)? |
Just noticed the StackOverflow happens while handling something with IPv6 , because I added IPv6 addresses to the TransportClient. But IPv6 cluster wide addressing is not possible because IPv6 is not supported by the network administration team. Hmmm. I should quit using IPv6 in TransportClient. |
Heya @jprante, did you manage to recreate it at the end? (btw, there is no way to wait for pending bulk requests, sorry for the late answer). |
Sorry for the lag. I still need some time writing an error-provoking bulk indexing text case and see how far it goes. As a workaound, I'm thinking about something as a "SafeTransportClient" that can wait for outstanding ActionListeners if InterruptedExceptions come in. |
hey, anything we can do here to help? Can you still reproduce this? Should we close this? |
I'm quite sure the Mac OS X JVM version at that time was playing tricks on me with Java exceptions around open/close sockets/file descriptors and tight system resource limits. I have not seen it after the workaround. Also on Linux or Solaris, I never encountered this situation. Actually I do not intend to dig deeper, beside it is hard to reproduce, it would involve tracing at OS level, maybe OS or JVM devs have to be bothered in that case. Will also soon move to OS X Maverick in the hope for new exciting bugs :) So it's ok the issue was closed, I close it again. |
I observed a StackOverflowError lately
The text was updated successfully, but these errors were encountered: