Flaky startup, no db transaction in context, when using postgresql

Description

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [ERROR] 12:03:10,635 [main] (NodeStartup.kt:137) internal.Node.run - Exception during node startup {} java.lang.IllegalStateException: Was expecting to find transaction set on current strand: Thread[main,5,main] at net.corda.nodeapi.internal.persistence.DatabaseTransactionKt.getContextTransaction(DatabaseTransaction.kt:24) ~[corda-node-api-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.nodeapi.internal.persistence.DatabaseTransactionKt.currentDBSession(DatabaseTransaction.kt:19) ~[corda-node-api-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.utilities.AppendOnlyPersistentMapBase.loadValue(AppendOnlyPersistentMap.kt:128) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.utilities.AppendOnlyPersistentMap$cache$1.invoke(AppendOnlyPersistentMap.kt:161) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.utilities.AppendOnlyPersistentMap$cache$1.invoke(AppendOnlyPersistentMap.kt:147) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.utilities.NonInvalidatingCache$NonInvalidatingCacheLoader.load(NonInvalidatingCache.kt:39) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalLoadingCache.lambda$new$0(BoundedLocalCache.java:3366) ~[caffeine-2.6.2.jar:?] at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2039) ~[caffeine-2.6.2.jar:?] at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853) ~[?:1.8.0_162] at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2037) ~[caffeine-2.6.2.jar:?] at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2020) ~[caffeine-2.6.2.jar:?] at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112) ~[caffeine-2.6.2.jar:?] at com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:67) ~[caffeine-2.6.2.jar:?] at net.corda.node.utilities.NonInvalidatingCache.get(NonInvalidatingCache.kt) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.utilities.AppendOnlyPersistentMapBase.get(AppendOnlyPersistentMap.kt:42) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.services.identity.PersistentIdentityService.certificateFromCordaX500Name(PersistentIdentityService.kt:160) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.services.identity.PersistentIdentityService.wellKnownPartyFromX500Name(PersistentIdentityService.kt:168) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.services.identity.PersistentIdentityService.wellKnownPartyFromAnonymous(PersistentIdentityService.kt:176) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.services.network.NetworkMapCacheImpl.getNodeByLegalIdentity(PersistentNetworkMapCache.kt:75) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.services.network.NetworkMapUpdater.updateNodeInfo(NetworkMapUpdater.kt:69) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.internal.AbstractNode.start(AbstractNode.kt:357) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.internal.Node.start(Node.kt:363) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.internal.EnterpriseNode.start(EnterpriseNode.kt:171) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.internal.NodeStartup.startNode(NodeStartup.kt:157) ~[corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.internal.NodeStartup.run(NodeStartup.kt:131) [corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?] at net.corda.node.Corda.main(Corda.kt:26) [corda-node-R3.CORDA-3.0-SNAPSHOT.jar:?]

Status

Assignee

Shams Asari

Reporter

Andras Slemmer

Labels

None

Priority

Medium

Fix versions

Ported to...

None

Feature Team

Network Services

Severity

Medium

Sprint

None

Affects versions

R3 Corda 3.0 Dev Preview 3
Configure