Skip to content

Commit

Permalink
[SPARK-3741] Add afterExecute for handleConnectExecutor
Browse files Browse the repository at this point in the history
Sorry. I found that I forgot to add `afterExecute` for `handleConnectExecutor` in apache#2593.

Author: zsxwing <[email protected]>

Closes apache#2794 from zsxwing/SPARK-3741 and squashes the following commits:

a0bc4dd [zsxwing] Add afterExecute for handleConnectExecutor
  • Loading branch information
zsxwing authored and JoshRosen committed Oct 17, 2014
1 parent e7f4ea8 commit 56fd34a
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 56fd34a

Please sign in to comment.