gaborgsomogyi commented on a change in pull request #22138: [SPARK-25151][SS]
Apply Apache Commons Pool to KafkaDataConsumer
URL: https://github.com/apache/spark/pull/22138#discussion_r302987025
##########
File path:
external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaDataConsumerSuite.scala
##########
@@ -121,4 +134,167 @@ class KafkaDataConsumerSuite extends SharedSQLContext
with PrivateMethodTester {
threadpool.shutdown()
}
}
+
+ test("SPARK-25151 Handles multiple tasks in executor fetching same (topic,
partition) pair") {
+ val topic = "topic" + Random.nextInt()
+ prepareTestTopicHavingTestMessages(topic)
+ val topicPartition = new TopicPartition(topic, 0)
+
+ import ConsumerConfig._
+ val kafkaParams = Map[String, Object](
Review comment:
Maybe `kafkaParams` is common.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]