Skip to content

Remove the no-op adaptive-batching pause and resume in WorkerTimerService #9026

Closed

Description

@aglinxinyuan

Task Summary

WorkerTimerService (amber/.../messaginglayer/WorkerTimerService.scala) keeps an isPaused flag that only pauseAdaptiveBatching() sets to true. Nothing in production calls pauseAdaptiveBatching(), so isPaused is always false, and resumeAdaptiveBatching() (called from the worker ResumeHandler) never re-arms anything.

Introduced by #1826 (2023-02-02, "Add time-based batch in network output buffer"), which added the pause method. #2208 (2023-11-16, "Refactoring of amber engine") moved it into WorkerTimerService and added isPaused, resumeAdaptiveBatching() and the ResumeHandler call.

Usage removed by #2392 (2024-02-19, "Remove breakpoint feature"), which deleted the last caller of pauseAdaptiveBatching(), the breakpoint branch in DataProcessor.

Removing the two methods, the flag and the no-op ResumeHandler call is a pure deletion with no behaviour change.

Task Type

  • Refactor / Cleanup

Activity

  1. self-assigned this
    on Oct 19, 2026
  2. added a commit that references this issue on Oct 24, 2026
    f674649
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions