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

YARN session tests scan unrelated logs for bugs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.15.0, 1.13.5, 1.14.2
    • None
    • Deployment / YARN

    Description

      Many YARN tests that inherit from org.apache.flink.yarn.YarnTestBase deploy a Flink cluster via YARN. The class provides the method ensureNoProhibitedStringInLogFiles to scans the Flink cluster log files for exceptions.

      At its current state the method cannot distinguish between log files from different test cases that are part of the same test class. (E.g., org.apache.flink.yarn.YARNSessionFIFOSecuredITCase#testDetachedModeSecureWithPreInstallKeytab and org.apache.flink.yarn.YARNSessionFIFOSecuredITCase#testDetachedMode) Thereby, test cases fail only due to a failure of an earlier test case. (E.g., testDetachedMode fails due to a failure of testDetachedModeSecureWithPreInstallKeytab)

      The filtering method should be improved, to make failures better understandable. To this end, the filtering method needs to filter on the container suffix of the path. For the YARN container name container_1640947393046_0001_01_000001 it needs to map the 0001 part to the number of the test case considering only test cases that spawn clusters. Or/and the naming of the containers need to be adapted to make this easier. An alternative solution would be to start one YARN cluster per test case (instead of as per test class).

      Attachments

        Activity

          People

            Unassigned Unassigned
            nsemmler Niklas Semmler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: