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

TestUnmanagedAMLauncher can corrupt target/test-classes/yarn-site.xml during write phase, breaks later test runs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: applications
    • Labels:
      None
    • Environment:

      OS/X laptop, HFS+ filesystem

      Description

      the setup phase of TestUnmanagedAMLauncher overwrites yarn-site.xml. As Configuration.writeXml() does a reread of all resources, this will break if the (open-for-writing) resource is already visible as an empty file.

      This leaves a corrupted target/test-classes/yarn-site.xml, which breaks later test runs -because it is not overwritten by later incremental builds, due to timestamps.

        Attachments

        1. YARN-535-02.patch
          8 kB
          Steve Loughran
        2. YARN-535.patch
          3 kB
          Steve Loughran

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: