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

TaskExecutorPartitionLifecycleTest#runInTaskExecutorThreadAndWait does not run in main thread

    XMLWordPrintableJSON

Details

    Description

      The method TaskExecutorPartitionLifecycleTest#runInTaskExecutorThreadAndWait does not run the given runnable in the TaskExecutors main thread. Instead it will run it in an arbitrary thread of the RpcService.

      The reason why this does not cause test instabilities is that we execute operations which don't cause race conditions. However, in order to avoid spreading false friends I would suggest to get rid of this pattern. Moreover, I would question whether TaskExecutorPartitionLifecycleTest really needs access to the TaskExecutors internal state. I believe there is an easy way using the TaskExecutors public API to implement the tests.

      cc chesnay, azagrebin

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              trohrmann Till Rohrmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m