Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAX_TIME_BETWEEN_REQUEST_RESPONSE can be changed by the user #1052

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fommil
Copy link

@fommil fommil commented Feb 23, 2023

Issue #, if available: #1051

Description of changes:

MAX_TIME_BETWEEN_REQUEST_RESPONSE can be changed by the user via a system property.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -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.
Copy link
Author

@fommil fommil Feb 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that the code in master is incorrect relative to the comment, since this triggers for 20 seconds not 11.

@stair-aws stair-aws added the v2.x Issues related to the 2.x version label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.x Issues related to the 2.x version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants