[
https://issues.apache.org/jira/browse/HBASE-11819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14188894#comment-14188894
]
stack commented on HBASE-11819:
-------------------------------
You create an admin. In future, close it inside a try/finally rather than just
when you are done.
+ Admin admin = util.getHBaseAdmin();
....
+ admin.createTable(htd, new byte[][] { rowSeperator1, rowSeperator2 });
+ util.waitUntilAllRegionsAssigned(testTable);
+ admin.close();
Instead do...
+ Admin admin = util.getHBaseAdmin();
try {
+ admin.createTable(htd, new byte[][] { rowSeperator1, rowSeperator2 });
+ util.waitUntilAllRegionsAssigned(testTable);
} finally {
admin.close...
Just FYI.
Same with HTable.
See how the way you are making HTable is now deprecated? Avoid doing it the
way you have it if you can.
Otherwise patch looks good to me.
Good for you [~apurtell]?
> Unit test for CoprocessorHConnection
> -------------------------------------
>
> Key: HBASE-11819
> URL: https://issues.apache.org/jira/browse/HBASE-11819
> Project: HBase
> Issue Type: Test
> Reporter: Andrew Purtell
> Assignee: Talat UYARER
> Priority: Minor
> Labels: newbie++
> Fix For: 2.0.0, 0.98.8, 0.99.2
>
> Attachments: HBASE-11819.patch
>
>
> Add a unit test to hbase-server that exercises CoprocessorHConnection .
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)