Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16552

Create an internal config to control InitialTaskDelayMs in LogManager to speed up tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.8.0
    • 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

          Activity

            People

              brandboat Kuan Po Tseng
              showuon Luke Chen
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: