You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/01/16 20:30:26 UTC
[jira] [Created] (HBASE-17474) Reduce frequency of
NoSuchMethodException when calling setStoragePolicy()
Ted Yu created HBASE-17474:
------------------------------
Summary: Reduce frequency of NoSuchMethodException when calling setStoragePolicy()
Key: HBASE-17474
URL: https://issues.apache.org/jira/browse/HBASE-17474
Project: HBase
Issue Type: Test
Reporter: Ted Yu
Priority: Minor
Saw the following in test output:
{code}
2017-01-15 09:37:53,383 WARN [StoreOpener-98f4c892b5bcd9188f06331426e710f9-1] regionserver.HRegionFileSystem(199): Failed to set storage policy of [/Users/tyu/trunk/hbase- server/target/test-data/e052b6ad-02e2-41bf-a806-d617900a8c22/TestStoreFileRefresherChore/data/default/testIsStale/98f4c892b5bcd9188f06331426e710f9/cf] to [HOT]
java.lang.UnsupportedOperationException: Cannot find specified method setStoragePolicy
at org.apache.hadoop.hbase.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:209)
at org.apache.hadoop.hbase.regionserver.HRegionFileSystem.setStoragePolicy(HRegionFileSystem.java:197)
at org.apache.hadoop.hbase.regionserver.HStore.<init>(HStore.java:244)
at org.apache.hadoop.hbase.regionserver.HRegion.instantiateHStore(HRegion.java:5254)
at org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:988)
at org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:985)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodException: org.apache.hadoop.fs.LocalFileSystem.setStoragePolicy(org.apache.hadoop.fs.Path, java.lang.String)
at java.lang.Class.getMethod(Class.java:1786)
at org.apache.hadoop.hbase.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:205)
... 11 more
{code}
setStoragePolicy() is not implemented by LocalFileSystem.
We should reduce the frequency of the above log since it clutters test output.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)