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

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.6.0
    • None
    • applications
    • None
    • 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.patch
          3 kB
          Steve Loughran
        2. YARN-535-02.patch
          8 kB
          Steve Loughran

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: