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

java.util.concurrent.FutureTask#isDone method returns false, but Callable is running

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      Calling the isDone method returns false, but Callable is running. This is easily detected when the task is time-consuming

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1、Create a thread pool through Executors and submit a time-consuming task.
      2、Call the isDone of the returned Future, and the return result is false

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The submitted task has not started execution.
      ACTUAL -
      The submitted task is currently executing.

      CUSTOMER SUBMITTED WORKAROUND :
      Increase the RUNNING status between NEW and COMPLETING.

      FREQUENCY : always


            tongwan Andrew Wang
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: