[
https://issues.apache.org/jira/browse/HBASE-12796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jurriaan Mous updated HBASE-12796:
----------------------------------
Attachment: HBASE-12796.patch
- Removed almost all deprecated HTable calls
- Replaced HTable with Table interface were possible.
- Introduced local Connection creation where necessary and closed them were
necessary.
- Removed almost all direct HBaseAdmin creation
- Fixed a few non TableName calls where necessary and replaced some
RegionLocators and TableDescription getters to Admin calls where possible to
save Table creation.
I will leave the few remaining calls which needs some more code change as I
underestimated a bit of the task but wanted to contribute at least the major
part of the work.
Some Test fails are possible since I did not test them all.
> Clean up HTable and HBaseAdmin deprecated constructor usage
> -----------------------------------------------------------
>
> Key: HBASE-12796
> URL: https://issues.apache.org/jira/browse/HBASE-12796
> Project: HBase
> Issue Type: Improvement
> Reporter: Jurriaan Mous
> Attachments: HBASE-12796.patch
>
>
> The are a lot of calls to the deprecated calls to HBaseAdmin and HTable
> constructors in many tests and even some in production code.
> This issue is about removing most of them so most code does not create
> redundant Connections and underlying pools and RPC clients. Hopefully making
> the tests more lightweight.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)