Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-11397

Speed up initialization of AbstractStreamOperatorTestHarness

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.8.0
    • None
    • API / DataStream, Tests
    • None

    Description

      Currently Kafka connector tests are unbearably slow, which is tracked by FLINK-10603. With investigation, the construction and initialization of AbstractStreamOperatorTestHarness is quite slow.

      When walk down the code, it amazed me that mockTask = mock(StreamTask.class); cost a few of second to finish. If we can introduce a test class instead of mock framework, the situation might be loosen.

      cc Zentol pnowojski

      Attachments

        Activity

          People

            Unassigned Unassigned
            tison Zili Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: