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 6A93D200CE1 for ; Fri, 28 Jul 2017 06:35:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 697D016C1CC; Fri, 28 Jul 2017 04:35:12 +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 B1EB516BE6D for ; Fri, 28 Jul 2017 06:35:11 +0200 (CEST) Received: (qmail 60773 invoked by uid 500); 28 Jul 2017 04:35:05 -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 60758 invoked by uid 99); 28 Jul 2017 04:35:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2017 04:35:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A53981A1A92 for ; Fri, 28 Jul 2017 04:35:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id b6c3klIP3F8I for ; Fri, 28 Jul 2017 04:35:03 +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 3A34A60D08 for ; Fri, 28 Jul 2017 04:35:03 +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 7C2B5E0D57 for ; Fri, 28 Jul 2017 04:35:01 +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 2677B24D28 for ; Fri, 28 Jul 2017 04:35:00 +0000 (UTC) Date: Fri, 28 Jul 2017 04:35:00 +0000 (UTC) From: "Anoop Sam John (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-18448) Added support for refreshing HFiles through API and shell MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 28 Jul 2017 04:35:12 -0000 [ https://issues.apache.org/jira/browse/HBASE-18448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16104438#comment-16104438 ] Anoop Sam John commented on HBASE-18448: ---------------------------------------- I believe u can do this with out any addition to HBase code base. Adding such a public API (which does not make much sense for most of the users) is a worrying point. How u can do this is via CP Endpoints. The EPs will run parallely on each of the Region instance and u can invoke it from client side. (Pls refer AggregationClient , Aggregate.proto and related classes. Also pls refer BulkDeleteEP.) Any way you are using Store#refreshStoreFiles() API. You can see this interface is already exposed to CPs. So in the EP impl (there u will get ref to Region instance) u can get stores in that region and call this API. See Region#getStores(). > Added support for refreshing HFiles through API and shell > --------------------------------------------------------- > > Key: HBASE-18448 > URL: https://issues.apache.org/jira/browse/HBASE-18448 > Project: HBase > Issue Type: Improvement > Affects Versions: 2.0.0, 1.3.1 > Reporter: Ajay Jadhav > Assignee: Ajay Jadhav > Priority: Minor > Fix For: 1.4.0 > > Attachments: HBASE-18448.branch-1.001.patch, HBASE-18448.branch-1.002.patch > > > In the case where multiple HBase clusters are sharing a common rootDir, even after flushing the data from > one cluster doesn't mean that other clusters (replicas) will automatically pick the new HFile. Through this patch, > we are exposing the refresh HFiles API which when issued from a replica will update the in-memory file handle list > with the newly added file. > This allows replicas to be consistent with the data written through the primary cluster. -- This message was sent by Atlassian JIRA (v6.4.14#64029)