You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "wangjiaochun (JIRA)" <ji...@apache.org> on 2017/06/28 05:55:00 UTC
[jira] [Created] (SPARK-21234) When the function returns
Option[Iterator[_]] is None,then get on None will cause
java.util.NoSuchElementException: None.get
wangjiaochun created SPARK-21234:
------------------------------------
Summary: When the function returns Option[Iterator[_]] is None,then get on None will cause java.util.NoSuchElementException: None.get
Key: SPARK-21234
URL: https://issues.apache.org/jira/browse/SPARK-21234
Project: Spark
Issue Type: Bug
Components: Block Manager
Affects Versions: 2.1.1
Reporter: wangjiaochun
Class BlockManager {
...........................................
def getLocalValues(blockId: BlockId): Option[BlockResult] ={
...............................................
memoryStore.getValues(blockId).get
...............................................
}
..............................................
}
The above code getValues return three type values: None,IllegalArgumentException and normal ,if return None,Cause java.util.NoSuchElementException: None.get。so I think this is potential Bug;
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org