Skip to content

Fix off-by-one in testDoesNotSubmitRerouteTaskTooFrequently#72313

Merged
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2021-04-27-fix-testDoesNotSubmitRerouteTaskTooFrequently
Apr 27, 2021
Merged

Fix off-by-one in testDoesNotSubmitRerouteTaskTooFrequently#72313
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2021-04-27-fix-testDoesNotSubmitRerouteTaskTooFrequently

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

We reroute when the elapsed time is >= 60000ms, but the test assumes
that no reroute happens exactly at 60000ms. This commit fixes this
off-by-one-ms error.

Relates #60869 which introduced this test issue
Relates #68316 which mostly fixed this test issue except this one spot
Closes #71424

We reroute when the elapsed time is >= 60000ms, but the test assumes
that no reroute happens exactly at 60000ms. This commit fixes this
off-by-one-ms error.

Relates elastic#60869 which introduced this test issue
Relates elastic#68316 which mostly fixed this test issue except this one spot
Closes elastic#71424
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) v8.0.0 v7.14.0 v7.13.1 labels Apr 27, 2021
@DaveCTurner DaveCTurner requested a review from tlrx April 27, 2021 14:16
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Apr 27, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Member

@tlrx tlrx 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 1d7dfde into elastic:master Apr 27, 2021
@DaveCTurner DaveCTurner deleted the 2021-04-27-fix-testDoesNotSubmitRerouteTaskTooFrequently branch April 27, 2021 15:32
DaveCTurner added a commit that referenced this pull request Apr 27, 2021
We reroute when the elapsed time is >= 60000ms, but the test assumes
that no reroute happens exactly at 60000ms. This commit fixes this
off-by-one-ms error.

Relates #60869 which introduced this test issue
Relates #68316 which mostly fixed this test issue except this one spot
Closes #71424
DaveCTurner added a commit that referenced this pull request Apr 27, 2021
We reroute when the elapsed time is >= 60000ms, but the test assumes
that no reroute happens exactly at 60000ms. This commit fixes this
off-by-one-ms error.

Relates #60869 which introduced this test issue
Relates #68316 which mostly fixed this test issue except this one spot
Closes #71424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v7.13.0 v7.14.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] DiskThresholdMonitorTests testDoesNotSubmitRerouteTaskTooFrequently failing

5 participants