Aias00 opened a new pull request, #10891:
URL: https://github.com/apache/rocketmq/pull/10891

   ## What is the purpose of the change
   
   Malformed or missing gRPC language metadata reached `LanguageCode.valueOf` 
and was reported as a server-side `INTERNAL` error.
   
   Closes #10890
   
   ## Brief changelog
   
   - centralize gRPC client language parsing in `ClientActivity`;
   - reject blank and unknown values with `Code.BAD_REQUEST`;
   - use the same validation for telemetry registration and client termination;
   - add a telemetry regression test that verifies invalid language maps to 
gRPC `INVALID_ARGUMENT`.
   
   ## Verifying this change
   
   ```bash
   JAVA_HOME=$(/usr/libexec/java_home -v 1.8) PATH="$JAVA_HOME/bin:$PATH" \
     mvn -q -pl proxy -am -Dtest=ClientActivityTest -DfailIfNoTests=false test
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to