elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

Handle scheduler shutdown in `MasterService`

Open DaveCTurner opened this issue 1 year ago • 1 comments

Today if ThreadPool#scheduler is shut down while submitting a task for execution by the MasterService then we directly throw the rejection exception to the caller. By the looks of it most callers don't expect this method to throw anything, so this commit adjusts the behaviour to fail the task instead.

Closes #105549

DaveCTurner avatar Feb 15 '24 12:02 DaveCTurner

Pinging @elastic/es-distributed (Team:Distributed)

elasticsearchmachine avatar Feb 15 '24 12:02 elasticsearchmachine