You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "lwclover (via GitHub)" <gi...@apache.org> on 2026/09/03 00:43:54 UTC

Re: [PR] [ISSUE #10890] Validate gRPC client language metadata [rocketmq]

lwclover commented on code in PR #10891:
URL: https://github.com/apache/rocketmq/pull/10891#discussion_r3919999441


##########
proxy/src/main/java/org/apache/rocketmq/proxy/grpc/v2/client/ClientActivity.java:
##########
@@ -146,7 +146,7 @@ public CompletableFuture<NotifyClientTerminationResponse> notifyClientTerminatio
 
         try {
             String clientId = ctx.getClientID();
-            LanguageCode languageCode = LanguageCode.valueOf(ctx.getLanguage());

Review Comment:
   Could you clarify when `ctx.getLanguage()` can be empty or contain an invalid value?
   
   Since `LanguageCode.valueOf(ctx.getLanguage())` will throw an exception if the value is `null`, empty, or not a valid enum constant.
   



-- 
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-unsubscribe@rocketmq.apache.org

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