Skip to content

Commit 0ee5642

Browse files
Harsh GuptaHarsh Gupta
authored andcommitted
Changing the loop condition to halt at the first match in the property list for RpcEnv exception catch
1 parent f74064d commit 0ee5642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/rpc/RpcEnv.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ object RpcTimeout {
266266
// Find the first set property or use the default value with the first property
267267
val itr = timeoutPropList.iterator
268268
var foundProp = (timeoutPropList.head,defaultValue)
269-
while (itr.hasNext){
269+
while (itr.hasNext && (foundProp == (timeoutPropList.head,defaultValue))){
270270
val propKey = itr.next()
271271
conf.getOption(propKey) match {
272272
case Some(prop) => foundProp = (propKey,prop)

0 commit comments

Comments
 (0)