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

Fix flaky test TestEntityGroupFSTimelineStore.testCleanLogs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.4, 3.1.2, 3.3.0, 3.2.1
    • None
    • Reviewed
    • 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

            OrDTesters OrDTesters
            OrDTesters OrDTesters
            Votes:
            0 Vote for this issue
            Watchers:
            6 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 - 0.5h
                0.5h