You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/01/12 10:14:40 UTC

[GitHub] [pulsar] lichuan6 commented on issue #9186: record.getPublishTime return empty

lichuan6 commented on issue #9186:
URL: https://github.com/apache/pulsar/issues/9186#issuecomment-758553655


   In a pulsar cluster deployed in kubernetes(above), I got no value of PublishTime, however, in pulsar standalone cluster, I can got `PublishTime` from `msg.get().getPublishTime()` call.
   
   I also notice message's Eventtime maybe empty, any doc I can refer to when event time can be empty?
   
   ```
   batchRecords size: 7, responseCount:: 0, ack : 0, nack : 0, queue size: 0
   >>>> PublishTime : 1610446160465, Eventtime : Optional[11651379494838]
   >>>> PublishTime : 1610446160465, Eventtime : Optional[11651379494838]
   >>>> PublishTime : 1610446160465, Eventtime : Optional[11651379494838]
   >>>> PublishTime : 1610446160465, Eventtime : Optional[11651379494838]
   >>>> PublishTime : 1610446160465, Eventtime : Optional[11651379494838]
   >>>> PublishTime : 1610446160465, Eventtime : Optional[11651379494838]
   >>>> PublishTime : 1610446160465, Eventtime : Optional[11651379494838]
   >>>> PublishTime : 1610446160465, Eventtime : Optional[11651379494838]
   >>>> PublishTime : 1610446160465, Eventtime : Optional[11651379494838]
   >>>> PublishTime : 1610446160465
   >>>> PublishTime : 1610446160465
   >>>> PublishTime : 1610446160465
   >>>> PublishTime : 1610446160465
   >>>> PublishTime : 1610446160465
   >>>> PublishTime : 1610446160465
   batchRecords size: 9, responseCount:: 0, ack : 0, nack : 0, queue size: 0
   >>>> PublishTime : 1610446165464, Eventtime : Optional[11651379494838]
   >>>> PublishTime : 1610446165464, Eventtime : Optional[11651379494838]
   >>>> PublishTime : 1610446165464, Eventtime : Optional[11651379494838]
   ```
   
   Thanks


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