szetszwo commented on code in PR #1344:
URL: https://github.com/apache/ratis/pull/1344#discussion_r2778427690
##########
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:
@slfan1989 , thanks for catching the bug! We need to use
`Long.parseUnsignedLong` for uint64.
--
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]