S03020
Error Code
S03020
Error Message
The leader has not been elected. Try again later. RefId: S03020
Probable Causes
When using the getStreamingLeader
function to obtain the leader of
HA streaming, this error is raised if the leader is being switched,
specifically:
- The high-availability group has not elected a leader yet.
- Subscription on the high-availability has not be rebuilt yet.
Solutions
- Wait for seconds and try again.
- Implement a loop to repeatedly attempt the
getStreamingLeader
function until it succeeds withtry-catch
.