I downloaded source code of hbase1.4.10 and ran UT,but failed with serveral UTs
related to TestExportSnapshot as follows:
[ERROR] Tests run: 9, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 306.405
s <<< FAILURE! - in org.apache.hadoop.hbase.snapshot.TestExportSnapshot
[ERROR]
TestExportSnapshot.testConsecutiveExports:214->testExportFileSystemState:293
expected:<0> but was:<1>
[ERROR]
TestExportSnapshot.testEmptyExportFileSystemState:208->testExportFileSystemState:265->testExportFileSystemState:293
expected:<0> but was:<1>
[ERROR]
TestExportSnapshot.testExportFileSystemState:197->testExportFileSystemState:265->testExportFileSystemState:293
expected:<0> but was:<1>
[ERROR]
TestExportSnapshot.testExportFileSystemStateWithSkipTmp:203->testExportFileSystemState:265->testExportFileSystemState:293
expected:<0> but was:<1>
[ERROR] TestExportSnapshot.testExportRetry:328 expected:<0> but was:<1>
[ERROR]
TestExportSnapshot.testExportWithTargetName:222->testExportFileSystemState:265->testExportFileSystemState:293
expected:<0> but was:<1>
[ERROR]
TestExportSnapshot.testSnapshotWithRefsExportFileSystemState:239->testSnapshotWithRefsExportFileSystemState:259->testExportFileSystemState:265->testExportFileSystemState:293
expected:<0> but was:<1>
and then I changed default hadoop version from 2.7.4 to 2.9.2 in pom, besides
errors above, there are 2 more errors as follows:
[ERROR]
testRegionServerHostnameReportedToMaster(org.apache.hadoop.hbase.regionserver.TestRegionServerHostname)
Time elapsed: 30.015 s <<< ERROR!
org.junit.runners.model.TestTimedOutException: test timed out after 30000
milliseconds
at
org.apache.hadoop.hbase.regionserver.TestRegionServerHostname.testRegionServerHostnameReportedToMaster(TestRegionServerHostname.java:158)
[ERROR]
testRegionServerHostname(org.apache.hadoop.hbase.regionserver.TestRegionServerHostname)
Time elapsed: 120.011 s <<< ERROR!
org.junit.runners.model.TestTimedOutException: test timed out after 120000
milliseconds
at
org.apache.hadoop.hbase.regionserver.TestRegionServerHostname.testRegionServerHostname(TestRegionServerHostname.java:90)
However these 2 errors wouldn't occur when i used "mvn
-Dtest=TestRegionServerHostname#testRegionServerHostnameReportedToMaster" and
"mvn -Dtest=TestRegionServerHostname#testRegionServerHostname" but occured with
"mvn -Dtest=TestRegionServerHostname test".I wondered if it was because of
imcompability between hbase 1.4.10 and hadoop 2.9.2 ?
But why the UTs related to TestExportSnapshot failed without any changes of
project? If also failed after I changing hadoop-two.version to 2.9.2 in pom.xml.
My JDK Version is :
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
Thank you for attention, and seek help.