Skip to content

Instantly share code, notes, and snippets.

View ywelsch's full-sized avatar

Yannick Welsch ywelsch

View GitHub Profile
@ywelsch
ywelsch / SearchWithFailingNodesIT.java
Created May 20, 2022 09:46
testNoPartialSearchesDuringRollingRestart
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
package org.elasticsearch.search;
curl -s -H "Accept: application/vnd.github.symmetra-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/elastic/elasticsearch/labels?per_page=100 | jq '.[]'.name | grep ":" | grep -v ":Distributed/*" | sed -e 's/^/-label:/' | tr '\n' ' ' | sed -e 's/^/is:open is:issue label:">test-failure" /'
package org.elasticsearch.versioning;
import org.elasticsearch.ElasticsearchTimeoutException;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.action.index.IndexResponse;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.cluster.routing.ShardRouting;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.util.set.Sets;
import com.carrotsearch.randomizedtesting.RandomizedTest;
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;