You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2018/11/01 03:53:55 UTC

[GitHub] windhamwong edited a comment on issue #3048: Kafka spout

windhamwong edited a comment on issue #3048: Kafka spout
URL: https://github.com/apache/incubator-heron/issues/3048#issuecomment-434922673
 
 
   For reference
   `
   def next_tuple(self):
       msg = self.CONFLUENT_CONSUMER.poll(0.1)
       if msg is None:
         return
   
       if msg.error():
         if msg.error().code() == KafkaError._PARTITION_EOF:
           return
         else:
           self.log("[*] [ERROR] " + msg.error())
           return
   
       self.emit([msg.value()])
   `

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services