Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[TEST] Add a multi-shard integration test CI lane

Aperta
#5,738 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java
Ambito
ci-cd, testing

Direzione di ricerca

Inizia da TestUtils.createIndexByRestClient e segui il modo in cui i task integTest e integTestRemote passano le proprietà. Confronta gli esempi referenziati OpenSearchIntegTestCase e FieldSortIT, quindi esamina la configurazione CI del repository. Il lavoro è completato quando una lane integTest Linux opt-in con tre shard primari viene eseguita correttamente senza sovrascrivere i conteggi espliciti degli shard.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

PPL testing

Problem

Integration tests run against one primary shard by default. Queries and assertions that depend on unspecified encounter order can therefore pass in CI but return different results on real multi-shard indices. PR #5730 fixes several examples, and #5716 demonstrates the same class of behavior for FIRST, LAST, and TAKE.

OpenSearch core addresses this behaviorally. OpenSearchIntegTestCase randomizes index shard counts from 1 to 10, and its assertion helpers distinguish ordered results from order-insensitive membership checks. FieldSortIT.testSortDuelBetweenSingleShardAndMultiShardIndex is a concrete single-shard versus multi-shard comparison for sorted top results.

References:

Proposal

  1. Add a route-independent tests.integ.num_shards override in TestUtils.createIndexByRestClient with a default of 1.
  2. Apply the override only when the index definition does not explicitly set number_of_shards.
  3. Forward the property through integTest and integTestRemote.
  4. Add one Linux CI lane that runs integTest with three primary shards. Start it as non-required while existing failures are triaged, then make it required once green.
Lingua principale
Java
Stelle
175
Fork
233
Merge medio
2g 16h
PR unite (30g)
39

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di opensearch-project/sql

Tutte le issue di opensearch-project/sql

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.