Uploaded image for project: 'Apache Helix'
  1. Apache Helix
  2. HELIX-537

org.apache.helix.task.TaskStateModel should have a shutdown method.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.6.3
    • 0.6.5
    • helix-core
    • None

    Description

      There should be a shutdown method to terminate the Timer and Executor which the org.apache.helix.task.TaskStateModel class creates.

      ie.

      public boolean shutdown(long timeout, TimeUnit unit)
        throws InterruptedException
      {
        reset();
        _taskExecutor.shutdown();
        _timer.cancel();
        return _taskExecutor.awaitTermination(timeout, unit);
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            atcurtis Antony T Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: