hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enis Soztutar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-17680) Run mini cluster through JNI in tests
Date Fri, 24 Feb 2017 01:08:46 GMT

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

Enis Soztutar commented on HBASE-17680:

bq. Not sure of why we should create NativeTestingUtility - it would be wrapper around HTU
and is written in Java, not C++.
The difference is that you do not need to have to code in the JNI layer and the code will
be significantly less, as well as more maintainable. The only thing you need to pass back
is a return results. For example, in the tests, usually we create a table with a given family,
and put some data. You just need two methods which directly forward the request to the java
class in this case, no need to import Put object, Table object, Admin, etc. 

> 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.v1.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

View raw message