ted-wq-x opened a new pull request, #1562:
URL: https://github.com/apache/ratis/pull/1562

   PR 标题建议按 Apache Ratis 惯例使用句点:
   
   ```text
   RATIS-2665. Reduce idle log worker close latency
   ```
   
   PR 描述:
   
   ```markdown
   ## What changes were proposed in this pull request?
   
   `SegmentedRaftLogWorker` polls its I/O task queue with a one-second timeout.
   When the worker is idle, closing it may wait until the current poll times 
out.
   
   This change offers an internal wake-up task after setting `running` to 
`false`,
   allowing an idle worker to exit immediately. The wake-up task bypasses normal
   task execution, exception handling, metrics, and future completion.
   
   The worker is not interrupted, so active flush and log-sync operations retain
   their existing shutdown behavior. No public API is changed.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/RATIS-2665
   
   ## How was this patch tested?
   
   Added `testCloseWakesUpIdleWorker` to verify that a worker blocked while 
polling
   an empty task queue is awakened and closed promptly.
   
   Validation results:
   
   - The new regression test passed 20 consecutive runs.
   - All 55 tests in `TestSegmentedRaftLog` passed.
   - Maven Checkstyle completed with no violations.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to