Skip to content

Remove unnecessary thread pool recreation in DruidCoordinator #10273

@ArvinZheng

Description

@ArvinZheng

This thread pool is recreated every time when DutiesRunnable runs which is a waste of resources and also I don't think people will change this config item balancerComputeThreads frequently, we could cache current value and recreate the thread pool only when it's necessary (config value change)

ListeningExecutorService balancerExec = null;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions