[ https://issues.apache.org/jira/browse/SPARK-11974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhongshuai Pei updated SPARK-11974: ----------------------------------- Description: deleting the temp dir like that {noformat} val a = mutable.Set(1,2,3,4,7,0,98,9,8) a.foreach(x => { a.remove(x) }) {noformat} You may not modify a collection while traversing or iterating over it. was: deleting the temp dir like that {noformat} val a = mutable.Set(1,2,3,4,7,0,98,9,8) a.foreach(x => { a.remove(x) }) {noformat} This is not right, it can not delete all element > Not all the temp dirs had been deleted when the JVM exits > ---------------------------------------------------------- > > Key: SPARK-11974 > URL: https://issues.apache.org/jira/browse/SPARK-11974 > Project: Spark > Issue Type: Bug > Components: Spark Core > Affects Versions: 1.5.2 > Reporter: Zhongshuai Pei > > deleting the temp dir like that > {noformat} > val a = mutable.Set(1,2,3,4,7,0,98,9,8) > a.foreach(x => { a.remove(x) }) > {noformat} > You may not modify a collection while traversing or iterating over it. > -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org