celeborn/master
Fei Wang ceed216a39 [CELEBORN-1317][FOLLOWUP] Retry to setup mini cluster if the cause is BindException
### What changes were proposed in this pull request?
To fix the UT for http server port already in use issue.

For Jetty HttpServer, if failed to bind port, the exception is IOException and the cause is BindException, we should retry for that.

Before:
```
    case e: BindException => // retry to setup mini cluster
```

Now:
```
    case e: IOException
         if e.isInstanceOf[BindException] || Option(e.getCause).exists(
           _.isInstanceOf[BindException]) =>  // retry to setup mini cluster
```

### Why are the changes needed?

To fix the UT for http server port already in use issue.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Will trigger GA for 3 three times.

Closes #2424 from turboFei/set_connector_stop_timeout.

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: Shuang <lvshuang.xjs@alibaba-inc.com>
2024-03-28 10:28:47 +08:00
..
src [CELEBORN-1317][FOLLOWUP] Retry to setup mini cluster if the cause is BindException 2024-03-28 10:28:47 +08:00
pom.xml [CELEBORN-1317] Refine celeborn http server and support swagger ui 2024-03-27 23:18:18 +08:00