make the code match the comment

This commit is contained in:
Sam Halliday 2023-02-23 14:20:04 +00:00
parent 831bc572ea
commit 4d04a2e05e

View file

@ -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"