Skip to content

Add multi project test coverage to StableMasterHealthIndicatorServiceTests - #155686

Open
joshua-adams-1 wants to merge 3 commits into
mainfrom
mp-health-indicator-master-is-stable-extra-test-coverage
Open

Add multi project test coverage to StableMasterHealthIndicatorServiceTests#155686
joshua-adams-1 wants to merge 3 commits into
mainfrom
mp-health-indicator-master-is-stable-extra-test-coverage

Conversation

@joshua-adams-1

Copy link
Copy Markdown
Contributor

The health indicator is being made multi-project aware. The master_is_stable indicator is already cluster-wide, and so requires no changes. This change adds extra test coverage for the master_is_stable indicator on a multi-project cluster.

…Tests

The health indicator is being made multi-project aware. The `master_is_stable` indicator is already cluster-wide, and so requires no changes. This change adds extra test coverage for the `master_is_stable` indicator on a multi-project cluster.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates StableMasterHealthIndicatorServiceTests to exercise the master_is_stable health indicator in a multi-project cluster-state context, ensuring the indicator remains cluster-wide and is not affected by multi-project metadata/routing state.

Changes:

  • Build test ClusterState with multiple ProjectMetadata entries.
  • Build a matching GlobalRoutingTable containing per-project empty routing tables.
  • Wire the new multi-project metadata and routingTable into the test cluster-state builder used across the suite.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@joshua-adams-1
joshua-adams-1 requested a review from pxsalehi August 2, 2026 09:39
@joshua-adams-1
joshua-adams-1 marked this pull request as ready for review August 2, 2026 09:39
@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team. label Aug 2, 2026
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:Distributed Meta label for distributed team. v9.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants