Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080662

ReadAllStream files not being deleted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 9
    • xml
    • None
    • generic
    • generic

      A report on OpenJDK mailing list :

      ==
      One of my customer encountered a disk full error and found
      that the /tmp was filled with files "jaxws<19 numbers>.bin".

      I could not find a known issue like it, but noticed that
      the jaxws code in openjdk may leave temporary files in the /tmp.

      I suggest a fix for the code as attached.

      Please note that I have not confirmed that the fix works,
      but I would like to show you it now because it may take
      some time to confirm, and necessity for the fix looks
      rather obvious for me.

      ===

      diff -r 45ef73bb85c1 -r 455600e57dd2 src/java.xml.ws/share/classes/com/sun/xml/internal/ws/transport/http/server/ServerConnectionImpl.java
      --- a/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/transport/http/server/ServerConnectionImpl.java Thu May 14 12:38:10 2015 -0700
      +++ b/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/transport/http/server/ServerConnectionImpl.java Tue May 19 10:09:15 2015 +0900
      @@ -168,6 +168,7 @@
               public void close() throws IOException {
                   if (!closed) {
                       readAll();
      + in.close();
                       super.close();
                       closed = true;
                   }
      @@ -195,6 +196,7 @@
                               // This causes problems for streaming in one-way cases
                               in.readAll();
                               try {
      + in.close();
                                   super.close();
                               } catch(IOException ioe) {
                                   // Ignoring purposefully.


      More info at http://mail.openjdk.java.net/pipermail/net-dev/2015-May/008982.html

            tkraus Tomas Kraus
            coffeys Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: