Skip to content

Commit 7b14857

Browse files
committed
fix: construct PdMetaDriver and pd-store log confs
1 parent bc9c1e7 commit 7b14857

File tree

3 files changed

+9
-6
lines changed
  • hugegraph-pd/hg-pd-dist/src/assembly/static/conf
  • hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/meta
  • hugegraph-store/hg-store-dist/src/assembly/static/conf

3 files changed

+9
-6
lines changed

hugegraph-pd/hg-pd-dist/src/assembly/static/conf/log4j2.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@
127127
<appender-ref ref="file"/>
128128
</logger>
129129
<!-- Use mixed async way to output logs -->
130-
<AsyncLogger name="org.apache.hugegraph" level="INFO" additivity="false">
130+
<logger name="org.apache.hugegraph" level="INFO" additivity="false">
131131
<appender-ref ref="file"/>
132-
</AsyncLogger>
132+
<appender-ref ref="console"/>
133+
</logger>
133134
</loggers>
134135
</configuration>

hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/meta/MetaManager.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ public synchronized void connect(String cluster, MetaDriverType type,
164164
break;
165165
case PD:
166166
assert args.length > 0;
167-
String pdPeer = String.join(",", (List<String>) args[0]);
168-
this.metaDriver = new PdMetaDriver(pdPeer);
167+
// FIXME: assume pd.peers is urls separated by commas in a string
168+
// like `127.0.0.1:8686,127.0.0.1:8687,127.0.0.1:8688`
169+
this.metaDriver = new PdMetaDriver((String) args[0]);
169170
break;
170171
default:
171172
throw new AssertionError(String.format(

hugegraph-store/hg-store-dist/src/assembly/static/conf/log4j2.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@
129129
<appender-ref ref="file"/>
130130
</logger>
131131
<!-- Use mixed async way to output logs -->
132-
<AsyncLogger name="org.apache.hugegraph" level="INFO" additivity="false">
132+
<logger name="org.apache.hugegraph" level="INFO" additivity="false">
133133
<appender-ref ref="file"/>
134-
</AsyncLogger>
134+
<appender-ref ref="console"/>
135+
</logger>
135136
</loggers>
136137
</configuration>

0 commit comments

Comments
 (0)