markusthoemmes commented on a change in pull request #3913: Bump kafka-clients 
version to 2.0.0.
URL: 
https://github.com/apache/incubator-openwhisk/pull/3913#discussion_r206139555
 
 

 ##########
 File path: 
common/scala/src/main/scala/whisk/connector/kafka/KafkaConsumerConnector.scala
 ##########
 @@ -69,7 +70,7 @@ class KafkaConsumerConnector(
     val wakeUpTask = 
actorSystem.scheduler.scheduleOnce(cfg.sessionTimeoutMs.milliseconds + 
1.second)(consumer.wakeup())
 
     try {
-      val response = consumer.poll(duration.toMillis).asScala
+      val response = consumer.poll(duration).asScala
 
 Review comment:
   Yes I believe the need for wakeup still applies here. At the very least, 
`poll` is documented to still throw wakeup exceptions.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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

Reply via email to