Skip to content

Commit d9310c2

Browse files
fix retrieving serverId command for seed cluster section (#904) (#910)
The section for retrieving the serverId here https://neo4j.com/docs/operations-manual/current/clustering/databases/#cluster-designated-seeder is not correct. The docs use `SHOW SERVERS` which will return the name of the server, by default it has the same name as the serverId, but in case servers were renamed, using ``` RENAME SERVER `25a7efc7-d063-44b8-bdee-f23357f89f01` TO `primary1` ``` then it will not match anymore and trying to use `primary1` as serverId while following the documentation will lead to the following exception when seeding a cluster : ``` Could not create database with specified existingDataSeedInstance 'optimus-001'. Expected server uuid string. ``` This PR ensures that the correct serverId is returned when following the documentation. Co-authored-by: Christophe Willemsen <[email protected]>
1 parent 1f4d4c7 commit d9310c2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/ROOT/pages/clustering/databases.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,18 @@ Use any database to connect.
112112
+
113113
[source, cypher, role=noplay]
114114
----
115-
SHOW SERVERS;
115+
SHOW SERVERS YIELD serverId, name, address, state, health, hosting;
116116
----
117117
+
118118
[queryresult]
119119
----
120-
+------------------------------------------------------------------------------------------------------------+
121-
| name | address | state | health | hosting |
122-
+------------------------------------------------------------------------------------------------------------+
123-
| "25a7efc7-d063-44b8-bdee-f23357f89f01" | "localhost:7689" | "Enabled" | "Available" | ["system", "neo4j"] |
124-
| "782f0ee2-5474-4250-b905-4cd8b8f586ba" | "localhost:7688" | "Enabled" | "Available" | ["system", "neo4j"] |
125-
| "8512c9b9-d9e8-48e6-b037-b15b0004ca18" | "localhost:7687" | "Enabled" | "Available" | ["system", "neo4j"] |
126-
+------------------------------------------------------------------------------------------------------------+
120+
+-----------------------------------------------------------------------------------------------------------------------------------------------------+
121+
| serverId | name | address | state | health | hosting |
122+
+-----------------------------------------------------------------------------------------------------------------------------------------------------+
123+
| "25a7efc7-d063-44b8-bdee-f23357f89f01" | "25a7efc7-d063-44b8-bdee-f23357f89f01" | "localhost:7689" | "Enabled" | "Available" | ["system", "neo4j"] |
124+
| "782f0ee2-5474-4250-b905-4cd8b8f586ba" | "782f0ee2-5474-4250-b905-4cd8b8f586ba" | "localhost:7688" | "Enabled" | "Available" | ["system", "neo4j"] |
125+
| "8512c9b9-d9e8-48e6-b037-b15b0004ca18" | "8512c9b9-d9e8-48e6-b037-b15b0004ca18" | "localhost:7687" | "Enabled" | "Available" | ["system", "neo4j"] |
126+
+-----------------------------------------------------------------------------------------------------------------------------------------------------+
127127
----
128128
In this case, the address for `server01` is `localhost:7687` and thus, the server ID is `8512c9b9-d9e8-48e6-b037-b15b0004ca18`.
129129
+

0 commit comments

Comments
 (0)