java.io.IOException: Stream closed ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.read1(BufferedInputStream.java:283) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.read(BufferedInputStream.java:345) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.FilterInputStream.read(FilterInputStream.java:107) ~[na:1.8.0_40]

Apache's JIRA Issue Tracker | Alex Liu | 1 year ago
  1. 0

    We find this issue still exists in 1.3.1 {code} ERROR [Thread-6] 2015-07-28 22:49:57,653 SparkWorker-0 ExternalLogger.java:96 - Error writing stream to file /var/lib/spark/worker/worker-0/app-20150728224954-0003/0/stderr ERROR [Thread-6] 2015-07-28 22:49:57,653 SparkWorker-0 ExternalLogger.java:96 - java.io.IOException: Stream closed ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.read1(BufferedInputStream.java:283) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.read(BufferedInputStream.java:345) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.FilterInputStream.read(FilterInputStream.java:107) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,655 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.logging.FileAppender.appendStreamToFile(FileAppender.scala:70) ~[spark-core_2.10-1.3.1.1.jar:1.3.1.1] ERROR [Thread-6] 2015-07-28 22:49:57,655 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply$mcV$sp(FileAppender.scala:39) [spark-core_2.10-1.3.1.1.jar:1.3.1.1] ERROR [Thread-6] 2015-07-28 22:49:57,655 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply(FileAppender.scala:39) [spark-core_2.10-1.3.1.1.jar:1.3.1.1] ERROR [Thread-6] 2015-07-28 22:49:57,655 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply(FileAppender.scala:39) [spark-core_2.10-1.3.1.1.jar:1.3.1.1] ERROR [Thread-6] 2015-07-28 22:49:57,655 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.Utils$.logUncaughtExceptions(Utils.scala:1618) [spark-core_2.10-1.3.1.1.jar:1.3.1.1] ERROR [Thread-6] 2015-07-28 22:49:57,656 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.logging.FileAppender$$anon$1.run(FileAppender.scala:38) [spark-core_2.10-1.3.1.1.jar:1.3.1.1] {code} at https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/worker/ExecutorRunner.scala#L159 The process auto shuts down, but the log appenders are still running, which causes the error log messages.

    Apache's JIRA Issue Tracker | 1 year ago | Alex Liu
    java.io.IOException: Stream closed ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.read1(BufferedInputStream.java:283) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.read(BufferedInputStream.java:345) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.FilterInputStream.read(FilterInputStream.java:107) ~[na:1.8.0_40]
  2. 0

    Re: IOException: Stream closed with OS Process Sampler

    jmeter-user | 9 months ago | Sergio Boso
    java.io.IOException: Stream closed at >>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170) at >> java.io.BufferedInputStream.read1(BufferedInputStream.java:291) >>> at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
  3. 0

    Re: IOException: Stream closed with OS Process Sampler

    jmeter-user | 9 months ago | Ivan Rancati
    java.io.IOException: Stream closed at >>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170) at >>>> >>> java.io.BufferedInputStream.read1(BufferedInputStream.java:291) >>> >>>> at >>>> java.io.BufferedInputStream.read(BufferedInputStream.java:345)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The following tests are failinmg for the jdlk9/hs. They do not fail on jdk9/dev They only fail on windows: FAILED: sun/tools/jstatd/TestJstatdDefaults.java FAILED: sun/tools/jstatd/TestJstatdExternalRegistry.java FAILED: sun/tools/jstatd/TestJstatdPort.java FAILED: sun/tools/jstatd/TestJstatdPortAndServer.java FAILED: sun/tools/jstatd/TestJstatdServer.java They need to be fixed/excluded in jdk9/dev. STDERR: java.io.IOException: Stream closed at java.io.BufferedInputStream.getBufIfOpen(java.base@9-internal/BufferedInputStream.java:170) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:336) at java.io.BufferedInputStream.fill(java.base@9-internal/BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(java.base@9-internal/BufferedInputStream.java:286) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:345) at java.io.FilterInputStream.read(java.base@9-internal/FilterInputStream.java:107) at jdk.testlibrary.StreamPumper.run(StreamPumper.java:117) at java.util.concurrent.Executors$RunnableAdapter.call(java.base@9-internal/Executors.java:514) at java.util.concurrent.FutureTask.run(java.base@9-internal/FutureTask.java:264) at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:196) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) java.io.IOException: Stream Closed at java.io.FileInputStream.readBytes(java.base@9-internal/Native Method) at java.io.FileInputStream.read(java.base@9-internal/FileInputStream.java:255) at java.io.BufferedInputStream.fill(java.base@9-internal/BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(java.base@9-internal/BufferedInputStream.java:286) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:345) at java.io.FilterInputStream.read(java.base@9-internal/FilterInputStream.java:107) at jdk.testlibrary.StreamPumper.run(StreamPumper.java:117) at java.util.concurrent.Executors$RunnableAdapter.call(java.base@9-internal/Executors.java:514) at java.util.concurrent.FutureTask.run(java.base@9-internal/FutureTask.java:264) at jdk.testlibrary.StreamPumper$1.run(StreamPumper.java:196) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) java.lang.RuntimeException: No or invalid headline found, expected: [S0 S1 E O M CCS YGC YGCT FGC FGCT GCT]: expected true, was false at jdk.testlibrary.Asserts.fail(Asserts.java:540) at jdk.testlibrary.Asserts.assertTrue(Asserts.java:490) at JstatGCUtilParser.parse(JstatGCUtilParser.java:150) at JstatdTest.verifyJstatOutput(JstatdTest.java:206) at JstatdTest.runToolsAndVerify(JstatdTest.java:214) at JstatdTest.doTest(JstatdTest.java:325) at TestJstatdDefaults.main(TestJstatdDefaults.java:37) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:535) at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) JavaTest Message: Test threw exception: java.lang.RuntimeException JavaTest Message: shutting down test

    JDK Bug System | 4 months ago | Alejandro Murillo
    java.io.IOException: Stream closed at java.io.BufferedInputStream.getBufIfOpen(java.base@9-internal/BufferedInputStream.java:170) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:336) at java.io.BufferedInputStream.fill(java.base@9-internal/BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(java.base@9-internal/BufferedInputStream.java:286) at java.io.BufferedInputStream.read(java.base@9-internal/BufferedInputStream.java:345) at java.io.FilterInputStream.read(java.base@9-internal/FilterInputStream.java:107)
  6. 0

    Re: IOException: Stream closed with OS Process Sampler

    jmeter-user | 9 months ago | chaitanya bhatt
    java.io.IOException: Stream closed at > > java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170) at > java.io.BufferedInputStream.read1(BufferedInputStream.java:291)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Stream closed ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.read1(BufferedInputStream.java:283) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.read(BufferedInputStream.java:345) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.FilterInputStream.read(FilterInputStream.java:107) ~[na:1.8.0_40]

      at org.apache.spark.util.logging.FileAppender.appendStreamToFile()
    2. Spark
      Utils$.logUncaughtExceptions
      1. org.apache.spark.util.logging.FileAppender.appendStreamToFile(FileAppender.scala:70)[spark-core_2.10-1.3.1.1.jar:1.3.1.1]
      2. org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply$mcV$sp(FileAppender.scala:39)[spark-core_2.10-1.3.1.1.jar:1.3.1.1]
      3. org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply(FileAppender.scala:39)[spark-core_2.10-1.3.1.1.jar:1.3.1.1]
      4. org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply(FileAppender.scala:39)[spark-core_2.10-1.3.1.1.jar:1.3.1.1]
      5. org.apache.spark.util.Utils$.logUncaughtExceptions(Utils.scala:1618)[spark-core_2.10-1.3.1.1.jar:1.3.1.1]
      5 frames