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

FinalizedFeatureChangeListenerTest should use mocked latches

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Trivial
    • Resolution: Won't Fix
    • 3.7.0
    • None
    • core

    Description

      testCacheUpdateWaitFailsForUnreachableVersion takes 30 seconds, and testInitFailureDueToFeatureIncompatibility takes 5 seconds. This appears to be caused by FeatureCacheUpdater#awaitUpdateOrThrow waiting for a real CountDownLatch with a real-time timeout.

      Instead, a mocked latch should be used to exit the await immediately.

      This should be done both for CPU-independence, and for test execution speed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gharris1727 Greg Harris
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: