Uploaded image for project: 'Corda'
  1. CORDA-1276

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

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects versions: R3 Corda 3.0 Dev Preview 3
    • Fix versions: Corda 3.1
    • Components: None
    • Labels:
      None

      Description

      [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:?]
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                shams.asari Shams Asari
                Reporter:
                removed1568415529 Former user (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: