boolean isMetadataGroupLeader ( ) { CPMemberInfo localCPMember = getLocalCPMember ( ) ; if ( localCPMember == null ) { return false ; } RaftNode raftNode = raftService . getRaftNode ( getMetadataGroupId ( ) ) ; return raftNode != null && ! raftNode . isTerminatedOrSteppedDown ( ) && localCPMember . equals ( raftNode . getLeader ( ) ) ; }
could return stale information