This patch makes it so that canceling a shard election also sets our local isLeader state to false.
Commit 1707062 from Mark Miller in branch 'dev/trunk'
[ https://svn.apache.org/r1707062 ]
SOLR-8072: Rebalance leaders feature does not set CloudDescriptor#isLeader to false when bumping leaders.
Commit 1707063 from Mark Miller in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1707063 ]