Github user srowen commented on the issue:

    https://github.com/apache/spark/pull/18499
  
    Surely math.max is correct? or else the value is always 1.
    
    On Tue, Jul 4, 2017 at 3:28 PM IngoSchuster <[email protected]>
    wrote:
    
    > Can we pull that also into 2.1.1? The original code in JettyUtils to limit
    > the number of selector threads is actually wrong.
    >
    > Instead of
    > val numSelectors = math.max(1, math.min(8,
    > Runtime.getRuntime().availableProcessors() / 2))
    > it should have been
    > val numSelectors = math.min(1, math.max(8,
    > Runtime.getRuntime().availableProcessors() / 2))
    >
    > With this PR, a fix for the bug above is no longer needed.
    >
    > —
    > You are receiving this because you are subscribed to this thread.
    > Reply to this email directly, view it on GitHub
    > <https://github.com/apache/spark/pull/18499#issuecomment-312891651>, or 
mute
    > the thread
    > 
<https://github.com/notifications/unsubscribe-auth/AAyM-hHnlELpIMQhDoh54FOG1XS5_DxCks5sKkvwgaJpZM4OLSCA>
    > .
    >



---
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