-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-6980] [CORE] Akka timeout exceptions indicate which conf controls them (RPC Layer) #6205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
97523e0
78a2c0a
5b59a44
49f9f04
23d2f26
a294569
f74064d
0ee5642
4be3a8d
b7fb99f
c07d05c
235919b
2f94095
1607a5f
4351c48
7774d56
995d196
d3754d1
08f5afc
1b9beab
2206b4d
1517721
1394de6
c6cfd33
b05d449
fa6ed82
fadaf6f
218aa50
039afed
be11c4e
7636189
3a168c7
3d8b1ff
287059a
7f4d78e
6a1c50d
4e89c75
dbd5f73
7bb70f1
06afa53
46c8d48
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -265,15 +265,16 @@ object RpcTimeout { | |
|
|
||
| // Find the first set property or use the default value with the first property | ||
| val itr = timeoutPropList.iterator | ||
| var foundProp = (timeoutPropList.head,defaultValue) | ||
| while (itr.hasNext && (foundProp == (timeoutPropList.head,defaultValue))){ | ||
| var foundProp = None: Option[(String, String)] | ||
| while (itr.hasNext && foundProp.isEmpty){ | ||
| val propKey = itr.next() | ||
| conf.getOption(propKey) match { | ||
| case Some(prop) => foundProp = (propKey,prop) | ||
| case Some(prop) => foundProp = Some(propKey,prop) | ||
| case None => | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this could be |
||
| } | ||
| } | ||
| val timeout = { Utils.timeStringAsSeconds(foundProp._2) seconds } | ||
| new RpcTimeout(timeout, messagePrefix + foundProp._1) | ||
| val finalProp = foundProp.getOrElse(timeoutPropList.head, defaultValue) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Never mind. Looks it's long too. |
||
| val timeout = { Utils.timeStringAsSeconds(finalProp._2) seconds } | ||
| new RpcTimeout(timeout, messagePrefix + finalProp._1) | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the usual style for this is
var foundProp: Option[(String, String)] = None