Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/16387#discussion_r95044381
--- Diff:
core/src/main/scala/org/apache/spark/util/collection/ExternalAppendOnlyMap.scala
---
@@ -115,6 +115,7 @@ class ExternalAppendOnlyMap[K, V, C](
private val keyComparator = new HashComparator[K]
private val ser = serializer.newInstance()
+ @volatile private var isReadingIterator: Boolean = false
--- End diff --
I'm a little confused. Isn't this having the same effect as just removing
the assert, since you're setting this to `true` right after instantiating
`readingIterator`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]