Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903814

Enhance reliability of jtharness Script timeout check

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • x86_64
    • linux_oracle_8

      The java/nio/channels/DatagramChannel/AdaptorBasic.java failed with a jtharness timeout error even though the jtreg test had passed. The source appears to be a timeout within the Script Alarm mechanism. This seems to be at odds with the recorded test execution times.


      java/nio/channels/DatagramChannel/AdaptorBasic.java failed - Error. test was interrupted! (timeout?)

      ----------messages:(9/357)----------
      command: main AdaptorBasic
      reason: User specified action: run main AdaptorBasic
      started: Mon Sep 02 16:57:00 UTC 2024
      Mode: agentvm
      Agent id: 18
      Additional exports to unnamed modules from @modules: java.base/java.net
      Additional opens to unnamed modules from @modules: java.base/java.net
      finished: Mon Sep 02 16:57:03 UTC 2024
      elapsed time (seconds): 2.954

      ----------System.out:(76/3716)----------

      dst: /127.0.0.1:39029
      socket: sun.nio.ch.DatagramSocketAdaptor@615fc396 bound to src: /[0:0:0:0:0:0:0:0]:43551, dst: /127.0.0.1:39029
      src: /[0:0:0:0:0:0:0:0]:43551
      timeout: 0
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 190
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]

      dst: /127.0.0.1:39029
      socket: sun.nio.ch.DatagramSocketAdaptor@105a4e9d bound to src: /[0:0:0:0:0:0:0:0]:59847, dst: /127.0.0.1:39029
      connect: sun.nio.ch.DatagramSocketAdaptor@105a4e9d
      src: /127.0.0.1:59847
      timeout: 0
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]

      dst: /127.0.0.1:39029
      socket: sun.nio.ch.DatagramSocketAdaptor@7605f996 bound to src: /[0:0:0:0:0:0:0:0]:41028, dst: /127.0.0.1:39029
      src: /[0:0:0:0:0:0:0:0]:41028
      timeout: 2147483647
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 100
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 101
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      rtt: 101
      post op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=42]

      dst: /100.103.50.144:45437
      socket: sun.nio.ch.DatagramSocketAdaptor@16d6e90 bound to src: /[0:0:0:0:0:0:0:0]:42794, dst: /100.103.50.144:45437
      src: /[0:0:0:0:0:0:0:0]:42794
      timeout: 10
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      Receive timed out, as expected
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      Receive timed out, as expected
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      Receive timed out, as expected
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      Receive timed out, as expected
      pre op: DatagramPacket[off=13, len=42] ip: DatagramPacket[off=19, len=81]
      Receive timed out, as expected
      ----------System.err:(3/35)----------

      ----------System.err:(3/35)----------

      JavaTest Message: Test complete.

      result: Passed. Execution successful


      test result: Error. test was interrupted! (timeout?)

        1. agent.trace
          5.04 MB
        2. harness.trace
          357 kB

            msheppar Mark Sheppard
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: