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

Invalid regression test: sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWi

XMLWordPrintable

    • mantis
    • x86
    • linux
    • Verified



      Name: aaR10208 Date: 08/21/2002


      Filed By : J2SE-SQA [###@###.###
      JDK/JRE : jdk1.4.1-rc-b19, b18
      Testbase : Hopper-regression
      Platfor[s] : RH Linux 7.2
      Failing Test : sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java

      Here is a part of the test source code
      (file: sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java)
      =====
      HttpURLConnection urlc = (HttpURLConnection)url.openConnection ();
      InputStream is = urlc.getInputStream ();
      int c = 0;
      while (c != -1) {
      try {
      ! c=is.read();
      ! } catch (IOException ioe) {c = 0;}
      }
      =====
      On the Linux platform "java.net.SocketException: Connection reset" is thrown from inside InputStream.read()
      after the server closes connection.
      SocketException is subclass of the IOException, so the test falls into infinity loop.

      Test source location:
      =====================
      sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java

      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail15/results/hopper/b18/regtest/linux/redhat7.2_gnome_linux-12/workDir/test/sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.jtr

      How to reproduce:
      =================
      Compile and run the test on Linux box.
      Please note, that compilation of the test is neccessary step.
      If you directly invoke java program on the class files received by the previuos regression test run,
      the test could pass because of the wrong XServer.class (see also bugid#4734532 for more details).

      Test output:
      ============
      [...]
      ----------System.err:(0/0)----------
      result: Failed. Execution failed: Program `/net/linux-15/export/home/java/jdk1.4.1/linux/bin/java' interrupted! (timed out?)


      test result: Failed. Execution failed: Program `/net/linux-15/export/home/java/jdk1.4.1/linux/bin/java' interrupted! (timed out?)



      Specific Machine Info:
      ======================
      Hostname: linux-12
      Os: RH Linux 7.2

      ======================================================================

            michaelm Michael McMahon
            sundrsunw Sundr Sundr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: