Skip to content

Commit

Permalink
(feat) Upgrade sofabolt version (sofastack#382)
Browse files Browse the repository at this point in the history
* upgrade sofabolt version

* upgrade sofabolt version

* upgrade sofabolt version

* upgrade sofabolt version
  • Loading branch information
SteNicholas authored and killme2008 committed Dec 30, 2019
1 parent 64daa8b commit 41a3f02
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public synchronized Node start(final boolean startRpcServer) {

this.node = RaftServiceFactory.createAndInitRaftNode(this.groupId, this.serverId, this.nodeOptions);
if (startRpcServer) {
this.rpcServer.start();
this.rpcServer.startup();
} else {
LOG.warn("RPC server is not started in RaftGroupService.");
}
Expand Down Expand Up @@ -157,7 +157,7 @@ public synchronized void shutdown() {
if (this.rpcServer != null) {
try {
if (!this.sharedRpcServer) {
this.rpcServer.stop();
this.rpcServer.shutdown();
}
} catch (final Exception ignored) {
// ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static void addRaftRequestProcessors(final RpcServer rpcServer) {
}

/**
* Adds RAFT and CLI service request processors
* Adds RAFT and CLI service request processors.
*
* @param rpcServer rpc server instance
* @param raftExecutor executor to handle RAFT requests.
Expand Down Expand Up @@ -143,7 +143,7 @@ public static RpcServer createAndStartRaftRpcServer(final Endpoint endpoint) {
public static RpcServer createAndStartRaftRpcServer(final Endpoint endpoint, final Executor raftExecutor,
final Executor cliExecutor) {
final RpcServer server = createRaftRpcServer(endpoint, raftExecutor, cliExecutor);
server.start();
server.startup();
return server;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected void configRpcClient(final RpcClient rpcClient) {
protected boolean initRpcClient(final int rpcProcessorThreadPoolSize) {
this.rpcClient = new RpcClient();
configRpcClient(this.rpcClient);
this.rpcClient.init();
this.rpcClient.startup();
this.rpcExecutor = ThreadPoolUtil.newBuilder() //
.poolName("JRaft-RPC-Processor") //
.enableMetric(true) //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ public synchronized boolean init(final StoreEngineOptions opts) {
this.rpcServer = new RpcServer(port, true, false);
RaftRpcServerFactory.addRaftRequestProcessors(this.rpcServer, this.raftRpcExecutor, this.cliRpcExecutor);
StoreEngineHelper.addKvStoreRequestProcessor(this.rpcServer, this);
if (!this.rpcServer.start()) {
this.rpcServer.startup();
if (!this.rpcServer.isStarted()) {
LOG.error("Fail to init [RpcServer].");
return false;
}
Expand Down Expand Up @@ -241,7 +242,7 @@ public synchronized void shutdown() {
return;
}
if (this.rpcServer != null) {
this.rpcServer.stop();
this.rpcServer.shutdown();
}
if (!this.regionEngineTable.isEmpty()) {
for (final RegionEngine engine : this.regionEngineTable.values()) {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<properties>
<affinity.version>3.1.7</affinity.version>
<asm.version>6.0</asm.version>
<bolt.version>1.5.3</bolt.version>
<bolt.version>1.6.1</bolt.version>
<commons.io.version>2.4</commons.io.version>
<commons.lang.version>2.6</commons.lang.version>
<disruptor.version>3.3.7</disruptor.version>
Expand Down

0 comments on commit 41a3f02

Please sign in to comment.