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