fix a ClassCastException when scheduling to look up
Motivation
new ExecutorProvider(proxyConfig.getLookupThreadPoolNum(), "mop-lookup-thread") ;
It will create a FinalizableDelegatedExecutorService
(ScheduledExecutorService) executorProvider.getExecutor();
It can't be cast to a ScheduledExecutorService, and it will create a RuntimeException without catch, which is also blocking the proxy thread
Documentation
Check the box below.
Need to update docs?
-
[ ]
doc-required(If you need help on updating docs, create a doc issue)
-
[ ]
no-need-doc(Please explain why)
-
[ ]
doc(If this PR contains doc changes)
@Yimiun:Thanks for your contribution. For this PR, do we need to update docs? (The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)
Thanks @Yimiun