#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
) {
            
            return false;
        }
        @Override
        public void beforeCommit(long term, long version, ActionListener<Void> listener) {
            
            if (disruptPublicationsSupplier.getAsBoolean()) {
                listener.onFailure(new IOException("simulating failure to verify term during publication"));
                return;
            }
            register.readCurrentTerm(listener.delegateFailure((l, currentTerm) -> ActionListener.completeWith(l, () -> {
                if (currentTerm == term) {
                    return null;
                } else {
                    assert term < currentTerm : term + " vs " + currentTerm;
                    throw new CoordinationStateRejectedException(
                        Strings.format(
                            "could not commit cluster state version %d in term %d, current term is now %d",
                            version,
                            term,
                            currentTerm
                        )
                    );
                }
            })));
        }
    }
    record PersistentClusterState(long term, long version, Metadata state) {}
    private static class SharedStore {