Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/11250#discussion_r53547645
--- Diff:
extras/kinesis-asl/src/test/scala/org/apache/spark/streaming/kinesis/KinesisStreamSuite.scala
---
@@ -268,9 +270,9 @@ abstract class KinesisStreamTests(aggregateTestData:
Boolean) extends KinesisFun
// Verify that the recomputed RDDs are KinesisBackedBlockRDDs with the
same sequence ranges
// and return the same data
- val times = collectedData.keySet
+ val times = collectedData.synchronized { collectedData.keySet }
--- End diff --
I think you'd either have to make a copy of the key set being returned, or
synchronize the entire `foreach` block below. The set is (I believe) backed by
the collection and can be modified during iteratio.
---
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]