hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10640) Implement Namenode RPCs in HDFS native client
Date Mon, 09 Jun 2014 18:13:04 GMT

    [ 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)

Mime
View raw message