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 2022/04/05 15:45:01 UTC

[GitHub] [pulsar] HQebupt commented on a diff in pull request #15019: [fix][client-producer] tweak the timeout msg before opMsg flush.

HQebupt commented on code in PR #15019:
URL: https://github.com/apache/pulsar/pull/15019#discussion_r842955211


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java:
##########
@@ -1408,9 +1408,11 @@ void sendComplete(final Exception e) {
                         te.getMessage(),
                         RelativeTimeUtil.nsToSeconds(ns - this.createdAt),
                         RelativeTimeUtil.nsToSeconds(this.firstSentAt <= 0
-                                ? ns - this.lastSentAt

Review Comment:
   It is interesting. Do you mean setting it to -1 as `firstSendAt` value if `firstSendAt <= 0`?



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org