Uploaded image for project: 'HCatalog'
  1. HCatalog
  2. HCATALOG-508

Tests within HCatLoader fail when run in JDK 1.7

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5
    • 0.5
    • test
    • None
    • JDK 1.7 and RHEL 6

    Description

      TestHCatLoader testGetInputBytes() test fails when running on JDK 1.7.
      The order of tests executed in JDK 1.7 is as follows:

      testSchemaLoadBasic
      testReadDataBasic
      testConvertBooleanToInt
      testSchemaLoadComplex
      testReadPartitionedBasic
      testProjectionsBasic
      testGetInputBytes

      The order of tests executed in JDK 1.6 is as follows:
      testSchemaLoadBasic
      testReadDataBasic
      testSchemaLoadComplex
      testReadPartitionedBasic
      testProjectionsBasic
      testGetInputBytes
      testConvertBooleanToInt

      The problem is that when : "testGetInputBytes" runs in the end, the tables are already deleted.

      Simple fix, is to set the "guardTestCount" to 7 and also correct the if else loop in "guardedTearDownAfterClass"

      Regards
      Viraj

      Attachments

        Activity

          People

            viraj Viraj Bhat
            viraj Viraj Bhat
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment