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

TEST_BUG: test/java/rmi/transport/closeServerSocket/CloseServerSocket.java failing intermittently with "Address already in use"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b119

      Description


      With an up to date build of jdk8/tl then this test has failed a few times with "Address already in use".

      The tests are run with jtreg -agentvm -concurrency:auto so there is load on the system and potentially up to 8 RMI tests run concurrently (in different VMs). This may be an indication of a timing issue or it may be race condition that occurs when there is competition for TCP ports and resources.


      #Test Results (version 2)
      #Sun Jun 16 02:55:45 IST 2013
      #checksum:6bae4885a8e5cc1e
      #-----testdescription-----
      $file=/u/alanb/ws/tl/jdk/test/java/rmi/transport/closeServerSocket/CloseServerSocket.java
      $root=/u/alanb/ws/tl/jdk/test
      author=Peter Jones
      keywords=bug4457683 othervm
      library=../../testlibrary
      run=USER_SPECIFIED build TestLibrary\nUSER_SPECIFIED main/othervm CloseServerSocket\n
      source=CloseServerSocket.java
      title=After all of the remote objects (including a registry, if applicable) that had been exported with a given RMIServerSocketFactory value (including null) have been unexported, the server socket created for the exports should be closed (so that the local port is released).

      #-----environment-----

      #-----testresult-----
      description=file\:/u/alanb/ws/tl/jdk/test/java/rmi/transport/closeServerSocket/CloseServerSocket.java
      elapsed=210 0\:00\:00.210
      end=Sun Jun 16 02\:55\:45 IST 2013
      environment=regtest
      execStatus=Failed. Execution failed\: `main' threw exception\: java.net.BindException\: Address already in use
      hostname=ashtown.ie.oracle.com
      javatestOS=Linux 3.2.0-23-generic (amd64)
      javatestVersion=4.4
      jtregVersion=jtreg 4.1 dev b00
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build build main
      start=Sun Jun 16 02\:55\:45 IST 2013
      test=java/rmi/transport/closeServerSocket/CloseServerSocket.java
      user.name=albatem
      work=/u/alanb/testing/jtreg/JTwork/java/rmi/transport/closeServerSocket

      #section:script_messages
      ----------messages:(5/271)----------
      JDK under test: (/u/alanb/ws/tl/build/linux-x86_64-normal-server-release/images/j2sdk-image)
      java version "1.8.0-internal"
      Java(TM) SE Runtime Environment (build 1.8.0-internal-albatem_2013_06_08_08_40-b00)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b34, mixed mode)


      #section:build
      ----------messages:(3/109)----------
      command: build TestLibrary
      reason: User specified action: run build TestLibrary
      elapsed time (seconds): 0.0
      result: Passed. All files up to date

      #section:build
      ----------messages:(3/100)----------
      command: build CloseServerSocket
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0
      result: Passed. All files up to date

      #section:main
      ----------messages:(3/128)----------
      command: main CloseServerSocket
      reason: User specified action: run main/othervm CloseServerSocket
      elapsed time (seconds): 0.21
      ----------System.out:(0/0)----------
      ----------System.err:(26/1301)----------

      Regression test for bug 4457683

      - port 48250 is free
      - exported registry: RegistryImpl[UnicastServerRef [liveRef: [endpoint:[10.169.79.100:48250](local),objID:[0:0:0, 0]]]]
      - port 48250 is in use
      - unexported registry
      java.net.BindException: Address already in use
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:382)
      at java.net.ServerSocket.bind(ServerSocket.java:375)
      at java.net.ServerSocket.<init>(ServerSocket.java:237)
      at java.net.ServerSocket.<init>(ServerSocket.java:128)
      at CloseServerSocket.verifyPortFree(CloseServerSocket.java:91)
      at CloseServerSocket.main(CloseServerSocket.java:62)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:491)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:724)

      JavaTest Message: Test threw exception: java.net.BindException: Address already in use
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.net.BindException: Address already in use
      result: Failed. Execution failed: `main' threw exception: java.net.BindException: Address already in use


      test result: Failed. Execution failed: `main' threw exception: java.net.BindException: Address already in use

        Attachments

          Activity

            People

            • Assignee:
              coffeys Sean Coffey
              Reporter:
              alanb Alan Bateman
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: