File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
pulsar-broker/src/test/java/org/apache/pulsar/broker/namespace Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4545import java .util .Optional ;
4646import java .util .Set ;
4747import java .util .concurrent .CompletableFuture ;
48- import java .util .concurrent .ScheduledExecutorService ;
48+ import java .util .concurrent .ExecutorService ;
4949import java .util .concurrent .TimeUnit ;
5050import java .util .concurrent .atomic .AtomicReference ;
5151import lombok .Cleanup ;
@@ -823,10 +823,10 @@ private void waitResourceDataUpdateToZK(LoadManager loadManager) throws Exceptio
823823 // Wait until "ModularLoadManager" completes processing the ZK notification.
824824 ModularLoadManagerWrapper modularLoadManagerWrapper = (ModularLoadManagerWrapper ) loadManager ;
825825 ModularLoadManagerImpl modularLoadManager = (ModularLoadManagerImpl ) modularLoadManagerWrapper .getLoadManager ();
826- ScheduledExecutorService scheduler = (ScheduledExecutorService ) FieldUtils .readField (
827- modularLoadManager , "scheduler " , true );
826+ ExecutorService executors = (ExecutorService ) FieldUtils .readField (
827+ modularLoadManager , "executors " , true );
828828 CompletableFuture <Void > waitForNoticeHandleFinishByLoadManager = new CompletableFuture <>();
829- scheduler .execute (() -> waitForNoticeHandleFinishByLoadManager .complete (null ));
829+ executors .execute (() -> waitForNoticeHandleFinishByLoadManager .complete (null ));
830830 waitForNoticeHandleFinishByLoadManager .join ();
831831 // Manually trigger "LoadResourceQuotaUpdaterTask"
832832 loadManager .writeResourceQuotasToZooKeeper ();
You can’t perform that action at this time.
0 commit comments