[ 
https://issues.apache.org/jira/browse/HBASE-17680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15889492#comment-15889492
 ] 

Ted Yu commented on HBASE-17680:
--------------------------------

Noticed the following from valgrind output:
{code}
==21686== Invalid write of size 4
==21686==    at 0x91BBBCC: ???
==21686==    by 0x91AFE53: ???
==21686==    by 0x91AFFFC: ???
==21686==    by 0x91AFFFC: ???
==21686==    by 0x91A84E6: ???
==21686==    by 0x5497D7A: ??? (in 
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==21686==    by 0x5496643: ??? (in 
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==21686==    by 0x5496C07: ??? (in 
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==21686==    by 0x584007D: ??? (in 
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==21686==    by 0x54BEE41: JNI_CreateJavaVM (in 
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==21686==    by 0x426260: hbase::MiniCluster::CreateVM(JavaVM_**) 
(mini-cluster.cc:73)
==21686==    by 0x426B5A: hbase::MiniCluster::Setup() (mini-cluster.cc:115)
==21686==  Address 0xffefeb710 is on thread 1's stack
==21686==  81920 bytes below stack pointer
{code}
Line 73 is this line:
{code}
  rv = JNI_CreateJavaVM(jvm, (void **)&env_, &args);
{code}
Where jvm is JavaVM **jvm

Without symbols from libjvm.so, it is not easy to know what the actual error is.

> Run mini cluster through JNI in tests
> -------------------------------------
>
>                 Key: HBASE-17680
>                 URL: https://issues.apache.org/jira/browse/HBASE-17680
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>         Attachments: 17680.v14.txt, 17680.v17.txt, 17680.v18.txt, 
> 17680.v1.txt, 17680.v20.txt, 17680.v22.txt, 17680.v3.txt, 17680.v8.txt
>
>
> Currently tests start local hbase cluster through hbase shell.
> There is less control over the configuration of the local cluster this way.
> This issue would replace hbase shell with JNI interface to mini cluster.
> We would have full control over the cluster behavior.
> Thanks to [~devaraj] who started this initiative.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to