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

Flaky local YARN tests relying on log files

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      While working on PR #16989 for FLINK-23611, we experienced some flakiness when running YARNSessionCapacitySchedulerITCase.testDetachedPerJobYarnCluster locally.

      David Morávek discovered a bug in log4j (see LOG4J2-3155). The bug affects the test because they check the log files for specific log messages. The log messages ends up in the wrong log file if the rolling update mechanism is trigger. This does not seem to be an issue on AzureCI due to the slower hardware used for the worker machines.

      A solution to overcome this issue would be to add a custom log4j configuration that disables the appender.main.policies.startup.type = OnStartupTriggeringPolicy which is present in flink-dist's log4j configuration.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            zchikan Zsombor Chikán
            mapohl Matthias Pohl

            Dates

              Created:
              Updated:

              Slack

                Issue deployment