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

"Unmatched response message" log for every request #594

Open
zxdxjtu opened this issue Jan 26, 2022 · 0 comments
Open

"Unmatched response message" log for every request #594

zxdxjtu opened this issue Jan 26, 2022 · 0 comments

Comments

@zxdxjtu
Copy link

zxdxjtu commented Jan 26, 2022

I saw "Unmatched response message" log for every request.

With deep look in code, in TracingmessageConsumer.consumeMessageReceiving:132

TracingMessageConsumer.RequestMetadata requestMetadata = (TracingMessageConsumer.RequestMetadata)this.sentRequests.remove(method);
if (requestMetadata == null) {
    LOG.log(Level.WARNING, String.format("Unmatched response message: %s", message));
    return null;
}

this.sentRequests is always empty because the put operation is only called in TracingmessageConsumer.consumeMessageSending.

In parent function has this logic:

if (messageConsumer instanceof StreamMessageConsumer) {
	logString = consumeMessageSending(message, now, date);
} else if (messageConsumer instanceof RemoteEndpoint) {
	logString = consumeMessageReceiving(message, now, date);
}

If I am using web socket connecting, I am always calling consumeMessageReceiving and never use consumeMessageSending.
So the sentRequests is always empty and show warning logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant