[ 
https://issues.apache.org/jira/browse/HBASE-16538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15457102#comment-15457102
 ] 

Appy commented on HBASE-16538:
------------------------------

I have an alternate suggestion, mainly because of the situation we are in here.
Even if we do the temporary fix, and maybe we find the issue (that indeed, 
sometimes annotations don't get loaded soon enough), i don't think we can do 
much since that's java for us.
Or, we can get rid of annotations, and directly write a class from 
[saveVersion.sh|https://github.com/apache/hbase/blob/master/hbase-common/src/saveVersion.sh]
 with static members.
it's a simple idea, so it's possible that  whoever wrote the annotation thing 
tried it out and found that it didn't work. :)


> Version mismatch in HBaseConfiguration.checkDefaultsVersion
> -----------------------------------------------------------
>
>                 Key: HBASE-16538
>                 URL: https://issues.apache.org/jira/browse/HBASE-16538
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Appy
>              Labels: configuration, test-failure
>
> {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)

Reply via email to