[ https://issues.apache.org/jira/browse/SPARK-21234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-21234. ------------------------------- Resolution: Invalid Not if it's known the value exists. I don't see you've established any actual problem here. Please read http://spark.apache.org/contributing.html > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org