Skip to content

Commit

Permalink
Always enable soft-deletes in CcrRollingUpgradeIT (#76797)
Browse files Browse the repository at this point in the history
* Remove AwaitsFix CcrRollingUpgradeIT (#76765)

Fixed in #60054

* Always enable soft-deletes in CcrRollingUpgradeIT (#76786)
  • Loading branch information
dnhatn authored Aug 21, 2021
1 parent 6ecb8e4 commit 5412228
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/
package org.elasticsearch.upgrades;

import org.elasticsearch.Version;
import org.elasticsearch.client.Request;
import org.elasticsearch.client.ResponseException;
import org.elasticsearch.client.RestClient;
Expand All @@ -23,13 +22,7 @@
import static org.hamcrest.Matchers.equalTo;

public class CcrRollingUpgradeIT extends AbstractMultiClusterUpgradeTestCase {

// TODO: Remove this empty test
public void testEmpty() {

}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/59625")

public void testUniDirectionalIndexFollowing() throws Exception {
logger.info("clusterName={}, upgradeState={}", clusterName, upgradeState);

Expand Down Expand Up @@ -305,10 +298,8 @@ public void testBiDirectionalIndexFollowing() throws Exception {
private static void createLeaderIndex(RestClient client, String indexName) throws IOException {
Settings.Builder indexSettings = Settings.builder()
.put("index.number_of_shards", 1)
.put("index.number_of_replicas", 0);
if (UPGRADE_FROM_VERSION.before(Version.V_7_0_0) || randomBoolean()) {
indexSettings.put("index.soft_deletes.enabled", true);
}
.put("index.number_of_replicas", 0)
.put("index.soft_deletes.enabled", true);
createIndex(client, indexName, indexSettings.build());
}

Expand Down

0 comments on commit 5412228

Please sign in to comment.