Skip to content

Add validation check for scavenge requests with more than 4 threads #4627

Open
@lakshdeepsingheventstore

Description

Is your feature request related to a problem? Please describe.
The scavenge operation is intended to be run with 4 or fewer threads, and running it with more threads than this will produce the following error message : EventStore.Core.DataStructures.ObjectPoolMaxLimitReachedException: Object pool 'scavenge backend pool' has reached its max limit for items: 5.
The validation for the number of threads for the scavenge request is missing. As a result of the missing validation check, the scavenge completes the accumulation and the calculation phase, and then fails during the Chunk Execution Phase of the scavenge.

Describe the solution you'd like
The scavenge should not start if the number of threads is more than 4, and should not have to go through the accumulation and calculation phase before failing.

Additional context
Freshdesk Ticket : https://eventstore.freshdesk.com/a/tickets/111333

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssues which are a new featuregood first issueThis is a good first issue for anyone that wants to start contributing to EventStoreDB

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions