You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "TisonKun (JIRA)" <ji...@apache.org> on 2019/01/21 08:03:00 UTC

[jira] [Created] (FLINK-11397) Speed up initialization of AbstractStreamOperatorTestHarness

TisonKun created FLINK-11397:
--------------------------------

             Summary: Speed up initialization of AbstractStreamOperatorTestHarness
                 Key: FLINK-11397
                 URL: https://issues.apache.org/jira/browse/FLINK-11397
             Project: Flink
          Issue Type: Improvement
          Components: Tests
    Affects Versions: 1.8.0
            Reporter: TisonKun


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]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)