The master-is-stable indicator will retrieve useful information
regarding the discovery. This will be useful even if the local
cluster state is not recovered.

We currently do not evaluate the instance-has-master indicator
if the cluster state is not recovered, but we should remove this
constraint once master-is-stable is merged
server/src/test/java/org/elasticsearch/health/HealthServiceTests.java
HealthComponentResult component1 = health.stream()
                .filter(result -> result.name().equals("coordination"))
                .findAny()
                .orElseThrow();
            
            assertThat(component1.status(), is(equalTo(RED)));
            assertThat(component1.indicators(), is(notNullValue()));
            assertThat(component1.indicators().size(), is(equalTo(3)));
            
            HealthIndicatorResult hasMasterResult = component1.findIndicator("has_master");
            assertThat(hasMasterResult, is(equalTo(hasMaster)));
            
            HealthIndicatorResult networkLatencyResult = component1.findIndicator("network_latency");
            assertIndicatorIsUnknownStatus(networkLatencyResult);
            
            HealthIndicatorResult slowTasksResult = component1.findIndicator("slow_task_assignment");
            assertIndicatorIsUnknownStatus(slowTasksResult);
        }
        {
            HealthComponentResult component2 = health.stream().filter(result -> result.name().equals("data")).findAny().orElseThrow();
            
            assertThat(component2.status(), is(equalTo(UNKNOWN)));
            assertThat(component2.indicators(), is(notNullValue()));
            assertThat(component2.indicators().size(), is(equalTo(2)));
            
            HealthIndicatorResult hasStorageResult = component2.findIndicator("has_storage");
            assertThat(hasStorageResult, is(equalTo(hasStorage)));
            
            HealthIndicatorResult shardsAvailableResult = component2.findIndicator("shards_availability");
            assertIndicatorIsUnknownStatus(shardsAvailableResult);