Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13686

TestRecordReaderImpl is deleting target/tmp causing all the tests after it to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • Test
    • None

    Description

      The issue was introduced in HIVE-12159 (https://github.com/apache/hive/blame/master/ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestRecordReaderImpl.java). This test deletes target/tmp directory. Because of this, the subsequent tests don't get to read target/tmp/conf/hive-site.xml, which contains test-specific configurations. Also, target/tmp has metastore db directory, which also gets deleted causing subsequent tests that use metastore db to fail too.

      I'm surprised this issue wasn't caught in pre-commit builds. spena I see that even the latest pre-commit jobs aren't reporting any errors, while building on local and running hive-exec test cases causes a bunch of tests to fail.

      Attachments

        1. HIVE-13686.patch
          0.9 kB
          Rajat Khandelwal

        Issue Links

          Activity

            People

              prongs Rajat Khandelwal
              prongs Rajat Khandelwal
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: