refactor(launcher): 增加Clear hodler时的日志
This commit is contained in:
@@ -229,9 +229,11 @@ public class CompactionService {
|
|||||||
if (holder.isEmpty()) {
|
if (holder.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
logger.info("Clear holder, size: {}", holder.size());
|
||||||
// 等待半分钟
|
// 等待半分钟
|
||||||
ThreadUtil.safeSleep(Constants.HALF_MINUTE);
|
ThreadUtil.safeSleep(Constants.HALF_MINUTE);
|
||||||
for (QueueItem<ScheduleJob> item : holder) {
|
for (QueueItem<ScheduleJob> item : holder) {
|
||||||
|
logger.info("Push task to pre {}", item);
|
||||||
QueueUtil.add(discoveryClient, this.mapper, Constants.COMPACTION_QUEUE_PRE, item);
|
QueueUtil.add(discoveryClient, this.mapper, Constants.COMPACTION_QUEUE_PRE, item);
|
||||||
}
|
}
|
||||||
holder.clear();
|
holder.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user