Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3207#discussion_r20145423
  
    --- Diff: 
core/src/main/scala/org/apache/spark/network/nio/ConnectionManager.scala ---
    @@ -77,7 +77,8 @@ private[nio] class ConnectionManager(
       }
     
       private val selector = SelectorProvider.provider.openSelector()
    -  private val ackTimeoutMonitor = new Timer("AckTimeoutMonitor", true)
    +  private val ackTimeoutMonitor = Executors.newScheduledThreadPool(2,
    --- End diff --
    
    I just checked the codes:
    ```Java
        public ScheduledThreadPoolExecutor(int corePoolSize,
                                           ThreadFactory threadFactory) {
            super(corePoolSize, Integer.MAX_VALUE, 0, TimeUnit.NANOSECONDS,
                  new DelayedWorkQueue(), threadFactory);
        }
    ```
    2 is the least thread number, not the max thread number.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to