Skip to content

Commit c9a0481

Browse files
authored
[9.0][Test] Remove ASYNC translog durability in N-2 bwc upgrade tests (#121278) (#121520)
* [9.0][Test] Remove ASYNC translog durability in N-2 bwc upgrade tests (#121278) When adding support for upgrading closed indices in N-2 version, I randomized the Translog.Durability setting of the closed index with the aim to test the 2 phases closing process. This caused at least 1 test failure on Windows with the index being closed and the cluster upgraded before the synchronization of the translog had a chance to be executed. I think this cause the engine to be reset on the replica that is promoted as a primary, causing the loss of the operations that were not yet persisted. Closes #121257 Closes #121365 Closes #121423 * unmute
1 parent b87e317 commit c9a0481

File tree

3 files changed

+1
-23
lines changed

3 files changed

+1
-23
lines changed

muted-tests.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,6 @@ tests:
334334
- class: org.elasticsearch.upgrades.VectorSearchIT
335335
method: testBBQVectorSearch {upgradedNodes=0}
336336
issue: https://github.com/elastic/elasticsearch/issues/121253
337-
- class: org.elasticsearch.lucene.FullClusterRestartLuceneIndexCompatibilityIT
338-
issue: https://github.com/elastic/elasticsearch/issues/121257
339337
- class: org.elasticsearch.test.rest.ClientYamlTestSuiteIT
340338
issue: https://github.com/elastic/elasticsearch/issues/121269
341339
- class: org.elasticsearch.upgrades.VectorSearchIT
@@ -366,23 +364,12 @@ tests:
366364
- class: org.elasticsearch.xpack.security.profile.ProfileIntegTests
367365
method: testSuggestProfilesWithHint
368366
issue: https://github.com/elastic/elasticsearch/issues/121116
369-
- class: org.elasticsearch.upgrades.AddIndexBlockRollingUpgradeIT
370-
method: testAddBlock {upgradedNodes=2}
371-
issue: https://github.com/elastic/elasticsearch/issues/121365
372-
- class: org.elasticsearch.upgrades.AddIndexBlockRollingUpgradeIT
373-
method: testAddBlock {upgradedNodes=3}
374-
issue: https://github.com/elastic/elasticsearch/issues/121366
375-
- class: org.elasticsearch.upgrades.AddIndexBlockRollingUpgradeIT
376-
method: testAddBlock {upgradedNodes=1}
377-
issue: https://github.com/elastic/elasticsearch/issues/121367
378367
- class: org.elasticsearch.env.NodeEnvironmentTests
379368
method: testGetBestDowngradeVersion
380369
issue: https://github.com/elastic/elasticsearch/issues/121316
381370
- class: org.elasticsearch.ingest.geoip.FullClusterRestartIT
382371
method: testGeoIpSystemFeaturesMigration {cluster=UPGRADED}
383372
issue: https://github.com/elastic/elasticsearch/issues/121115
384-
- class: org.elasticsearch.lucene.RollingUpgradeLuceneIndexCompatibilityTestCase
385-
issue: https://github.com/elastic/elasticsearch/issues/121423
386373
- class: org.elasticsearch.index.engine.ShuffleForcedMergePolicyTests
387374
method: testDiagnostics
388375
issue: https://github.com/elastic/elasticsearch/issues/121336

qa/lucene-index-compatibility/src/javaRestTest/java/org/elasticsearch/lucene/FullClusterRestartLuceneIndexCompatibilityIT.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
import org.elasticsearch.cluster.metadata.IndexMetadata;
1313
import org.elasticsearch.common.settings.Settings;
14-
import org.elasticsearch.index.IndexSettings;
15-
import org.elasticsearch.index.translog.Translog;
1614
import org.elasticsearch.repositories.fs.FsRepository;
1715
import org.elasticsearch.test.cluster.util.Version;
1816

@@ -184,7 +182,6 @@ public void testClosedIndexUpgrade() throws Exception {
184182
Settings.builder()
185183
.put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1)
186184
.put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, randomInt(2))
187-
.put(IndexSettings.INDEX_TRANSLOG_DURABILITY_SETTING.getKey(), randomFrom(Translog.Durability.values()))
188185
.build()
189186
);
190187
indexDocs(index, numDocs);

qa/lucene-index-compatibility/src/javaRestTest/java/org/elasticsearch/lucene/RollingUpgradeLuceneIndexCompatibilityTestCase.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import org.elasticsearch.client.ResponseException;
1414
import org.elasticsearch.cluster.metadata.IndexMetadata;
1515
import org.elasticsearch.common.settings.Settings;
16-
import org.elasticsearch.index.IndexSettings;
17-
import org.elasticsearch.index.translog.Translog;
1816
import org.elasticsearch.repositories.fs.FsRepository;
1917
import org.elasticsearch.test.cluster.util.Version;
2018

@@ -189,11 +187,7 @@ public void testClosedIndexUpgrade() throws Exception {
189187
createIndex(
190188
client(),
191189
index,
192-
Settings.builder()
193-
.put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1)
194-
.put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 0)
195-
.put(IndexSettings.INDEX_TRANSLOG_DURABILITY_SETTING.getKey(), randomFrom(Translog.Durability.values()))
196-
.build()
190+
Settings.builder().put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1).put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 0).build()
197191
);
198192
indexDocs(index, numDocs);
199193
return;

0 commit comments

Comments
 (0)