fix: construct PdMetaDriver and pd-store log confs

This commit is contained in:
VGalaxies 2024-02-04 11:37:39 +08:00
parent bc9c1e7ac9
commit 7b14857828
3 changed files with 9 additions and 6 deletions

View File

@ -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>

View File

@ -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(

View File

@ -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>