@@ -38,7 +38,7 @@ abstract class RpcEnvSuite extends SparkFunSuite with BeforeAndAfterAll {
38
38
39
39
override def beforeAll (): Unit = {
40
40
val conf = new SparkConf ()
41
- env = createRpcEnv(conf, " local" , 12345 )
41
+ env = createRpcEnv(conf, " local" , 0 )
42
42
}
43
43
44
44
override def afterAll (): Unit = {
@@ -75,7 +75,7 @@ abstract class RpcEnvSuite extends SparkFunSuite with BeforeAndAfterAll {
75
75
}
76
76
})
77
77
78
- val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 13345 )
78
+ val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 0 )
79
79
// Use anotherEnv to find out the RpcEndpointRef
80
80
val rpcEndpointRef = anotherEnv.setupEndpointRef(" local" , env.address, " send-remotely" )
81
81
try {
@@ -130,7 +130,7 @@ abstract class RpcEnvSuite extends SparkFunSuite with BeforeAndAfterAll {
130
130
}
131
131
})
132
132
133
- val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 13345 )
133
+ val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 0 )
134
134
// Use anotherEnv to find out the RpcEndpointRef
135
135
val rpcEndpointRef = anotherEnv.setupEndpointRef(" local" , env.address, " ask-remotely" )
136
136
try {
@@ -158,7 +158,7 @@ abstract class RpcEnvSuite extends SparkFunSuite with BeforeAndAfterAll {
158
158
val shortProp = " spark.rpc.short.timeout"
159
159
conf.set(" spark.rpc.retry.wait" , " 0" )
160
160
conf.set(" spark.rpc.numRetries" , " 1" )
161
- val anotherEnv = createRpcEnv(conf, " remote" , 13345 )
161
+ val anotherEnv = createRpcEnv(conf, " remote" , 0 )
162
162
// Use anotherEnv to find out the RpcEndpointRef
163
163
val rpcEndpointRef = anotherEnv.setupEndpointRef(" local" , env.address, " ask-timeout" )
164
164
try {
@@ -420,7 +420,7 @@ abstract class RpcEnvSuite extends SparkFunSuite with BeforeAndAfterAll {
420
420
}
421
421
})
422
422
423
- val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 13345 )
423
+ val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 0 )
424
424
// Use anotherEnv to find out the RpcEndpointRef
425
425
val rpcEndpointRef = anotherEnv.setupEndpointRef(" local" , env.address, " sendWithReply-remotely" )
426
426
try {
@@ -460,7 +460,7 @@ abstract class RpcEnvSuite extends SparkFunSuite with BeforeAndAfterAll {
460
460
}
461
461
})
462
462
463
- val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 13345 )
463
+ val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 0 )
464
464
// Use anotherEnv to find out the RpcEndpointRef
465
465
val rpcEndpointRef = anotherEnv.setupEndpointRef(
466
466
" local" , env.address, " sendWithReply-remotely-error" )
@@ -500,7 +500,7 @@ abstract class RpcEnvSuite extends SparkFunSuite with BeforeAndAfterAll {
500
500
501
501
})
502
502
503
- val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 13345 )
503
+ val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 0 )
504
504
// Use anotherEnv to find out the RpcEndpointRef
505
505
val rpcEndpointRef = anotherEnv.setupEndpointRef(
506
506
" local" , env.address, " network-events" )
@@ -529,7 +529,7 @@ abstract class RpcEnvSuite extends SparkFunSuite with BeforeAndAfterAll {
529
529
}
530
530
})
531
531
532
- val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 13345 )
532
+ val anotherEnv = createRpcEnv(new SparkConf (), " remote" , 0 )
533
533
// Use anotherEnv to find out the RpcEndpointRef
534
534
val rpcEndpointRef = anotherEnv.setupEndpointRef(
535
535
" local" , env.address, " sendWithReply-unserializable-error" )
0 commit comments