From c4d0f0555e8d3f2810165e1beedba322736182e4 Mon Sep 17 00:00:00 2001 From: Z-HUANT <1781898481@qq.com> Date: Tue, 9 Jan 2024 15:30:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix=EF=BC=9AReinitializing=20the=20database?= =?UTF-8?q?=20is=20required=20to=20set=20up=20authentication.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/apache/hugegraph/cmd/InitStore.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java b/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java index a18ae63330..d78f8a5eda 100644 --- a/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java +++ b/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java @@ -101,6 +101,8 @@ private static HugeGraph initGraph(String configPath) throws Exception { LOG.info("Skip init-store due to the backend store of '{}' " + "had been initialized", graph.name()); backendStoreInfo.checkVersion(); + // Initializing the information required for creating the admin account. + graph.initSystemInfo(); } else { initBackend(graph); } From 46e0077e357487d4ac0ebcde9937e5d73c4e7a0e Mon Sep 17 00:00:00 2001 From: Z-HUANT <55943045+Z-HUANT@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:49:27 +0800 Subject: [PATCH 2/3] Update hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java Co-authored-by: imbajin --- .../src/main/java/org/apache/hugegraph/cmd/InitStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java b/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java index d78f8a5eda..7fc8c2ec66 100644 --- a/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java +++ b/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java @@ -101,7 +101,7 @@ private static HugeGraph initGraph(String configPath) throws Exception { LOG.info("Skip init-store due to the backend store of '{}' " + "had been initialized", graph.name()); backendStoreInfo.checkVersion(); - // Initializing the information required for creating the admin account. + // Init the required information for creating the admin account (when switch from non-auth mode to auth mode) graph.initSystemInfo(); } else { initBackend(graph); From 4c00deaca34341f7620e97445fa27b8d117dbf42 Mon Sep 17 00:00:00 2001 From: Z-HUANT <1781898481@qq.com> Date: Mon, 15 Jan 2024 10:22:22 +0800 Subject: [PATCH 3/3] fix: modify the comments --- .../src/main/java/org/apache/hugegraph/cmd/InitStore.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java b/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java index 7fc8c2ec66..eabca7fd6f 100644 --- a/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java +++ b/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java @@ -101,7 +101,10 @@ private static HugeGraph initGraph(String configPath) throws Exception { LOG.info("Skip init-store due to the backend store of '{}' " + "had been initialized", graph.name()); backendStoreInfo.checkVersion(); - // Init the required information for creating the admin account (when switch from non-auth mode to auth mode) + /* + * Init the required information for creating the admin account + * (when switch from non-auth mode to auth mode) + */ graph.initSystemInfo(); } else { initBackend(graph);