Mesh should wait on own cluster DB
- Dominant language
- Java
- Stars
- 593
- Forks
- 123
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 4
Description
```
11:28:51.411 [NODE1] DEBUG [main] - Adding edge type for label {HAS_CHANGELOG_ROOT}
11:28:51.415 [NODE1] DEBUG [main] - Adding edge type for label {HAS_BINARY_ROOT}
11:28:51.417 [NODE1] DEBUG [main] - Adding edge type for label {HAS_BINARY}
11:28:51.431 [NODE1] DEBUG [main] - Adding edge type for label {GraphFieldContainerEdgeImpl}
11:28:51.433 [NODE1] DEBUG [main] - Adding edge type for label {HAS_FIELD_CONTAINER}
11:28:51.518 [NODE1] ERROR [main] - Error while starting mesh
com.orientechnologies.orient.server.distributed.ODistributedException: Quorum (1) cannot be reached on server 'NODE1' database 'storage' because it is major than available nodes (0)
at com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseImpl.calculateQuorum(ODistributedDatabaseImpl.java:1071) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseImpl.send2Nodes(ODistributedDatabaseImpl.java:449) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.server.distributed.impl.ODistributedDatabaseImpl.send2Nodes(ODistributedDatabaseImpl.java:406) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.server.distributed.impl.ODistributedAbstractPlugin.sendRequest(ODistributedAbstractPlugin.java:630) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.server.distributed.impl.ODistributedAbstractPlugin.sendRequest(ODistributedAbstractPlugin.java:592) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.server.distributed.impl.ODistributedStorage.executeCommand(ODistributedStorage.java:473) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.server.distributed.impl.ODistributedStorage$2.call(ODistributedStorage.java:397) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.server.distributed.impl.ODistributedStorage$2.call(ODistributedStorage.java:394) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.server.distributed.impl.ODistributedAbstractPlugin.executeInDistributedDatabaseLock(ODistributedAbstractPlugin.java:1770) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.server.distributed.impl.ODistributedStorage.command(ODistributedStorage.java:393) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:68) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.core.metadata.schema.OClassEmbedded.setSuperClasses(OClassEmbedded.java:269) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.core.metadata.schema.OClassImpl.setSuperClass(OClassImpl.java:264) ~[mesh-server-0.31.2.jar:na]
at com.orientechnologies.orient.core.metadata.schema.OClassAbstractDelegate.setSuperClass(OClassAbstractDelegate.java:82) ~[mesh-server-0.31.2.jar:na]
at com.gentics.mesh.graphdb.OrientDBDatabase.addEdgeType(OrientDBDatabase.java:718) ~[mesh-server-0.31.2.jar:na]
at com.gentics.mesh.core.data.impl.GraphFieldContainerEdgeImpl.init(GraphFieldContainerEdgeImpl.java:37) ~[mesh-server-0.31.2.jar:na]
at com.gentics.mesh.core.data.impl.DatabaseHelper.init(DatabaseHelper.java:80) ~[mesh-server-0.31.2.jar:na]
at com.gentics.mesh.cli.BootstrapInitializerImpl.lambda$new$0(BootstrapInitializerImpl.java:154) ~[mesh-server-0.31.2.jar:na]
at com.gentics.mesh.cli.BootstrapInitializerImpl.syncIndex(BootstrapInitializerImpl.java:477) ~[mesh-server-0.31.2.jar:na]
at com.gentics.mesh.cli.BootstrapInitializerImpl.handleLocalData(BootstrapInitializerImpl.java:441) ~[mesh-server-0.31.2.jar:na]
at com.gentics.mesh.cli.BootstrapInitializerImpl.init(BootstrapInitializerImpl.java:308) ~[mesh-server-0.31.2.jar:na]
at com.gentics.mesh.cli.MeshImpl.run(MeshImpl.java:131) [mesh-server-0.31.2.jar:na]
at com.gentics.mesh.cli.MeshImpl.run(MeshImpl.java:95) [mesh-server-0.31.2.jar:na]
at com.gentics.mesh.server.ServerRunner.main(ServerRunner.java:60) [mesh-server-0.31.2.jar:na]
11:28:51.518 [NODE1] INFO [main] - Mesh shutting down...
11:28:51.869 [NODE1] INFO [hz._hzInstance_1_meshcr2019-prod@46906a4d.event-1] - Node {NODE1} Database {storage} changed status {NOT_AVAILABLE}
11:28:52.367 [NODE1] INFO [main] - Closing Elasticsearch REST client.
11:28:52.367 [NODE1] INFO [main] - Stopping Elasticsearch server.
11:28:53.367 [NODE1] INFO [main] - Terminating Elasticsearch process..
11:28:54.371 [] INFO [main] - Shutdown completed...
```
Mesh should wait in the Bootstrap Initialization for its own database to get ready. Otherwise the startup will fail with the shown exception.
Contributor guide
Assessment
This issue has not been assessed yet.