From a386e71cbdcd28cb0a780266702c0214ae828809 Mon Sep 17 00:00:00 2001 From: Clinton Date: Wed, 21 Mar 2018 15:00:46 +0000 Subject: [PATCH] Fixed a deadlock that occurs when running a split network map and doorman. (#470) --- .../persistence/PersistentCertificateSigningRequestStorage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateSigningRequestStorage.kt b/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateSigningRequestStorage.kt index 4a0df5cdb2..9d8ffae345 100644 --- a/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateSigningRequestStorage.kt +++ b/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateSigningRequestStorage.kt @@ -138,7 +138,7 @@ class PersistentCertificateSigningRequestStorage(private val database: CordaPers } override fun getRequests(requestStatus: RequestStatus): List { - return database.transaction { + return database.transaction(TransactionIsolationLevel.SERIALIZABLE) { val builder = session.criteriaBuilder val query = builder.createQuery(CertificateSigningRequestEntity::class.java).run { from(CertificateSigningRequestEntity::class.java).run {