[ 
https://issues.apache.org/jira/browse/HBASE-17474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yu Li updated HBASE-17474:
--------------------------
    Attachment: HBASE-17474.patch

Attaching the straight forward patch, checked locally with 
{{TestHRegion#testBasicSplit}} and confirmed w/ patch there's no warning as 
pasted in description. Will submit for HadoopQA soon.

> 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
>            Assignee: Yu Li
>            Priority: Minor
>         Attachments: HBASE-17474.patch
>
>
> 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)

Reply via email to