Description
While running a Netty cluster, RaftClient is blocked after it submits a request to the leader which is partitioned from the cluster.
The attached test reproduces the problem. In the test, after the client connects to the leader, the leader is disconnected and another node is elected as the new leader. However, the client waits indefinitely for a reply from the previous one.
The test passes for Grpc and HadoopRpc, but fails with TestTimedOutException for Netty.