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

test/javax/management/remote/mandatory/threads/ExecutorTest.java failing intermittently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • tbd
    • 8
    • core-svc


      This test has been failing intermittently for the last week or two. Attached is a sample .jtr from a test run on linux-x64. The JDK in question is an up-to-date build of jdk8/tl (currently = jdk8-b92 + Tl changes for b93 and b94 + queued up changes for b96).

      The RejectedExecutionException may be a clue to this failure, perhaps there is a timing bug in the test that results in an attempt to submit a task after the executor service has been shutdown.


      #Test Results (version 2)
      #Sun Jun 16 01:01:02 IST 2013
      #checksum:2ba0b84c2c2b15e2
      #-----testdescription-----
      $file=/u/alanb/ws/tl/jdk/test/javax/management/remote/mandatory/threads/ExecutorTest.java
      $root=/u/alanb/ws/tl/jdk/test
      author=Eamonn McManus
      keywords=bug6190873
      run=USER_SPECIFIED clean ExecutorTest\nUSER_SPECIFIED build ExecutorTest\nUSER_SPECIFIED main ExecutorTest\n
      source=ExecutorTest.java
      title=Tests that thread creation can use a user-supplied Executor

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

      #-----testresult-----
      description=file\:/u/alanb/ws/tl/jdk/test/javax/management/remote/mandatory/threads/ExecutorTest.java
      elapsed=3993 0\:00\:03.993
      end=Sun Jun 16 01\:01\:02 IST 2013
      environment=regtest
      execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.reflect.UndeclaredThrowableException
      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 clean build compile build main
      start=Sun Jun 16 01\:00\:58 IST 2013
      test=javax/management/remote/mandatory/threads/ExecutorTest.java
      user.name=albatem
      work=/u/alanb/testing/jtreg/JTwork/javax/management/remote/mandatory/threads

      #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:clean
      ----------messages:(3/113)----------
      command: clean ExecutorTest
      reason: User specified action: run clean ExecutorTest
      elapsed time (seconds): 0.002
      result: Passed. Clean successful

      #section:build
      ----------messages:(3/113)----------
      command: build ExecutorTest
      reason: User specified action: run build ExecutorTest
      elapsed time (seconds): 1.949
      result: Passed. Build successful

      #section:compile
      ----------messages:(3/208)----------
      command: compile -XDignore.symbol.file=true /u/alanb/ws/tl/jdk/test/javax/management/remote/mandatory/threads/ExecutorTest.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 1.949
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

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

      #section:main
      ----------messages:(3/111)----------
      command: main ExecutorTest
      reason: User specified action: run main ExecutorTest
      elapsed time (seconds): 2.042
      ----------System.out:(20/413)----------

      TEST: rmi
      Test with no executor in env
      Got notifications
      Test with null executor in env
      Got notifications
      Test with non-null executor in env
      Got notifications
      Executor was called enough times

      TEST: iiop
      Test with no executor in env
      Got notifications
      Test with null executor in env
      Got notifications
      Test with non-null executor in env
      Got notifications
      Executor was called enough times

      Ignoring protocol: jmxmp
      ----------System.err:(20/1522)----------
      java.lang.reflect.UndeclaredThrowableException
      at com.sun.proxy.$Proxy0.execute(Unknown Source)
      at com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.doRun(ClientNotifForwarder.java:554)
      at com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.run(ClientNotifForwarder.java:452)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:491)
      at ExecutorTest$CountInvocationHandler.invoke(ExecutorTest.java:239)
      ... 6 more
      Caused by: java.util.concurrent.RejectedExecutionException: Task com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher@221272ac rejected from java.util.concurrent.ThreadPoolExecutor@7c36e4ce[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 9]
      at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2050)
      at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)
      at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
      ... 10 more
      STATUS:Passed.
      STATUS:Failed.`main' threw exception: java.lang.reflect.UndeclaredThrowableException
      result: Failed. Execution failed: `main' threw exception: java.lang.reflect.UndeclaredThrowableException


      test result: Failed. Execution failed: `main' threw exception: java.lang.reflect.UndeclaredThrowableException

            jbachorik Jaroslav BachorĂ­k
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: