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

More detailed exception information returned when pulling messages #8028

Open
1 task done
asjfoajs opened this issue Apr 17, 2024 · 0 comments · May be fixed by #8029
Open
1 task done

More detailed exception information returned when pulling messages #8028

asjfoajs opened this issue Apr 17, 2024 · 0 comments · May be fixed by #8029

Comments

@asjfoajs
Copy link

Before Creating the Enhancement Request

  • I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

Returned on the first message pull
Failed to receive message for group InitDelContainerGroup: CODE: INTERNAL_SERVER-ERROR, MESSAGE: null NullPointerException Org. apache. locketmq. proxy. grpc. v2. consumer Received Message Activity. receiver Message (Received Message Activity. java: 66)
View code discovery

微信图片_20240417104009
微信图片_20240417104020

So when pulling messages without storing client information, I see that storing configuration messages is asynchronously submitted to the client thread pool, which means that the consumer was successfully created, but the configuration information has not been updated yet. When I delay pulling messages after starting the consumer for a period of time, there will be no error.
So I want to return more detailed information to analyze the problem

Motivation

This modification will be more conducive to troubleshooting problems than null pointer exceptions.

Describe the Solution You'd Like

I want to refer to the client's heartbeat method to determine if it is empty and return Code.UNRECOGNIZED_CLIENT_TYPE, "cannot find client settings for this client"

Describe Alternatives You've Considered

I didn't think about it

Additional Context

No response

@asjfoajs asjfoajs changed the title [Enhancement] Enhancement title More detailed exception information returned when pulling messages Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant