Skip to content

Commit

Permalink
fix(pd): log4j version conflict & follower NPE (#2339)
Browse files Browse the repository at this point in the history
* fix: log4j version conflict

* Update RaftRpcClient.java
  • Loading branch information
simon824 authored Oct 30, 2023
1 parent fe7697e commit 823b190
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public synchronized boolean init(final RpcOptions rpcOptions) {
private <V> void internalCallAsyncWithRpc(final Endpoint endpoint,
final RaftRpcProcessor.BaseRequest request,
final FutureClosureAdapter<V> closure) {
final InvokeContext invokeCtx = null;
final InvokeContext invokeCtx = new InvokeContext();
final InvokeCallback invokeCallback = new InvokeCallback() {

@Override
Expand Down
6 changes: 6 additions & 0 deletions hugegraph-pd/hg-pd-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
<version>2.5.14</version>
<exclusions>
<exclusion>
<artifactId>log4j-slf4j-impl</artifactId>
<groupId>org.apache.logging.log4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.lmax</groupId>
Expand Down

0 comments on commit 823b190

Please sign in to comment.