Viraj Bhat created HCATALOG-508:
-----------------------------------
Summary: Tests within HCatLoader fail when run in JDK 1.7
Key: HCATALOG-508
URL: https://issues.apache.org/jira/browse/HCATALOG-508
Project: HCatalog
Issue Type: Bug
Components: test
Affects Versions: 0.5
Environment: JDK 1.7 and RHEL 6
Reporter: Viraj Bhat
Fix For: 0.5
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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira