Description
While the current SegmentedRaftLogWorker still uses the very primitive Thread management approach of `new Thread`, we can use the more mature approach of `newSingleThreadExecutor` to manage the lifetime of single thread.
In addition, we also can override all `Executors.newSingleThreadExecutor()`, and gives corresponding thread name only for one thread.
This work helps to make the code cleaner
Attachments
Issue Links
- links to