JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report JPPF-484  -  Invocation of tasks' onCancel() method is not clearly documented
Posted Dec 30, 2016 - updated Jan 17, 2017
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Closed
  • Assigned to
     lolo4j
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     lolo4j
  • Owned by
    Not owned by anyone
  • Category
    Documentation
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Reproducability
    Always
  • Severity
    Normal
  • Targetted for
    icon_milestones.png JPPF 5.2.4
Issue description
The documentation does not mention that, when a task executing in a node is cancelled, its onCancel() method is called after its execution completes, whether the cancellation succeeded or not.

We also need to describe a mechanism for a callback invoked immediately upon cancellation, wiht ht CancellationHandler interface.
Steps to reproduce this issue
N/A

#3
Comment posted by
 lolo4j
Jan 17, 08:19
Fixed in:

Fixed documentation, made CancellationHandler visible in the javadoc, added unit tests for CancellationHandler and Interruptibility