Skip to content

fix(shell): enable autoFlush on console PrintStream (#2267)#2518

Open
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:fix/2267-console-output-flush
Open

fix(shell): enable autoFlush on console PrintStream (#2267)#2518
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:fix/2267-console-output-flush

Conversation

@jbonofre
Copy link
Copy Markdown
Member

@jbonofre jbonofre commented Apr 5, 2026

System.out.print() without a newline was not displayed immediately on the Karaf console because the PrintStream wrapping the terminal output was created without autoFlush. Enable autoFlush on the local console and SSH command PrintStreams, consistent with ShellFactoryImpl.

This closes #2267

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

Test Results

141 files   -  93  141 suites   - 93   2m 14s ⏱️ - 20m 39s
635 tests  - 284  623 ✅  - 248  12 💤  - 36  0 ❌ ±0 
635 runs   - 288  623 ✅  - 252  12 💤  - 36  0 ❌ ±0 

Results for commit 4336469. ± Comparison against base commit 7740f7e.

This pull request removes 284 tests.
org.apache.karaf.audit.TestPerf ‑ Unknown test
org.apache.karaf.audit.logger.EventLoggerTest ‑ testFile
org.apache.karaf.audit.logger.EventLoggerTest ‑ testFileMaxFiles
org.apache.karaf.audit.logger.EventLoggerTest ‑ testFileSize
org.apache.karaf.audit.logger.EventLoggerTest ‑ testFileSizeCompress
org.apache.karaf.audit.logger.EventLoggerTest ‑ testTcp
org.apache.karaf.audit.logger.EventLoggerTest ‑ testUdp
org.apache.karaf.audit.util.FastDateFormatTest ‑ test
org.apache.karaf.audit.util.FastDateFormatTest ‑ testTimeZone
org.apache.karaf.docker.DockerClientTest ‑ testContainerLog
…

♻️ This comment has been updated with latest results.

System.out.print() without a newline was not displayed immediately on
the Karaf console because the PrintStream wrapping the terminal output
was created without autoFlush. Enable autoFlush on the local console
and SSH command PrintStreams, consistent with ShellFactoryImpl.
@jbonofre jbonofre force-pushed the fix/2267-console-output-flush branch from 8119645 to 4336469 Compare April 5, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Karaf console does not show the printed message without delay

1 participant