slfan1989 commented on code in PR #1344:
URL: https://github.com/apache/ratis/pull/1344#discussion_r2778549269


##########
ratis-grpc/src/main/java/org/apache/ratis/grpc/GrpcUtil.java:
##########
@@ -146,7 +146,7 @@ static long getCallId(Throwable t) {
       final Metadata trailers = ((StatusRuntimeException)t).getTrailers();
       if (trailers != null) {
         final String callId = trailers.get(CALL_ID);
-        return callId != null ? Integer.parseInt(callId) : -1;
+        return callId != null ? Long.parseLong(callId) : -1;

Review Comment:
   Thanks for your suggestion! I've updated it to use `Long.parseUnsignedLong` 
for correctly parsing the uint64 call-id.



-- 
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