Skip to content

Commit

Permalink
Add afterExecute for handleConnectExecutor
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Oct 14, 2014
1 parent 186b497 commit a0bc4dd
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,16 @@ private[nio] class ConnectionManager(
conf.getInt("spark.core.connection.connect.threads.max", 8),
conf.getInt("spark.core.connection.connect.threads.keepalive", 60), TimeUnit.SECONDS,
new LinkedBlockingDeque[Runnable](),
Utils.namedThreadFactory("handle-connect-executor"))
Utils.namedThreadFactory("handle-connect-executor")) {

override def afterExecute(r: Runnable, t: Throwable): Unit = {
super.afterExecute(r, t)
if (t != null && NonFatal(t)) {
logError("Error in handleConnectExecutor is not handled properly", t)
}
}

}

private val serverChannel = ServerSocketChannel.open()
// used to track the SendingConnections waiting to do SASL negotiation
Expand Down

0 comments on commit a0bc4dd

Please sign in to comment.