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 3529C200D1D for ; Sat, 30 Sep 2017 02:34:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 338791609ED; Sat, 30 Sep 2017 00:34:14 +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 797581609D1 for ; Sat, 30 Sep 2017 02:34:13 +0200 (CEST) Received: (qmail 75802 invoked by uid 500); 30 Sep 2017 00:34:12 -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 75791 invoked by uid 99); 30 Sep 2017 00:34:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Sep 2017 00:34:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BB694180E2D for ; Sat, 30 Sep 2017 00:34:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.501 X-Spam-Level: X-Spam-Status: No, score=-99.501 tagged_above=-999 required=6.31 tests=[KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id BI4aByNrqXtR for ; Sat, 30 Sep 2017 00:34:09 +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 95E4D5F39F for ; Sat, 30 Sep 2017 00:34:09 +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 BD3ACE00DF for ; Sat, 30 Sep 2017 00:34:08 +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 30CA5242C4 for ; Sat, 30 Sep 2017 00:34:04 +0000 (UTC) Date: Sat, 30 Sep 2017 00:34:04 +0000 (UTC) From: "Appy (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-18884) Coprocessor Design Improvements follow up of HBASE-17732 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 30 Sep 2017 00:34:14 -0000 [ https://issues.apache.org/jira/browse/HBASE-18884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16186745#comment-16186745 ] Appy commented on HBASE-18884: ------------------------------ Pushed addendum. {noformat} /** - * Coprocessor endpoints providing protobuf services should implement this interface. + * Coprocessor endpoints providing protobuf services should override this method. + * @return Iterable of {@link Service}s or empty collection. Implementations should never + * return null. */ {noformat} > Coprocessor Design Improvements follow up of HBASE-17732 > -------------------------------------------------------- > > Key: HBASE-18884 > URL: https://issues.apache.org/jira/browse/HBASE-18884 > Project: HBase > Issue Type: Improvement > Components: Coprocessors > Reporter: Appy > Assignee: Appy > Labels: incompatible > Fix For: 2.0.0-alpha-4 > > Attachments: HBASE-18884.master.001.patch > > > Creating new jira to track suggestions that came in review (https://reviews.apache.org/r/62141/) but are not blocker and can be done separately. > Suggestions by [~apurtell] > - Change {{Service Coprocessor#getService()}} to {{List Coprocessor#getServices()}} > - I think we overstepped by offering [table resource management via this interface|https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/CoprocessorEnvironment.java#L57]. There are a lot of other internal resource types which could/should be managed this way but they are all left up to the implementor. Perhaps we should remove the table ref management and leave it up to them as well. > ---- > - Checkin the finalized design doc into repo (https://docs.google.com/document/d/1mPkM1CRRvBMZL4dBQzrus8obyvNnHhR5it2yyhiFXTg/edit) (fyi: [~stack]) > - Added example to javadoc of Coprocessor base interface on how to implement one in the new design -- This message was sent by Atlassian JIRA (v6.4.14#64029)