junegunn commented on PR #6709:
URL: https://github.com/apache/hbase/pull/6709#issuecomment-2721823906

   @Apache9 
   
   I've updated `ConfigKey.CLASS` method so we can specify the expected class 
or interface the value should implement. See 
855eb4ec0a3eee8527efea59ebb71b97347ca1e3.
   
   Previously, something like `alter 't', CONFIGURATION => { 
'hbase.hstore.engine.class' => 'org.apache.hadoop.conf.Configuration' }` would 
pass the verification just because the class exists. Now it fails because it's 
not a subclass of `StoreEngine`.
   
   ```
   hbase:003:0> alter 't', CONFIGURATION => { 'hbase.hstore.engine.class' => 
'org.apache.hadoop.conf.Configuration' }
   Updating all regions with the new schema...
   
   ERROR: org.apache.hadoop.hbase.DoNotRetryIOException: 
org.apache.hadoop.conf.Configuration ('hbase.hstore.engine.class') is not 
compatible to org.apache.hadoop.hbase.regionserver.StoreEngine. Set 
hbase.table.sanity.checks to false at conf or table descriptor if you want to 
bypass sanity checks
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to