Closed
Description
org.springframework.data.neo4j.core.support.RetryExceptionPredicate
contains two exception messages that are retryable;
private static final Set<String> RETRYABLE_ILLEGAL_STATE_MESSAGES = Set.of(
"Transaction must be open, but has already been closed.",
"Session must be open, but has already been closed.");
Neither of these messages appear anywhere in the code base. However, very similar messages (without a trailing dot) appear in exceptions raised in org.springframework.data.neo4j.core.transaction.Neo4jTransactionHolder
. Given these exceptions should be retryable, these exception messages should match.
(Background; we've been wondering why some exceptions weren't being retried in our code base - finally narrowed it down to this!)