make the code match the comment
This commit is contained in:
parent
831bc572ea
commit
4d04a2e05e
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ public class DiagnosticUtils {
|
|||
public static void takeDelayedDeliveryActionIfRequired(String resourceIdentifier, Instant enqueueTimestamp, Logger log) {
|
||||
final long durationBetweenEnqueueAndAckInMillis = Duration
|
||||
.between(enqueueTimestamp, Instant.now()).toMillis();
|
||||
if (durationBetweenEnqueueAndAckInMillis > MAX_TIME_BETWEEN_REQUEST_RESPONSE / 3) {
|
||||
if (durationBetweenEnqueueAndAckInMillis > 11000) {
|
||||
// The above condition logs the warn msg if the delivery time exceeds 11 seconds.
|
||||
log.warn(
|
||||
"{}: Record delivery time to shard consumer is high at {} millis. Check the ExecutorStateEvent logs"
|
||||
|
|
|
|||
Loading…
Reference in a new issue