[
https://issues.apache.org/jira/browse/HBASE-16538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15453622#comment-15453622
]
Appy commented on HBASE-16538:
------------------------------
I think the root cause is order of processing of static block and annotations.
(ref:
http://stackoverflow.com/questions/37985620/java-processing-order-of-annotation-and-static-blocks)
In VersionInfo, after myPackage is loaded
([here|https://github.com/apache/hbase/blob/master/hbase-common/src/main/java/org/apache/hadoop/hbase/util/VersionInfo.java#L43]),
it's possible that it's annotations don't get loaded before
{{myPackage.getAnnotation(...)}} on next line.
> Version mismatch in HBaseConfiguration.checkDefaultsVersion
> -----------------------------------------------------------
>
> Key: HBASE-16538
> URL: https://issues.apache.org/jira/browse/HBASE-16538
> Project: HBase
> Issue Type: Bug
> Reporter: Appy
>
> {noformat}
> org.apache.hadoop.hbase.procedure2.TestYieldProcedures
> testYieldEachExecutionStep(org.apache.hadoop.hbase.procedure2.TestYieldProcedures)
> Time elapsed: 0.255 sec <<< ERROR!
> java.lang.RuntimeException: hbase-default.xml file seems to be for an older
> version of HBase (2.0.0-SNAPSHOT), this version is Unknown
> at
> org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:73)
> at
> org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:83)
> at
> org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:98)
> at
> org.apache.hadoop.hbase.HBaseCommonTestingUtility.<init>(HBaseCommonTestingUtility.java:46)
> at
> org.apache.hadoop.hbase.procedure2.TestYieldProcedures.setUp(TestYieldProcedures.java:63)
> {noformat}
> (Exact test is not important)
> Reference run:
> https://builds.apache.org/view/All/job/HBase-Trunk_matrix/jdk=JDK%201.8%20(latest),label=yahoo-not-h2/1515/console
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)