private void dropLeadershipState() {
        if (isMaster) {
            eventLog.add(new ClusterEvent(ClusterEvent.Type.MASTER_ELECTION, "This node is no longer fleetcontroller master.", timer.getCurrentTimeInMillis()));
            firstAllowedStateBroadcast = Long.MAX_VALUE;
            failAllVersionDependentTasks();
        }
        wantedStateChanged = false;
        isMaster = false;
        inMasterMoratorium = false;
    }
Move tasks that are dependent on the most recently generated state being published into
a completion queue with a dependency on the provided version argument. Once that version
has been ACKed by all distributors in the system, those tasks will be marked as completed.
clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/FleetController.java