Commit d502e5f
committed
Handle port collisions when creating Akka systems
This requires us to handle exceptions thrown more carefully, because
akka throws its own exceptions that are not java.net.BindException.
We workaround this by traversing the Exception causality tree to find
a java.net.BindException with an "Address already in use" message.1 parent a2dd05c commit d502e5f
File tree
2 files changed
+35
-9
lines changed- core/src/main/scala/org/apache/spark/util
2 files changed
+35
-9
lines changedLines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
49 | 65 | | |
50 | 66 | | |
51 | 67 | | |
52 | | - | |
53 | 68 | | |
54 | | - | |
55 | 69 | | |
56 | 70 | | |
57 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
| 1370 | + | |
1374 | 1371 | | |
1375 | 1372 | | |
1376 | 1373 | | |
| |||
1387 | 1384 | | |
1388 | 1385 | | |
1389 | 1386 | | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
1390 | 1402 | | |
0 commit comments