[TEST][Monitoring] Add support for earlier mapping version of cluster_stats in full cluster restart test
Original commit: elastic/x-pack-elasticsearch@2905df7e0e036edb4de58e38d5d41dd432c8f93b
@@ -421,7 +421,7 @@ public class FullClusterRestartIT extends ESRestTestCase {
private void waitForClusterStats(final String expectedVersion) throws Exception {
assertBusy(() -> {
final Map<String, String> params = new HashMap<>(3);
- params.put("q", "type:cluster_stats");
+ params.put("q", "type:cluster_stats _type:cluster_stats");
params.put("size", "1");
params.put("sort", "timestamp:desc");
