Skip to content

Conversation

idegtiarenko
Copy link
Contributor

The test was failing when responseDelay == leaderCheckTimeoutMillis. This resulted in scheduling both handling the response and timeout at the same mills and executing them in random order. The fix makes it impossible to reply the same time as request is timed out as the behavior is not deterministic in such case.

Closes: #96124

The test was failing when responseDelay == leaderCheckTimeoutMillis.
This resulted in scheduling both handling the response and timeout at the same
mills and executing them in random order. The fix makes it impossible to
reply the same time as request is timedout as the behaviour is not determinitsic
 in such case.
@idegtiarenko idegtiarenko added >test-failure Triaged test failures from CI :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. auto-backport-and-merge v8.9.0 v7.17.11 labels May 22, 2023
@idegtiarenko idegtiarenko requested a review from DaveCTurner May 22, 2023 15:15
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
7.17

idegtiarenko added a commit to idegtiarenko/elasticsearch that referenced this pull request May 23, 2023
The test was failing when responseDelay == leaderCheckTimeoutMillis.
This resulted in scheduling both handling the response and timeout at the same
mills and executing them in random order. The fix makes it impossible to
reply the same time as request is timeout as the behavior is not deterministic
 in such case.
elasticsearchmachine pushed a commit that referenced this pull request May 23, 2023
The test was failing when responseDelay == leaderCheckTimeoutMillis.
This resulted in scheduling both handling the response and timeout at the same
mills and executing them in random order. The fix makes it impossible to
reply the same time as request is timeout as the behavior is not deterministic
 in such case.
@idegtiarenko idegtiarenko deleted the fix_testFollowerBehaviour branch May 23, 2023 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test-failure Triaged test failures from CI v7.17.11 v8.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] LeaderCheckerTests testFollowerBehaviour failing

3 participants