contrueCT commented on PR #2906: URL: https://github.com/apache/incubator-hugegraph/pull/2906#issuecomment-3533045441
After analysis, I discovered that the three methods `getReplicatorGroup()`, `getState(Replicator replicator)`, and `getReplicatorState(PeerId peerId)` in `RaftEngine` and `PartitionEngine` are completely identical. Furthermore, the first two methods serve solely as private methods invoked by `getReplicatorState(PeerId peerId)`. Therefore, I merged them into a single `getReplicatorState(Node node, PeerId peerId)` method and placed it in the new utility class `RaftReflectionUtil.java` at `hugegraph-commons/hugegraph-common/src/main/java/org/apache/hugegraph/util/RaftReflectionUtil.java`. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
