Fixed bug when trying to abort an already committed CommitBarrier
This commit is contained in:
parent
2cdfdb2e26
commit
5447520880
2 changed files with 5 additions and 3 deletions
|
|
@ -1189,9 +1189,11 @@ sealed class LocalActorRef private[akka](
|
||||||
// abort transaction set
|
// abort transaction set
|
||||||
if (isTransactionSetInScope) {
|
if (isTransactionSetInScope) {
|
||||||
val txSet = getTransactionSetInScope
|
val txSet = getTransactionSetInScope
|
||||||
|
if (!txSet.isCommitted) {
|
||||||
Actor.log.debug("Aborting transaction set [%s]", txSet)
|
Actor.log.debug("Aborting transaction set [%s]", txSet)
|
||||||
txSet.abort
|
txSet.abort
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
senderFuture.foreach(_.completeWithException(this, reason))
|
senderFuture.foreach(_.completeWithException(this, reason))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,7 @@ class RemoteServer extends Logging {
|
||||||
bootstrap.releaseExternalResources
|
bootstrap.releaseExternalResources
|
||||||
Cluster.deregisterLocalNode(hostname, port)
|
Cluster.deregisterLocalNode(hostname, port)
|
||||||
} catch {
|
} catch {
|
||||||
case e: java.nio.channels.ClosedChannelException => log.warning("Could not close remote server channel in a graceful way")
|
case e => log.warning("Could not close remote server channel in a graceful way")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue