#98420 verifies that the election scheduler is not running when a cluster is stable, but this assertion does not hold in the `AtomicRegisterCoordinatorTests` suite. This issue tracks the work to investigate and fix up the problem.
server/src/test/java/org/elasticsearch/cluster/coordination/AtomicRegisterCoordinatorTests.java
) {
            assert latestPublishedConfiguration.getNodeIds().size() == 1;
            return voteCollection.isQuorum(latestPublishedConfiguration);
        }
        @Override
        public void onNewElection(DiscoveryNode localNode, long proposedTerm, ActionListener<StartJoinRequest> listener) {
            if (disruptElectionsSupplier.getAsBoolean()) {
                listener.onFailure(new IOException("simulating failure to acquire term during election"));
                return;
            }
            register.readCurrentTerm(listener.delegateFailure((l1, currentTerm) -> {
                final var electionTerm = Math.max(proposedTerm, currentTerm + 1);
                register.compareAndExchange(
                    currentTerm,
                    electionTerm,
                    l1.delegateFailure((l2, witness) -> ActionListener.completeWith(l2, () -> {
                        if (witness.equals(currentTerm)) {
                            return new StartJoinRequest(localNode, electionTerm);
                        } else {
                            throw new CoordinationStateRejectedException("couldn't claim " + electionTerm + ", current term is " + witness);
                        }
                    }))
                );
            }));
        }
        @Override
        public boolean isInvalidReconfiguration(
            ClusterState clusterState,
            CoordinationMetadata.VotingConfiguration lastAcceptedConfiguration,
            CoordinationMetadata.VotingConfiguration lastCommittedConfiguration