lhotari commented on a change in pull request #13057:
URL: https://github.com/apache/pulsar/pull/13057#discussion_r769862398
##########
File path:
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java
##########
@@ -1173,7 +1173,7 @@ static OpSendMsg create(MessageImpl<?> msg, ByteBufPair
cmd, long sequenceId, Se
op.cmd = cmd;
op.callback = callback;
op.sequenceId = sequenceId;
- op.createdAt = System.nanoTime();
+ op.createdAt = System.currentTimeMillis();
Review comment:
> Perhaps we could continue using `system.nanotime()` and convert `ns`
to `second` only before logging? What do you think? @merlimat @michaeljmarshall
This would be the correct solution since System.nanotime should be used for
measuring durations.
--
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]