From 9cfac1bb8ce2bdc1776b180eb72f9ca401db633c Mon Sep 17 00:00:00 2001 From: lizhimins <707364882@qq.com> Date: Fri, 28 Jul 2023 18:02:48 +0800 Subject: [PATCH] set schedule task async --- .../java/org/apache/rocketmq/tieredstore/TieredDispatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/TieredDispatcher.java b/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/TieredDispatcher.java index bc8b944015c..bb58ea7dd52 100644 --- a/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/TieredDispatcher.java +++ b/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/TieredDispatcher.java @@ -82,7 +82,7 @@ private void initScheduleTask() { TieredStoreExecutor.commonScheduledExecutor.scheduleWithFixedDelay(() -> tieredFlatFileManager.deepCopyFlatFileToList().forEach(flatFile -> { if (!flatFile.getCompositeFlatFileLock().isLocked()) { - dispatchFlatFile(flatFile); + dispatchFlatFileAsync(flatFile); } }), 30, 10, TimeUnit.SECONDS); }