Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CE52A1105E for ; Mon, 9 Jun 2014 18:13:04 +0000 (UTC) Received: (qmail 55463 invoked by uid 500); 9 Jun 2014 18:13:04 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 55427 invoked by uid 500); 9 Jun 2014 18:13:04 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 55415 invoked by uid 99); 9 Jun 2014 18:13:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 18:13:04 +0000 Date: Mon, 9 Jun 2014 18:13:04 +0000 (UTC) From: "Colin Patrick McCabe (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-10640) Implement Namenode RPCs in HDFS native client 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/HADOOP-10640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14025478#comment-14025478 ] Colin Patrick McCabe commented on HADOOP-10640: ----------------------------------------------- bq. sizeof(struct hrpc_proxy) always larger than RPC_PROXY_USERDATA_MAX? Wenwu, Binglin, are you testing the latest version (v3) ? It includes this fix: {code} diff --git hadoop-native-core/src/main/native/rpc/proxy.c hadoop-native-core/src/main/native/rpc/proxy.c index 9d69788..faa3571 100644 --- hadoop-native-core/src/main/native/rpc/proxy.c +++ hadoop-native-core/src/main/native/rpc/proxy.c @@ -92,7 +92,7 @@ void *hrpc_proxy_alloc_userdata(struct hrpc_proxy *proxy, size_t size) struct hrpc_sync_ctx *hrpc_proxy_alloc_sync_ctx(struct hrpc_proxy *proxy) { struct hrpc_sync_ctx *ctx = - hrpc_proxy_alloc_userdata(proxy, sizeof(struct hrpc_proxy)); + hrpc_proxy_alloc_userdata(proxy, sizeof(*ctx)); if (!ctx) { return NULL; } {code} > Implement Namenode RPCs in HDFS native client > --------------------------------------------- > > Key: HADOOP-10640 > URL: https://issues.apache.org/jira/browse/HADOOP-10640 > Project: Hadoop Common > Issue Type: Sub-task > Components: native > Affects Versions: HADOOP-10388 > Reporter: Colin Patrick McCabe > Assignee: Colin Patrick McCabe > Attachments: HADOOP-10640-pnative.001.patch, HADOOP-10640-pnative.002.patch, HADOOP-10640-pnative.003.patch > > > Implement the parts of libhdfs that just involve making RPCs to the Namenode, such as mkdir, rename, etc. -- This message was sent by Atlassian JIRA (v6.2#6252)