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

TestMetastoreVersion fails intermittently on trunk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • Tests
    • None

    Description

      TestMetastoreVersion#testDefaults sometimes fails with:

      junit.framework.AssertionFailedError: null
      	at junit.framework.Assert.fail(Assert.java:48)
      	at junit.framework.Assert.assertTrue(Assert.java:20)
      	at junit.framework.Assert.assertFalse(Assert.java:34)
      	at junit.framework.Assert.assertFalse(Assert.java:41)
      	at org.apache.hadoop.hive.metastore.TestMetastoreVersion.testDefaults(TestMetastoreVersion.java:73)
      

      This also looks like it is because of random test order. My hypothesis is that other tests set the System property "hive.metastore.schema.verification.", then if testDefaults doesnt run first, it will pick that up and assertion fails.

      Attachments

        1. HIVE-7161.patch
          0.8 kB
          Szehon Ho

        Activity

          People

            szehon Szehon Ho
            szehon Szehon Ho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: