[
https://issues.apache.org/jira/browse/HBASE-25861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17347811#comment-17347811
]
Hudson commented on HBASE-25861:
--------------------------------
Results for branch branch-2
[build #254 on
builds.a.o|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2/254/]:
(x) *{color:red}-1 overall{color}*
----
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general
report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2/254/General_20Nightly_20Build_20Report/]
(/) {color:green}+1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2)
report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2/254/JDK8_20Nightly_20Build_20Report_20_28Hadoop2_29/]
(x) {color:red}-1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3)
report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2/254/JDK8_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk11 hadoop3 checks{color}
-- For more information [see jdk11
report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2/254/JDK11_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
(/) {color:green}+1 client integration test{color}
> Correct the usage of Configuration#addDeprecation
> -------------------------------------------------
>
> Key: HBASE-25861
> URL: https://issues.apache.org/jira/browse/HBASE-25861
> Project: HBase
> Issue Type: Bug
> Affects Versions: 3.0.0-alpha-1, 2.5.0
> Reporter: Baiqiang Zhao
> Assignee: Baiqiang Zhao
> Priority: Major
> Fix For: 3.0.0-alpha-1, 2.5.0
>
>
> When I was solving HBASE-25745
> ([PR3139|https://github.com/apache/hbase/pull/3139]), I found that our use of
> Configuration#addDeprecation API was wrong.
>
> At present, we will call Configuration#addDeprecation in the static block for
> the deprecated configuration. But after testing, it is found that this does
> not complete backward compatibility. When user upgrades HBase and does not
> change the deprecated configuration to the new configuration, he will find
> that the deprecated configuration does not effect, which may not be
> consistent with expectations. The specific test results can be seen in the PR
> above, and we can found the calling order of Configuration#addDeprecation is
> very important.
>
> Configuration#addDeprecation is a Hadoop API, looking through the Hadoop
> source code, we will find that before creating the Configuration object, the
> addDeprecatedKeys() method will be called first:
> [https://github.com/apache/hadoop/blob/b93e448f9aa66689f1ce5059f6cdce8add130457/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/HdfsConfiguration.java#L34]
> .
--
This message was sent by Atlassian Jira
(v8.3.4#803005)