add more debug logging if recovery thread got iterrupted

This commit is contained in:
Simon Willnauer 2014-11-19 15:14:52 +01:00
parent 06fafa3ed9
commit 923ddcce42
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,7 @@ public class RecoveryStatus extends AbstractRefCounted {
/** set a thread that should be interrupted if the recovery is canceled */
public void setWaitingRecoveryThread(Thread thread) {
ensureRefCount();
waitingRecoveryThread.set(thread);
}
@ -160,6 +161,7 @@ public class RecoveryStatus extends AbstractRefCounted {
final Thread thread = waitingRecoveryThread.get();
if (thread != null) {
logger.debug("interrupting recovery thread on canceled recovery");
thread.interrupt();
}
}