Details
-
Task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
When we get a test failure because it was waiting for some kind of predicate, we don't get any details in the logs about what exactly was being waited for. For example, this real failure doesn't tell me that we were waiting for 1 shard with 4 replicas, which would have immediately clued me in to my programmer error.
org.apache.solr.client.solrj.impl.CloudSolrClientTest > singleShardedPreferenceRules FAILED java.lang.RuntimeException: Failed while waiting for active collection Timeout waiting to see state for collection=singleShardPreferenceTestColl :DocCollection(singleShardPreferenceTestColl//collections/singleShardPreferenceTestColl/state.json/9 )={ "pullReplicas":"1", "configName":"conf", "replicationFactor":"1", "shards":{"shard1":{ "range":"80000000-7fffffff", "state":"active", "replicas":{ "core_node4":{ "core":"singleShardPreferenceTestColl_shard1_replica_n1", "leader":"true", "core_node_name":"core_node4", "node_name":"127.0.0.1:37767_solr", "base_url":"https://127.0.0.1:37767/solr", "state":"active", "collection":"singleShardPreferenceTestColl", "shard":"shard1", "type":"NRT", "force_set_state":"false"}, "core_node5":{ "core":"singleShardPreferenceTestColl_shard1_replica_p2", "core_node_name":"core_node5", "node_name":"127.0.0.1:40999_solr", "base_url":"https://127.0.0.1:40999/solr", "state":"active", "collection":"singleShardPreferenceTestColl", "shard":"shard1", "type":"PULL", "force_set_state":"false"}, "core_node6":{ "core":"singleShardPreferenceTestColl_shard1_replica_t3", "core_node_name":"core_node6", "node_name":"127.0.0.1:38113_solr", "base_url":"https://127.0.0.1:38113/solr", "state":"active", "collection":"singleShardPreferenceTestColl", "shard":"shard1", "type":"TLOG", "force_set_state":"false"}}}}, "router":{"name":"compositeId"}, "nrtReplicas":"1", "tlogReplicas":"1"} Live Nodes: [127.0.0.1:37767_solr, 127.0.0.1:38113_solr, 127.0.0.1:40999_solr, 127.0.0.1:45869_solr] Last available state: DocCollection(singleShardPreferenceTestColl//collections/singleShardPreferenceTestColl/state.json/9 )={ "pullReplicas":"1", "configName":"conf", "replicationFactor":"1", "shards":{"shard1":{ "range":"80000000-7fffffff", "state":"active", "replicas":{ "core_node4":{ "core":"singleShardPreferenceTestColl_shard1_replica_n1", "leader":"true", "core_node_name":"core_node4", "node_name":"127.0.0.1:37767_solr", "base_url":"https://127.0.0.1:37767/solr", "state":"active", "collection":"singleShardPreferenceTestColl", "shard":"shard1", "type":"NRT", "force_set_state":"false"}, "core_node5":{ "core":"singleShardPreferenceTestColl_shard1_replica_p2", "core_node_name":"core_node5", "node_name":"127.0.0.1:40999_solr", "base_url":"https://127.0.0.1:40999/solr", "state":"active", "collection":"singleShardPreferenceTestColl", "shard":"shard1", "type":"PULL", "force_set_state":"false"}, "core_node6":{ "core":"singleShardPreferenceTestColl_shard1_replica_t3", "core_node_name":"core_node6", "node_name":"127.0.0.1:38113_solr", "base_url":"https://127.0.0.1:38113/solr", "state":"active", "collection":"singleShardPreferenceTestColl", "shard":"shard1", "type":"TLOG", "force_set_state":"false"}}}}, "router":{"name":"compositeId"}, "nrtReplicas":"1", "tlogReplicas":"1"}