asjfoajs opened a new issue, #8028:
URL: https://github.com/apache/rocketmq/issues/8028

   ### Before Creating the Enhancement Request
   
   - [X] 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](https://github.com/apache/rocketmq/assets/52479111/ba4acace-b4a5-4f0a-85aa-fd84f26db4b5)
   
![微信图片_20240417104020](https://github.com/apache/rocketmq/assets/52479111/4f961b78-2da2-4831-b95a-ba9a4d67ec88)
   
   
   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_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to