tephra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anew <...@git.apache.org>
Subject [GitHub] incubator-tephra issue #68: TEPHRA-278 Support HBase 1.4
Date Thu, 11 Jan 2018 23:16:07 GMT
Github user anew commented on the issue:

    Running this test locally, I can see the cause of the failure in the logs:
    2018-01-11 15:10:52,501 - INFO  [TransactionStateCache STARTING:o.a.t.c.TransactionStateCache@113]
- Failed to initialize TransactionStateCache due to: 
    com.google.inject.ProvisionException: Guice provision errors:
    1) Unknown HBase version: 1.4.0
    1 error
    	at org.apache.tephra.util.HBaseVersionSpecificFactory.get(HBaseVersionSpecificFactory.java:60)
    	at org.apache.tephra.util.ConfigurationFactory.<init>(ConfigurationFactory.java:66)
    	at org.apache.tephra.coprocessor.TransactionStateCache.getSnapshotConfiguration(TransactionStateCache.java:118)
    	at org.apache.tephra.coprocessor.TransactionStateCache.tryInit(TransactionStateCache.java:99)
    	at org.apache.tephra.coprocessor.TransactionStateCache.refreshState(TransactionStateCache.java:158)
    	at org.apache.tephra.coprocessor.TransactionStateCache.startUp(TransactionStateCache.java:75)
    	at com.google.common.util.concurrent.AbstractIdleService$1$1.run(AbstractIdleService.java:43)
    	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]
    So the fix would be to 
    - add a case for 1.4 in HBaseVersionSpecificFactory.get(). 
    - that will require also adding a getHBase14Classname() and implementing it in ConfigurationFactory.

    - rename the HBase13ConfigurationProvider in the 1.4 compat module to HBase14ConfigurationProvider
(along with its test case). 
    I tried this in my local build and the test then passes. 


View raw message