This is an automated email from the ASF dual-hosted git repository.

vgalaxies pushed a commit to branch pd-store
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git


The following commit(s) were added to refs/heads/pd-store by this push:
     new 7b1485782 fix: construct PdMetaDriver and pd-store log confs
7b1485782 is described below

commit 7b1485782859ebef23f5c719e288d2c62beddbf8
Author: VGalaxies <[email protected]>
AuthorDate: Sun Feb 4 11:37:39 2024 +0800

    fix: construct PdMetaDriver and pd-store log confs
---
 hugegraph-pd/hg-pd-dist/src/assembly/static/conf/log4j2.xml          | 5 +++--
 .../src/main/java/org/apache/hugegraph/meta/MetaManager.java         | 5 +++--
 hugegraph-store/hg-store-dist/src/assembly/static/conf/log4j2.xml    | 5 +++--
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/log4j2.xml 
b/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/log4j2.xml
index 96fae99a3..fe6ae6a91 100644
--- a/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/log4j2.xml
+++ b/hugegraph-pd/hg-pd-dist/src/assembly/static/conf/log4j2.xml
@@ -127,8 +127,9 @@
             <appender-ref ref="file"/>
         </logger>
         <!-- Use mixed async way to output logs -->
-        <AsyncLogger name="org.apache.hugegraph" level="INFO" 
additivity="false">
+        <logger name="org.apache.hugegraph" level="INFO" additivity="false">
             <appender-ref ref="file"/>
-        </AsyncLogger>
+            <appender-ref ref="console"/>
+        </logger>
     </loggers>
 </configuration>
diff --git 
a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/meta/MetaManager.java
 
b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/meta/MetaManager.java
index 1662b114d..4824b5fb4 100644
--- 
a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/meta/MetaManager.java
+++ 
b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/meta/MetaManager.java
@@ -164,8 +164,9 @@ public class MetaManager {
                     break;
                 case PD:
                     assert args.length > 0;
-                    String pdPeer = String.join(",", (List<String>) args[0]);
-                    this.metaDriver = new PdMetaDriver(pdPeer);
+                    // FIXME: assume pd.peers is urls separated by commas in a 
string
+                    //        like 
`127.0.0.1:8686,127.0.0.1:8687,127.0.0.1:8688`
+                    this.metaDriver = new PdMetaDriver((String) args[0]);
                     break;
                 default:
                     throw new AssertionError(String.format(
diff --git a/hugegraph-store/hg-store-dist/src/assembly/static/conf/log4j2.xml 
b/hugegraph-store/hg-store-dist/src/assembly/static/conf/log4j2.xml
index 0636d063d..9dbaa7e89 100644
--- a/hugegraph-store/hg-store-dist/src/assembly/static/conf/log4j2.xml
+++ b/hugegraph-store/hg-store-dist/src/assembly/static/conf/log4j2.xml
@@ -129,8 +129,9 @@
             <appender-ref ref="file"/>
         </logger>
         <!-- Use mixed async way to output logs -->
-        <AsyncLogger name="org.apache.hugegraph" level="INFO" 
additivity="false">
+        <logger name="org.apache.hugegraph" level="INFO" additivity="false">
             <appender-ref ref="file"/>
-        </AsyncLogger>
+            <appender-ref ref="console"/>
+        </logger>
     </loggers>
 </configuration>

Reply via email to