getHaMvccLeader

Syntax

getHaMvccLeader(groupId)

Details

Retrieves the Leader node name of the specified HA Mvcc Raft group.

Parameters

groupId is an integer indicating the HA MVCC Raft group ID.

Returns

Returns a STRING scalar indicating the Leader node name.

Examples

getHaMvccLeader(2)
// output
"datanode8907"

Related function: haMvccTable