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

Duo Zhang commented on HBASE-21887:
-----------------------------------

For most of these projects, I think they just use HBase as an external storage, 
so maybe they even do not want to start a mini cluster, just give them a client 
side mock is enough? I mean, you can initialize a mocked Connection instance, 
for which the data are stored in memory, and use this to test your application.

Phoenix may need to test some behaviors such as region merge/split, region 
server restart, wal splitting, etc, so maybe it is an exception.

> HBaseTestingUtility should not be IA.Public
> -------------------------------------------
>
>                 Key: HBASE-21887
>                 URL: https://issues.apache.org/jira/browse/HBASE-21887
>             Project: HBase
>          Issue Type: Task
>          Components: Client, test
>            Reporter: Duo Zhang
>            Priority: Major
>
> It exposes too many internal stuffs to end user, and it is not easy to keep 
> the API stable, as it is also used by us to implementing UTs.
> For end users, we should only exposes API to start a in process mini hbase 
> cluster, and then user can create Connections to communicate with the 
> cluster. And could exposes several APIs to start/stop/restart master 
> regionservers. I think this is enough?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to