Skip to content

Eliminating initial delay of CoordinationDiagnosticsService#beginPollingClusterFormationInfo for integration tests#89001

Merged
masseyke merged 3 commits intoelastic:mainfrom
masseyke:fix/CoordinationDiagnosticsServiceIT
Aug 1, 2022
Merged

Eliminating initial delay of CoordinationDiagnosticsService#beginPollingClusterFormationInfo for integration tests#89001
masseyke merged 3 commits intoelastic:mainfrom
masseyke:fix/CoordinationDiagnosticsServiceIT

Conversation

@masseyke
Copy link
Copy Markdown
Member

@masseyke masseyke commented Aug 1, 2022

CoordinationDiagnosticsService#beginPollingClusterFormationInfo schedules a task to run after an initial delay of
10 seconds. CoordinationDiagnosticsServiceIT is asserting that we have results in 10 seconds or less (using the
default assertBusy). This commit exposes a way for integration tests to change that initial delay so that we don't
waste 10 seconds waiting for the task to be scheduled.

@masseyke masseyke requested review from andreidan and dakrone August 1, 2022 16:58
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine elasticsearchmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Aug 1, 2022
@masseyke masseyke changed the title Increasing assertBusy time for test that takes right at 10 seconds Eliminating initial delay of CoordinationDiagnosticsService#beginPollingClusterFormationInfo for integration tests Aug 1, 2022
@masseyke masseyke merged commit 352a688 into elastic:main Aug 1, 2022
@masseyke masseyke deleted the fix/CoordinationDiagnosticsServiceIT branch August 1, 2022 18:42
masseyke added a commit to masseyke/elasticsearch that referenced this pull request Aug 1, 2022
elasticsearchmachine pushed a commit that referenced this pull request Aug 1, 2022
* backporting #88874

* Eliminating initial delay of CoordinationDiagnosticsService#beginPollingClusterFormationInfo for integration tests (#89001)
@masseyke
Copy link
Copy Markdown
Member Author

masseyke commented Aug 2, 2022

Relates to #89001

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

Labels

:Distributed/Health Issues for the health report API >non-issue Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v8.4.0 v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants