mop icon indicating copy to clipboard operation
mop copied to clipboard

fix a ClassCastException when scheduling to look up

Open Yimiun opened this issue 1 year ago • 1 comments

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 avatar Mar 11 '24 02:03 Yimiun

@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)

github-actions[bot] avatar Mar 11 '24 02:03 github-actions[bot]

Thanks @Yimiun

Technoboy- avatar Mar 14 '24 14:03 Technoboy-