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

SourceCoordinatorAlignmentTest.testWatermarkAlignmentWithTwoGroups fails

    XMLWordPrintableJSON

Details

    Description

      SourceCoordinatorAlignmentTest.testWatermarkAlignmentWithTwoGroups fails.

      I analyzed this CI :  https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=50668&view=logs&j=a57e0635-3fad-5b08-57c7-a4142d7d6fa9&t=2ef0effc-1da1-50e5-c2bd-aab434b1c5b7&l=9089

      Root cause:

      • The CoordinatorExecutorThreadFactory cannot new multiple threads. And too many callers will check `coordinatorThreadFactory.isCurrentThreadCoordinatorThread()`, such as: SourceCoordinatorContext.attemptReady.
      • The CoordinatorExecutorThreadFactory is shared at SourceCoordinatorTestBase
      • It will be used at multiple source coordinator, and the second source coordinator will overwrite the CoordinatorExecutorThreadFactory#t, so the check will fail for the first source.

      Solution:

      Don't share the CoordinatorExecutorThreadFactory.

      log:

       

       

      Attachments

        1. image-2023-06-30-10-53-50-280.png
          245 kB
          Rui Fan
        2. image-2023-06-30-13-01-26-519.png
          246 kB
          Rui Fan
        3. image-2023-06-30-13-02-32-803.png
          209 kB
          Rui Fan

        Issue Links

          Activity

            People

              fanrui Rui Fan
              fanrui Rui Fan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: