[Bug]: Fix OOM in integration test

Aperta
#9,201 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à
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
data, testing-qa

Direzione di ricerca

The failing case is the integration test json/0018_enhanced_json_output_streaming, which runs a shell command that writes a JSON file under a 128MB heap. Start with that test's workflow file and the Java program it runs, then check whether the JSON output transform streams rows or holds them in memory. Done means the test passes in CI without raising the heap limit.

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

Descrizione

awaiting triage Integration Testing P2 Transforms
Apache Hop version?

2.21.0-SNAPSHOT

Java version?

OpenJDK 21

Operating system

Other

What happened?

Failed: json.0018-enhanced-json-output-streaming

https://ci-builds.apache.org/job/Hop/job/Hop-integration-tests/lastCompletedBuild/testReport/(root)/json/0018_enhanced_json_output_streaming/

2026/11/01 07:51:20 - run-workflow - Start of workflow execution
2026/11/01 07:51:20 - run-workflow - Starting action [Start]
2026/11/01 07:51:20 - run-workflow - Finished action [Start] (result=[true])
2026/11/01 07:51:20 - run-workflow - Starting action [Run ${WORKFLOW_FILE}]
2026/11/01 07:51:20 - main-0018-enhanced-json-output-streaming - Start of workflow execution
2026/11/01 07:51:20 - main-0018-enhanced-json-output-streaming - Starting action [Start]
2026/11/01 07:51:20 - main-0018-enhanced-json-output-streaming - Finished action [Start] (result=[true])
2026/11/01 07:51:20 - main-0018-enhanced-json-output-streaming - Starting action [Write a JSON file larger than the heap]
2026/11/01 07:51:20 - Write a JSON file larger than the heap - Running on platform : Linux
2026/11/01 07:51:20 - Write a JSON file larger than the heap - Executing command : /tmp/hop_97eb2742-6afc-4ad3-981a-f83fe422156dshell
2026/11/01 07:51:40 - Write a JSON file larger than the heap - (stdout) Writing the JSON file with a 128MB heap failed:
2026/11/01 07:51:40 - Write a JSON file larger than the heap - (stdout) 2026/11/01 07:51:27 - General - Regional settings: language=en_US format=en_US timezone=GMT source=installation:OPERATING_SYSTEM
2026/11/01 07:51:40 - Write a JSON file larger than the heap - (stdout) Terminating due to java.lang.OutOfMemoryError: Java heap space
2026/11/01 07:51:40 - main-0018-enhanced-json-output-streaming - Finished action [Write a JSON file larger than the heap] (result=[false])
2026/11/01 07:51:40 - main-0018-enhanced-json-output-streaming - Starting action [Failure: the JSON file was not streamed]
2026/11/01 07:51:40 - Failure: the JSON file was not streamed - ERROR: Failure: the JSON file was not streamed
2026/11/01 07:51:40 - main-0018-enhanced-json-output-streaming - Stop workflow execution
2026/11/01 07:51:40 - main-0018-enhanced-json-output-streaming - Finished action [Failure: the JSON file was not streamed] (result=[false])
2026/11/01 07:51:40 - main-0018-enhanced-json-output-streaming - Workflow execution finished
2026/11/01 07:51:40 - main-0018-enhanced-json-output-streaming - Workflow duration : 20.336 seconds [ 20.336" ]
2026/11/01 07:51:40 - run-workflow - Finished action [Run ${WORKFLOW_FILE}] (result=[false])
2026/11/01 07:51:40 - run-workflow - Starting action [Abort workflow]
2026/11/01 07:51:40 - Abort workflow - ERROR: Aborting workflow.
2026/11/01 07:51:40 - run-workflow - Stop workflow execution
2026/11/01 07:51:40 - run-workflow - Finished action [Abort workflow] (result=[false])
2026/11/01 07:51:40 - run-workflow - Workflow execution finished
2026/11/01 07:51:40 - run-workflow - Workflow duration : 20.405 seconds [ 20.405" ]
Issue Priority

Priority: 2

Issue Component

Component: Transforms

Lingua principale
Java
Stelle
1.6k
Fork
499
Merge medio
1g 5h
PR unite (30g)
316

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 apache/hop

Tutte le issue di apache/hop

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.