Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5EADA200C0D for ; Tue, 17 Jan 2017 06:46:32 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5DBB2160B54; Tue, 17 Jan 2017 05:46:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A3FDC160B41 for ; Tue, 17 Jan 2017 06:46:31 +0100 (CET) Received: (qmail 86133 invoked by uid 500); 17 Jan 2017 05:46:30 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 86121 invoked by uid 99); 17 Jan 2017 05:46:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2017 05:46:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BE2B5C2106 for ; Tue, 17 Jan 2017 05:46:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id I9HCuZwzVTJw for ; Tue, 17 Jan 2017 05:46:29 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 644CA5F4A7 for ; Tue, 17 Jan 2017 05:46:28 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A3877E0479 for ; Tue, 17 Jan 2017 05:46:27 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 699AF25284 for ; Tue, 17 Jan 2017 05:46:26 +0000 (UTC) Date: Tue, 17 Jan 2017 05:46:26 +0000 (UTC) From: "Yu Li (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17474) Reduce frequency of NoSuchMethodException when calling setStoragePolicy() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 Jan 2017 05:46:32 -0000 [ https://issues.apache.org/jira/browse/HBASE-17474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15825486#comment-15825486 ] Yu Li commented on HBASE-17474: ------------------------------- Maybe simply add an if clause to exempt LocalFileSystem could fix this, like below: {code} if (!(this.fs instanceof LocalFileSystem)) { LOG.warn("Failed to set storage policy of [" + storeDir + "] to [" + policyName + "]", e); } {code} Sounds good [~tedyu]? If so, will make a straight-forward patch. Thanks. > 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.(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)