mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
NetworkMapCache database backed (#1135)
Work on database backed NetworkMapCache Make NodeInfo JPA entity. Enable node startup with it's database network map cache. Fix schema. Make node not wait for finishing network map service registration if it successfully loaded data from database. Add tests for startup without NetworkMapService. * Rename networkMapRegistrationFuture Change networkMapRegistrationFuture to nodeReadyFuture, it no longer indicates the NetworkMapService registration, because we are able to run network without map service configured. * Partially integrate database into NetworkMapCache Full integrtion will come with service removal. Move MockServiceHubInternal to net.corda.node.testing * Add workaround to transaction scope race Temporary workaround to force isolated transaction (otherwise it causes race conditions when processing network map registration on network map node). * Remove WorldMapLocation from NodeInfo Infer the node's location based on X500 name Add serial number on NodeInfo For tests of running without NetworkMap, start nodes with nonexistent NetworkMap address Make clearNetworkMapCache callable via RPC.
This commit is contained in:
committed by
GitHub
parent
3e5fa9ee6a
commit
472ecc65c6
@ -45,8 +45,8 @@ class IntegrationTestingTutorial {
|
||||
val bobClient = bob.rpcClientToNode()
|
||||
val bobProxy = bobClient.start("bobUser", "testPassword2").proxy
|
||||
|
||||
aliceProxy.waitUntilRegisteredWithNetworkMap().getOrThrow()
|
||||
bobProxy.waitUntilRegisteredWithNetworkMap().getOrThrow()
|
||||
aliceProxy.waitUntilNetworkReady().getOrThrow()
|
||||
bobProxy.waitUntilNetworkReady().getOrThrow()
|
||||
// END 2
|
||||
|
||||
// START 3
|
||||
|
Reference in New Issue
Block a user