Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When startup LogManager, we'll create schedule tasks like: kafka-log-retention, kafka-recovery-point-checkpoint threads...etc (here). All of them have public configs to configure the interval, like `log.retention.check.interval.ms`. But in addition to the scheduler interval, there's a hard coded InitialTaskDelayMs (30 seconds) for all of them. That might not be a problem in production env, since it'll make the kafka server start up faster. But in test env, the 30 secs delay means if there are tests verifying the behaviors like log retention, it'll take 30 secs up to complete the tests.
To speed up tests, we should create an internal config (ex: "log.initial.task.delay.ms") to control InitialTaskDelayMs in LogManager to speed up tests. This is not intended to be used by normal users, just for speeding up testing usage.
Attachments
Issue Links
- links to