Skip to content

Fix testAckListenerReceivesNacksIfPublicationTimesOut#140514

Merged
DaveCTurner merged 2 commits intoelastic:mainfrom
DaveCTurner:2026/01/12/testAckListenerReceivesNacksIfPublicationTimesOut-fix
Jan 12, 2026
Merged

Fix testAckListenerReceivesNacksIfPublicationTimesOut#140514
DaveCTurner merged 2 commits intoelastic:mainfrom
DaveCTurner:2026/01/12/testAckListenerReceivesNacksIfPublicationTimesOut-fix

Conversation

@DaveCTurner
Copy link
Contributor

@DaveCTurner DaveCTurner commented Jan 12, 2026

This test is kinda bogus with an atomic register because it doesn't
actually time out as claimed. Nonetheless, we do want to know that the
nacks are genuinely delivered eventually under these conditions. This
commit adjusts the test to handle the relaxed lag detector introduced
in #140434.

Closes #140509

This test is kinda bogus with an atomic register because it doesn't
actually time out as claimed. Nonetheless, we do want to know that the
nacks are genuinely delivered eventually under these conditions. This
commit adjusts the test to handle the relaxed a lag detector introduced
in elastic#140434.

Closes elastic#140509
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v9.4.0 labels Jan 12, 2026
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination (obsolete) Meta label for Distributed Coordination team. Obsolete. Please do not use. label Jan 12, 2026
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)


follower0.heal();
follower1.heal();
cluster.stabilise();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain why this stabilise call doesn't lead to an eventual nack from the followers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's in this comment:

            // time out in this case. However, this means the nodes may remain lagging until the next cluster state update - there's no
            // master failover to resync them in this case. The nacks happen when the blackholed requests are processed.
Copy link
Contributor

@joshua-adams-1 joshua-adams-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DaveCTurner DaveCTurner merged commit a8f80be into elastic:main Jan 12, 2026
35 checks passed
@DaveCTurner DaveCTurner deleted the 2026/01/12/testAckListenerReceivesNacksIfPublicationTimesOut-fix branch January 12, 2026 18:24
szybia added a commit to szybia/elasticsearch that referenced this pull request Jan 12, 2026
…i-project-tests

* upstream/main: (23 commits)
  Fix `testAckListenerReceivesNacksIfPublicationTimesOut` (elastic#140514)
  Reduce priority of clear-cache tasks (elastic#139685)
  Add docs and tests about `StreamOutput` to memory (elastic#140365)
  ES|QL - dense_vector support for COUNT, PRESENT, ABSENT aggregator functions (elastic#139914)
  Add release notes for v9.2.4 release (elastic#140487)
  Add release notes for v9.1.10 release (elastic#140488)
  Add conncectors release notes for 9.1.10, 9.2.4 (elastic#140499)
  Add parameter support in PromQL query durations (elastic#139873)
  Improve testing of STS credentials reloading (elastic#140114)
  Fix zstd native binary publishing script to support newer versions (elastic#140485)
  Add FlattenedFieldBinaryVsSortedSetDocValuesSyntheticSourceIT (elastic#140489)
  Store fallback match only text fields in binary doc values (elastic#140189)
  [DiskBBQ] Use the new merge executor for intra-merge parallelism (elastic#139942)
  ESQL: introduce support for mapping-unavailable fields (elastic#140463)
  Add ESNextOSQVectorsScorerTests (elastic#140436)
  Disable high cardinality tests on release builds (elastic#140503)
  ESQL: TRange timezone support (elastic#139911)
  Directly compressing `StreamOutput` (elastic#140502)
  ES|QL - fix dense vector enrich bug (elastic#139774)
  Use CrossProjectModeDecider in RemoteClusterService (elastic#140481)
  ...
spinscale pushed a commit to spinscale/elasticsearch that referenced this pull request Jan 21, 2026
This test is kinda bogus with an atomic register because it doesn't
actually time out as claimed. Nonetheless, we do want to know that the
nacks are genuinely delivered eventually under these conditions. This
commit adjusts the test to handle the relaxed lag detector introduced
in elastic#140434.

Closes elastic#140509
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. Team:Distributed Coordination (obsolete) Meta label for Distributed Coordination team. Obsolete. Please do not use. >test Issues or PRs that are addressing/adding tests v9.4.0

3 participants