Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 061BF9FE0 for ; Thu, 24 Nov 2011 15:51:03 +0000 (UTC) Received: (qmail 22100 invoked by uid 500); 24 Nov 2011 15:51:02 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 22058 invoked by uid 500); 24 Nov 2011 15:51:02 -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 22008 invoked by uid 99); 24 Nov 2011 15:51:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2011 15:51:02 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2011 15:51:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EAC6D9C41A for ; Thu, 24 Nov 2011 15:50:39 +0000 (UTC) Date: Thu, 24 Nov 2011 15:50:39 +0000 (UTC) From: "Ted Yu (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1353868164.10028.1322149839963.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1239735426.9816.1322145279817.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4865) HBaseAdmin addColumn, modifyColumn, deleteColumn are documented as asynchronous but are actually synchronous. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156771#comment-13156771 ] Ted Yu commented on HBASE-4865: ------------------------------- w.r.t. HBaseAdmin#createTable[Async] methods, see HBASE-3904 and HBASE-3229 We don't need to change their implementation now. > HBaseAdmin addColumn, modifyColumn, deleteColumn are documented as asynchronous but are actually synchronous. > ------------------------------------------------------------------------------------------------------------- > > Key: HBASE-4865 > URL: https://issues.apache.org/jira/browse/HBASE-4865 > Project: HBase > Issue Type: Bug > Components: client, master > Affects Versions: 0.94.0 > Environment: all > Reporter: nkeywal > Priority: Minor > > The javadoc states is asynchronous, but we can see in the implementation on HMaster that the implementation does not use executorService but calls directly process(). This is not true for all methods: enableTable, modifyTable, disableTable are truly asynchronous. > The other impact is that the listeners are not called, as this is done by the executorService. > I don't known if we have to change the documentation or the implementation. For consistency; I would change the implementation, but it may breaks existing code. > Two other comments: > 1) There is no real naming pattern here, while it would be useful: > HBaseAdmin#createTable is synchrounous and calls the asynchronous HMaster#createTable > HBaseAdmin#createTableAsync is asynchrounous and calls the asynchronous HMaster#createTable > HBaseAdmin#modifyTable is asynchrounous and calls the asynchronous HMaster#modifyTable > HBaseAdmin#modifyColumn is documented as asynchrounous and calls the synchronous HMaster#modifyColumn > 2) the coprocessor "post" semantic is not consistent across the services. > - when the service is synchronous, post is called after the services execution (ex: addColumn with the current implementation). > - when the service is asynchronous, post is called after the executorService has registered the service to execute, but the service itself is not executed yet. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira