dCache/dcache — pull request #931 by gbehrmann (2014-10-16 07:50:44+00:00)
Title: pool: Make migration task cancellation more robust

A recent bug as a side effect caused task cancellation to fail
because cancelCopy threw an NPE. As a result the task got stuck
in this state. This patch moves the timeout initiation to be the
first action when entering the Cancelling state. That way the task
would eventually have timed out.

Target: trunk
Request: 2.10
Require-notes: yes
Require-book: no
Acked-by: Albert Rossi
Acked-by: Paul Millar
Patch: https://rb.dcache.org/r/7364/
(cherry picked from commit 336ce076164187b5acc41afa255ba03956f81885)