Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/2108#issuecomment-55016146
  
    @scwf Actually we already try several times before getting a free one. My 
interpretation of this is we simply ran out of ports, such that no matter how 
many times we retry we can't get a free one. Using a random port for the UI 
certainly reduces probability of collision, but yes it is definitely not the 
final solution as it simply puts maven tests on par with SBT tests, the latter 
of which still fail sometimes but not always.
    
    @JoshRosen #2259 may help for PySpark tests, but `SparkSubmitSuite` and 
`DriverSuite` are run before those, so regardless we need to find another way 
to reduce the number of ports used.
    
    One solution @JoshRosen and I discussed is to simply not start the SparkUI 
during tests (maybe except for the `UISuite`). This alone will surely free up a 
significant number of ports we currently occupy.


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