Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6926

"java.io.IOException: Stream closed" warning from Drill RDBMS tests

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 1.14.0
    • Fix Version/s: Future
    • Component/s: Tools, Build & Test
    • Labels:

      Description

      Drill RDBMS integration tests show warnings in the process of running:

      [INFO] --- jcabi-mysql-maven-plugin:0.9:stop (mysql-test) @ drill-jdbc-storage ---
      [INFO] Stopping embedded Derby database
      [INFO] #stop(34374): in 313.08µs
      [INFO] #reusedExistingDatabase(): false in 14.77µs
      [INFO] set Maven property jcabi.reused.database = false 
      [WARNING] escalated exception: java.lang.IllegalStateException: java.io.IOException: Stream closed
      	at com.jcabi.log.VerboseRunnable$1.run(VerboseRunnable.java:139)
      	at com.jcabi.log.VerboseRunnable.run(VerboseRunnable.java:198)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.io.IOException: Stream closed
      	at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
      	at java.io.BufferedInputStream.read1(BufferedInputStream.java:283)
      	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
      	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
      	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
      	at java.io.InputStreamReader.read(InputStreamReader.java:184)
      	at java.io.
      

      It relates to jcabi-mysql-maven-plugin.
      The issue was resolved for a long time ago for com.jcabi:jcabi-mysql-maven-plugin:1.0-SNAPSHOT version:
      https://github.com/jcabi/jcabi-mysql-maven-plugin/issues/30
      https://github.com/jcabi/jcabi-mysql-maven-plugin/pull/53
      http://www.rultor.com/t/1391-67978465

      But the last version of this plugin in Maven repo is 0.9

      To solve the issue it is necessary to update the plugin version, once 1.0 version is released and check that all Drill tests pass without failures and this warning.

      To run tests use:
      mvn clean install -pl contrib/storage-jdbc to run tests on 1.15.0 Drill version and
      mvn integration-test failsafe:integration-test -pl contrib/storage-jdbc on 1.14.0 Drill version and below.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vitalii Vitalii Diravka
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified