Skip to content

Commit

Permalink
bugfix: ApplicationContext has not been refreshed (apache#2261)
Browse files Browse the repository at this point in the history
  • Loading branch information
slievrly committed Feb 17, 2020
1 parent 40f1bbf commit 75f3d36
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public abstract class AbstractRpcRemotingClient extends AbstractRpcRemoting

private static final int MAX_MERGE_SEND_THREAD = 1;
private static final long KEEP_ALIVE_TIME = Integer.MAX_VALUE;
private static final int SCHEDULE_INTERVAL_MILLS = 5;
private static final long SCHEDULE_DELAY_MILLS = 60 * 1000L;
private static final long SCHEDULE_INTERVAL_MILLS = 10 * 1000L;
private static final String MERGE_THREAD_PREFIX = "rpcMergeMessageSend";

private final RpcClientBootstrap clientBootstrap;
Expand Down Expand Up @@ -112,7 +113,7 @@ public void init() {
public void run() {
clientChannelManager.reconnect(getTransactionServiceGroup());
}
}, SCHEDULE_INTERVAL_MILLS, SCHEDULE_INTERVAL_MILLS, TimeUnit.SECONDS);
}, SCHEDULE_DELAY_MILLS, SCHEDULE_INTERVAL_MILLS, TimeUnit.MILLISECONDS);
if (NettyClientConfig.isEnableClientBatchSendRequest()) {
mergeSendExecutorService = new ThreadPoolExecutor(MAX_MERGE_SEND_THREAD,
MAX_MERGE_SEND_THREAD,
Expand Down

0 comments on commit 75f3d36

Please sign in to comment.