vrozov commented on code in PR #52630:
URL: https://github.com/apache/spark/pull/52630#discussion_r2434241037
##########
connector/kinesis-asl/src/test/scala/org/apache/spark/streaming/kinesis/KPLBasedKinesisTestUtils.scala:
##########
@@ -53,6 +52,7 @@ private[kinesis] class KPLDataGenerator(regionName: String)
extends KinesisDataG
}
override def sendData(streamName: String, data: Seq[Int]): Map[String,
Seq[(Int, String)]] = {
+ val executor = Executors.newSingleThreadExecutor()
Review Comment:
Single thread executor helps to avoid synchronization in callbacks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]