slfan1989 opened a new pull request, #1344:
URL: https://github.com/apache/ratis/pull/1344
## What changes were proposed in this pull request?
The `GrpcUtil.getCallId()` method uses `Integer.parseInt()` to parse CallId
from gRPC metadata, which causes overflow when CallId exceeds Integer.MAX_VALUE
(2,147,483,647). This can result in incorrect CallId values or
NumberFormatException in high-throughput scenarios where CallId may grow beyond
32-bit integer range.
```
ratis-proto/src/main/proto/Raft.proto:117 RaftRpcRequestProto.callId uint64
ratis-proto/src/main/proto/Raft.proto:90 callId uint64
```
## What is the link to the Apache JIRA
JIRA: RATIS-2402. Fix CallId overflow when parsing gRPC metadata.
## How was this patch tested?
Add Junit 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]