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

[TASK] Postman and Karate test stacks sleep 3 s after every write

Aperta Adatta ai principianti
#38,225 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Una pull request collegata è già stata integrata.

  • #38226 di @swicken — integrata

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
74/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker-compose, java, postman

Direzione di ricerca

Leggi i tre file di configurazione indicati: dotcms-postman/pom.xml, dotcms-postman/docker-compose.yml e test-karate/pom.xml. Confronta le loro impostazioni del ritardo di svuotamento della cache con il breve ritardo dello stack di test di integrazione; mantieni sincroni i listener dei commit. Controlla la presenza di race condition temporali nei job CI di Postman e Karate e conferma che terminano più velocemente di prima.

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

Descrizione

Team : Platform Type : Test Automation
Description

The Postman and Karate test stacks set DOT_ASYNC_COMMIT_LISTENERS=false and leave NETWORK_CACHE_FLUSH_DELAY at its default of 3000 ms. With synchronous commit listeners, HibernateUtil.finalizeCommitListeners runs the cache flushers on the request thread, sleeps for that delay, and then flushes again. Nearly every write registers a flusher through CommitListenerCacheWrapper, so nearly every write request waits 3 seconds before it returns.

The affected files are:

  • dotcms-postman/pom.xml
  • dotcms-postman/docker-compose.yml
  • test-karate/pom.xml

The E2E stack had the same problem and was fixed in #38218. The integration tests already use a short delay.

Part of epic #34645 (CI/CD pipeline stability).

Evidence

In CI run 39993994634, newman request times fall into two groups. Reads finish in under a second, and writes take 3, 6 or 9 seconds. Rounding each request down to a multiple of 3 seconds gives these upper bounds on the time spent sleeping:

Job Sleep, at most Job length
Category Content 26 min 36.5 min
GraphQL 21.6 min 37.9 min
Default and Default Split, combined 49 min

These four are the slowest Postman jobs in PR CI.

Acceptance Criteria
  • The Postman and Karate stacks set a short cache-flush delay. The commit listeners stay synchronous, so tests still see committed state before a response returns.
  • Any timing races that the shorter delay exposes are fixed.
  • The Postman and Karate jobs pass in CI and take less time than before.
Lingua principale
Java
Stelle
972
Fork
489
Merge medio
2g 10h
PR unite (30g)
158

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 dotCMS/core

Tutte le issue di dotCMS/core

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.