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 435DA200CFE for ; Fri, 8 Sep 2017 11:31:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 421751609C5; Fri, 8 Sep 2017 09:31:09 +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 8CF081609A7 for ; Fri, 8 Sep 2017 11:31:08 +0200 (CEST) Received: (qmail 60334 invoked by uid 500); 8 Sep 2017 09:31:07 -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 60323 invoked by uid 99); 8 Sep 2017 09:31:07 -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; Fri, 08 Sep 2017 09:31:07 +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 B77E9CECAA for ; Fri, 8 Sep 2017 09:31:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id eM9pN8lJs8we for ; Fri, 8 Sep 2017 09:31:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 439F661132 for ; Fri, 8 Sep 2017 09:31:02 +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 9F96FE06CF for ; Fri, 8 Sep 2017 09:31: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 97E3724158 for ; Fri, 8 Sep 2017 09:31:00 +0000 (UTC) Date: Fri, 8 Sep 2017 09:31:00 +0000 (UTC) From: "Chia-Ping Tsai (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-13333) Renew Scanner Lease without advancing the RegionScanner MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Sep 2017 09:31:09 -0000 [ https://issues.apache.org/jira/browse/HBASE-13333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16158383#comment-16158383 ] Chia-Ping Tsai commented on HBASE-13333: ---------------------------------------- {code} $ git status On branch branch-1.3 Your branch is up-to-date with 'origin/branch-1.3'. nothing to commit, working tree clean $ git log --grep=13333 commit 0e76cf5be41485849c7330a0dec281cadad7d135 Author: Lars Hofhansl Date: Sat May 2 17:52:27 2015 -0700 HBASE-13333 Renew Scanner Lease without advancing the RegionScanner. {code} It was already in 1.3. > Renew Scanner Lease without advancing the RegionScanner > ------------------------------------------------------- > > Key: HBASE-13333 > URL: https://issues.apache.org/jira/browse/HBASE-13333 > Project: HBase > Issue Type: Bug > Reporter: Lars Hofhansl > Assignee: Lars Hofhansl > Fix For: 2.0.0, 0.98.13, 1.0.2, 1.2.0, 1.1.1 > > Attachments: 13333-0.98.txt, 13333-master.txt > > > We have a usecase (for Phoenix) where we want to let the server know that the client is still around. Like a client-side heartbeat. > Doing a full heartbeat is complicated, but we could add the ability to make scanner call with caching set to 0. The server already does the right thing (it renews the lease, but does not advance the scanner). > It looks like the client (ScannerCallable) also does the right thing. We cannot break ResultScanner before HBase 2.0, but we can add a renewLease() method to AbstractClientScaner. Phoenix (or any other caller) can then cast to ClientScanner and call that method to ensure we renew the lease on the server. > It would be a simple and fully backwards compatible change. [~giacomotaylor] > Comments? -- This message was sent by Atlassian JIRA (v6.4.14#64029)