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

Cassandra direct test harness hardcodes 127.0.0.1:9042 with no override

Aperta
#580 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

@Dodothereal ci sta già lavorando.

Dal 25/10/2026.

  • #586 di @Dodothereal — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
cassandra, rust
Ambito
databases, testing

Direzione di ricerca

In crates/storage-cassandra/tests/common/mod.rs, update test_config and skip_without_cassandra to read EXTENDDB_TEST_CASSANDRA_CONTACT_POINT, defaulting to 127.0.0.1:9042. Then update the header in devtools/run-cassandra-tests to document the variable beside EXTENDDB_TEST_CASSANDRA=required. Run the direct Cassandra test harness with the default and with an override to confirm both paths work.

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

Descrizione

backend:cassandra good first issue

Summary

The Cassandra direct test harness hardcodes its node: crates/storage-cassandra/tests/common/mod.rs::test_config sets contact_points to 127.0.0.1:9042, and skip_without_cassandra probes the same literal to decide whether to skip. There is no environment override. Two jobs or two developers on one host cannot run the suite against separate nodes, and a run whose 9042 is taken by another container (which happened three times on 2026-10-25 on a shared host) has no way to point the tests at its own node short of editing the harness.

The CI job runs one node on 9042 and is not affected. The three other backends' harnesses read their connection from an environment variable (EXTENDDB_TEST_PG_CONNECTION_STRING, EXTENDDB_TEST_MONGODB_URI).

Fix shape

Read the contact point from EXTENDDB_TEST_CASSANDRA_CONTACT_POINT with 127.0.0.1:9042 as the default in both functions, and mention the variable in devtools/run-cassandra-tests's header beside EXTENDDB_TEST_CASSANDRA=required.

Lingua principale
Rust
Stelle
517
Fork
60
Merge medio
4g 10h
PR unite (30g)
37

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 ExtendDB/extenddb

Tutte le issue di ExtendDB/extenddb

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.