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

Scala actors can block on TcpService if socket connection to a specific destination blocks #5734

Closed
scabug opened this issue May 2, 2012 · 5 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented May 2, 2012

In the attached file, the ForkJoinPool-worker 4 thread has locked the TcpService and is trying to establish a connection (which, for whatever reason), is blocking. This means that no other remote communication can occur - in particular ForkJoinPool-1-Worker-0 is blocked on sending a response to a separate actor.

This essentially takes down an entire actor-based system.

@scabug
Copy link
Author

scabug commented May 2, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5734?orig=1
Reporter: @oxbowlakes
Affected Versions: 2.9.2, 2.10.1
Attachments:

@scabug
Copy link
Author

scabug commented May 2, 2012

@oxbowlakes said:
This may be related to another issue I reported: #4942

@scabug
Copy link
Author

scabug commented Jun 11, 2012

@adriaanm said:
Philipp, please re-assign if this is out of scope for you.

@scabug
Copy link
Author

scabug commented Apr 29, 2013

Martin McNulty (mhmcnulty) said:
Workaround for this bug: scala/scala#2468

Allows setting of the timeout to use when making Socket connections, which should alleviate the problem, if not entirely eliminate it.

@scabug scabug closed this as completed Nov 21, 2013
@scabug
Copy link
Author

scabug commented Nov 21, 2013

@retronym said:
Closing based on Martin's patch. Scala actors are deprecated in favour of Akka actors, so we don't plan to refine this any further.

@scabug scabug added this to the 2.10.2 milestone Apr 7, 2017
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