Derby
  1. Derby
  2. DERBY-1114

derbynet/testSecMec.java fails intermittently and test exits mysteriously when server is shutdown as part of the testrun.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 10.2.1.6
    • Fix Version/s: None
    • Component/s: Network Server, Test
    • Labels:
      None
    • Environment:
      Java Version: 1.4.2_06
      Java Vendor: Sun Microsystems Inc.
      Java home: /usr/local/lib/j2sdk1.4.2_06/jre
      OS name: Linux
      OS architecture: i386
      OS version: 2.4.21-27.0.2.ELsmp

      Description

      The test derbynet/testSecMec.java fails intermittently in a strange way that the test actually exits before finishing the full test.

      This issue was noticed by Bryan when he ran derbyall with the derby-1080 fix. Some discussion and analysis that has been done is in Derby-1080. Please read comments in DERBY-1080. Some main links in
      http://issues.apache.org/jira/browse/DERBY-1080#action_12370260
      http://issues.apache.org/jira/browse/DERBY-1080#action_12370374

      In short: the test does some switching of System.out and System.err streams before calling networkserver.shutdown. This code was added to this test as part of fix for derby-273. for some reason, the networkserver.shutdown call makes the test to exit. One theory is that the network server.shutdown is causing the standard out streams to close and thus the test exits.

      – Need to investigate what is the cause for this intermittent failure and how/why networkserver.shutdown is closing the stream or making the test to exit prematurely.

      1. testSecMec_test_output.zip
        68 kB
        Kathey Marsden
      2. Stdout.java
        0.6 kB
        Knut Anders Hatlen
      3. Derby1114.diff.txt
        4 kB
        Sunitha Kambhampati

        Issue Links

          Activity

          Sunitha Kambhampati created issue -
          Sunitha Kambhampati made changes -
          Field Original Value New Value
          Attachment Derby1114.diff.txt [ 12324184 ]
          Knut Anders Hatlen made changes -
          Attachment Stdout.java [ 12324384 ]
          Bryan Pendleton made changes -
          Assignee Bryan Pendleton [ bryanpendleton ]
          Bryan Pendleton made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Sunitha Kambhampati made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Kathey Marsden made changes -
          Status Closed [ 6 ] Reopened [ 4 ]
          Resolution Won't Fix [ 2 ]
          Kathey Marsden made changes -
          Attachment testSecMec_test_output.zip [ 12338877 ]
          Bryan Pendleton made changes -
          Assignee Bryan Pendleton [ bryanpendleton ]
          Bryan Pendleton made changes -
          Link This issue relates to DERBY-1751 [ DERBY-1751 ]
          Myrna van Lunteren made changes -
          Resolution Duplicate [ 3 ]
          Status Reopened [ 4 ] Closed [ 6 ]
          Gavin made changes -
          Workflow jira [ 12352017 ] Default workflow, editable Closed status [ 12798103 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Sunitha Kambhampati
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development