Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9009

Fix flaky test TestEntityGroupFSTimelineStore.testCleanLogs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.4, 3.1.2, 3.3.0, 3.2.1
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Hadoop Flags:
      Reviewed
    • Flags:
      Patch

      Description

      In TestEntityGroupFSTimelineStore, testCleanLogs fails when run after testMoveToDone.

      testCleanLogs fails because testMoveToDone moves a file into the same directory that testCleanLogs cleans, causing testCleanLogs to clean 3 files, instead of 2 as testCleanLogs expects.

      To fix the failure of testCleanLogs, we can delete the file after the file is moved by testMoveToDone.

      Pull request link: https://github.com/apache/hadoop/pull/438

        Attachments

        1. YARN-9009-trunk-001.patch
          2 kB
          OrDTesters

          Activity

            People

            • Assignee:
              OrDTesters OrDTesters
              Reporter:
              OrDTesters OrDTesters
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: