Skip to content

Commit

Permalink
TASK: CheckpointStorage refine rollback only error and link issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign authored Apr 2, 2024
1 parent 43b31f4 commit e5d9595
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public function updateAndReleaseLock(SequenceNumber $sequenceNumber): void
throw new \RuntimeException(sprintf('Failed to update and commit checkpoint for subscriber "%s" because no transaction is active', $this->subscriberId), 1652279314);
}
if ($this->connection->isRollbackOnly()) {
throw new \RuntimeException(sprintf('Failed to update and commit checkpoint for subscriber "%s" because the transaction has been marked for rollback only', $this->subscriberId), 1711964313);
// TODO as described in https://github.com/neos/neos-development-collection/issues/4970 we are in a bad state and cannot commit after a nested transaction was rolled back.
throw new \RuntimeException(sprintf('Failed to update and commit checkpoint for subscriber "%s" because the transaction has been marked for rollback only. See https://github.com/neos/neos-development-collection/issues/4970', $this->subscriberId), 1711964313);
}
try {
if (!$this->lockedSequenceNumber->equals($sequenceNumber)) {
Expand Down

0 comments on commit e5d9595

Please sign in to comment.