Skip to content

Default threadpool uses unbounded queue #67

@kapilreddy

Description

@kapilreddy

com.climate.claypoole/threadpool creates an instance of ScheduledThreadPoolExecutor

It uses an unbounded queue which leads a silent accrue leading to exhaustion of resources.

Also we don't get finer control over what should be done when pool and queue are exhausted.

Proposed solution,

  • Use java.util.concurrent.ThreadPoolExecutor
  • Provide API for,
    ** queue size
    ** Selecting different policies. ie AbortPolicy, CallerRunsPolicy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions