-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update log messages in core AMQP #24578
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
04e11d6
Fixing log messages in ReactorReceiver.
conniey f4a768a
Fix UnsupportedOperationException.
conniey eaddc5f
Fix log messages in RequestResponseChannel.
conniey 4cea832
Add connectionId to all ReactorExecutor messages.
conniey d3a7fab
Remove duplicated logging in ReactorConnection.
conniey c87216e
Removing :.
conniey da6ede8
FIXUP message.
conniey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,8 +169,8 @@ protected RequestResponseChannel(AmqpConnection amqpConnection, String connectio | |
receiveLinkHandler.getDeliveredMessages() | ||
.map(this::decodeDelivery) | ||
.subscribe(message -> { | ||
logger.verbose("connectionId[{}], linkName[{}]: Settling message: {}", connectionId, linkName, | ||
message.getCorrelationId()); | ||
logger.verbose("connectionId[{}], linkName[{}] messageId[{}]: Settling message.", connectionId, | ||
linkName, message.getCorrelationId()); | ||
|
||
settleMessage(message); | ||
}), | ||
|
@@ -214,7 +214,7 @@ protected RequestResponseChannel(AmqpConnection amqpConnection, String connectio | |
}); | ||
} catch (IOException | RejectedExecutionException e) { | ||
throw logger.logExceptionAsError(new RuntimeException(String.format( | ||
"connectionId[%s], linkName[%s]: Unable to open send and receive link.", connectionId, linkName), e)); | ||
"connectionId[%s] linkName[%s]: Unable to open send and receive link.", connectionId, linkName), e)); | ||
} | ||
} | ||
|
||
|
@@ -235,7 +235,7 @@ public Mono<Void> closeAsync() { | |
return Mono.fromRunnable(() -> { | ||
logger.info("connectionId[{}] linkName[{}] Timed out waiting for RequestResponseChannel to complete" | ||
+ " closing. Manually closing.", | ||
connectionId, linkName, error); | ||
connectionId, linkName); | ||
|
||
onTerminalState("SendLinkHandler"); | ||
onTerminalState("ReceiveLinkHandler"); | ||
|
@@ -319,7 +319,7 @@ public Mono<Message> sendWithAck(final Message message, DeliveryState deliverySt | |
return RetryUtil.withRetry(onActiveEndpoints, retryOptions, activeEndpointTimeoutMessage) | ||
.then(Mono.create(sink -> { | ||
try { | ||
logger.verbose("connectionId[{}], linkName[{}]: Scheduling on dispatcher. MessageId[{}]", | ||
logger.verbose("connectionId[{}], linkName[{}] messageId[{}]: Scheduling on dispatcher. ", | ||
connectionId, linkName, messageId); | ||
unconfirmedSends.putIfAbsent(messageId, sink); | ||
|
||
|
@@ -381,9 +381,9 @@ private void settleMessage(Message message) { | |
final MonoSink<Message> sink = unconfirmedSends.remove(correlationId); | ||
|
||
if (sink == null) { | ||
int size = unconfirmedSends.size(); | ||
logger.warning("connectionId[{}] linkName[{}] Received delivery without pending messageId[{}]. size[{}]", | ||
connectionId, linkName, id, size); | ||
logger.warning( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size is removed here. It doesn't tell us anything useful. |
||
"connectionId[{}] linkName[{}] messageId[{}] Received delivery without pending message.", | ||
connectionId, linkName, id); | ||
return; | ||
} | ||
|
||
|
@@ -411,12 +411,12 @@ private void handleError(Throwable error, String message) { | |
|
||
private void onTerminalState(String handlerName) { | ||
if (pendingLinkTerminations.get() <= 0) { | ||
logger.verbose("connectionId[{}] linkName[{}]: Already disposed send/receive links."); | ||
logger.verbose("connectionId[{}] linkName[{}] Already disposed send/receive links."); | ||
return; | ||
} | ||
|
||
final int remaining = pendingLinkTerminations.decrementAndGet(); | ||
logger.verbose("connectionId[{}] linkName[{}]: {} disposed. Remaining: {}", | ||
logger.verbose("connectionId[{}] linkName[{}] {} disposed. Remaining: {}", | ||
connectionId, linkName, handlerName, remaining); | ||
|
||
if (remaining == 0) { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated logging. will be logged in onConnectionShutdown and onConnectionError.