Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, DataStreamManagement has a writeExecutor for executing the streaming tasks. In this JIRA, we propose to add an optional API to StateMachine.DataStream so that a StateMachine can choose to provide an Executor. Then the StateMachine can have more control on the thread management.
The new API may look like below.
/** * @return an {@link Executor} for executing the streaming tasks of this stream. * If the returned value is null, the default {@link Executor} will be used. */ default Executor getExecutor() { return null; }
Attachments
Issue Links
- is related to
-
HDDS-5763 Provide an Executor for each LocalStream in ContainerStateMachine
- Resolved
- links to