[
https://issues.apache.org/jira/browse/HBASE-8546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Enis Soztutar updated HBASE-8546:
---------------------------------
Attachment: referred_hadoop_classes.txt
Attaching a list of Hadoop classes referred from HBase.
Since we also use reflection for some of the hadoop class accesses, I've
grepped the source code directory.
{code}
find . -name "*.java" | xargs grep "org.apache.hadoop.[\.a-zA-Z]*"
--no-filename -o | grep -v hbase | sort -u
{code}
We can cross-reference this list to the class' declared annotations. One
problem is that InterfaceAudience does not have runtime retention, so that also
has to be done by referring to source code.
> Ensuring InterfaceAudience is added to Hadoop Core classes used by HBase
> ------------------------------------------------------------------------
>
> Key: HBASE-8546
> URL: https://issues.apache.org/jira/browse/HBASE-8546
> Project: HBase
> Issue Type: Bug
> Components: hadoop2
> Reporter: Suresh Srinivas
> Attachments: referred_hadoop_classes.txt
>
>
> InterfaceAudience classification was added in HADOOP-5073. Some of the
> classes that are not tagged as InterfaceAudience public or limited private
> may have been used in HBase - see one such example - HADOOP-9563.
> This jira is for:
> - Discussing how we could avoid this type of issues - say add unit tests in
> HBase?
> - Find other such classes not tagged as public in Hadoop and tag them in
> Hadoop as LimitedPrivate.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira