Skip to content

Commit b36ce2a

Browse files
DjvuLeesrowen
authored andcommitted
[SPARK-21064][CORE][TEST] Fix the default value bug in NettyBlockTransferServiceSuite
## What changes were proposed in this pull request? The default value for `spark.port.maxRetries` is 100, but we use 10 in the suite file. So we change it to 100 to avoid test failure. ## How was this patch tested? No test Author: DjvuLee <[email protected]> Closes apache#18280 from djvulee/NettyTestBug.
1 parent b7304f2 commit b36ce2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/test/scala/org/apache/spark/network/netty/NettyBlockTransferServiceSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ class NettyBlockTransferServiceSuite
8080
private def verifyServicePort(expectedPort: Int, actualPort: Int): Unit = {
8181
actualPort should be >= expectedPort
8282
// avoid testing equality in case of simultaneous tests
83-
actualPort should be <= (expectedPort + 10)
83+
// the default value for `spark.port.maxRetries` is 100 under test
84+
actualPort should be <= (expectedPort + 100)
8485
}
8586

8687
private def createService(port: Int): NettyBlockTransferService = {

0 commit comments

Comments
 (0)