jenkinsci / jenkinsci/workflow-api-plugin

[JENKINS-72507] Jenkins log polluted with java.io.IOException: Stream Closed

Open
#514 0 comments 0 reactions 0 assignees View on GitHub
component:workflow-api-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
31
Forks
80
Avg merge
1d 16h
Merged PRs (30d)
1

Description

Jenkins log contains many entries as shown below. I believe these should be suppressed by isClosedChannelException() in https://github.com/jenkinsci/workflow-api-plugin/commit/12f6b094cead7aef96b57a0bf1d689147d678a15 :

WARNING o.j.p.w.l.GCFlushedOutputStream$FlushRef#lambda$static$0

java.io.IOException: Stream Closed

    at java.base/java.io.FileOutputStream.writeBytes(Native Method)

    at java.base/java.io.FileOutputStream.write(FileOutputStream.java:354)

    at org.apache.commons.io.output.ProxyOutputStream.write(ProxyOutputStream.java:147)

    at org.jenkinsci.plugins.workflow.log.DelayBufferedOutputStream$FlushControlledOutputStream.write(DelayBufferedOutputStream.java:127)

    at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)

    at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)

    at org.jenkinsci.plugins.workflow.log.GCFlushedOutputStream$FlushRef.lambda$static$0(GCFlushedOutputStream.java:98)

    at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)

    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)

    at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)

    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)

    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

    at java.base/java.lang.Thread.run(Thread.java:829)

---
Originally reported by ckullabosch, imported from: Jenkins log polluted with java.io.IOException: Stream Closed


  • status: Open
  • priority: Minor
  • component(s): workflow-api-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 20260601-173816

Raw content of original issue

Jenkins log contains many entries as shown below. I believe these should be suppressed by isClosedChannelException() in https://github.com/jenkinsci/workflow-api-plugin/commit/12f6b094cead7aef96b57a0bf1d689147d678a15 :

WARNING o.j.p.w.l.GCFlushedOutputStream$FlushRef#lambda$static$0
java.io.IOException: Stream Closed
    at java.base/java.io.FileOutputStream.writeBytes(Native Method)
    at java.base/java.io.FileOutputStream.write(FileOutputStream.java:354)
    at org.apache.commons.io.output.ProxyOutputStream.write(ProxyOutputStream.java:147)
    at org.jenkinsci.plugins.workflow.log.DelayBufferedOutputStream$FlushControlledOutputStream.write(DelayBufferedOutputStream.java:127)
    at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
    at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
    at org.jenkinsci.plugins.workflow.log.GCFlushedOutputStream$FlushRef.lambda$static$0(GCFlushedOutputStream.java:98)
    at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)

  • environment: workflow-api, Version 1283.v99c10937efcb_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.