调整kafka参数

This commit is contained in:
三丙
2024-10-25 09:49:24 +08:00
parent 4198c46c01
commit 490e9baece
2 changed files with 5 additions and 2 deletions

View File

@@ -261,7 +261,10 @@ public class DownlinkGrpcClient {
}
if (connectErrTimesMap.computeIfAbsent(hostAndPort, k -> new AtomicInteger()).incrementAndGet() >= maxReconnectTimes) {
queueMap.remove(hostAndPort);
LinkedBlockingQueue<RequestMsg> queue = queueMap.remove(hostAndPort);
if (queue != null) {
queue.clear();
}
connectErrTimesMap.remove(hostAndPort);
log.info("[{}] Grpc 客户端重连异常超过{}次,不再重连", hostAndPort, maxReconnectTimes);
}