HBASE-24174 Fix findbugs warning in branch-1#1494
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
@Reidddddd in branch-2+, this has been suppressed with as part of HBASE-20069 |
fec95bc to
9ebc179
Compare
|
|
||
| @Override | ||
| public void onConfigurationChange(Configuration newConf) { | ||
| public synchronized void onConfigurationChange(Configuration newConf) { |
There was a problem hiding this comment.
If we want to make this change, it should go to master, branch-2 first right?
There was a problem hiding this comment.
I saw the warning in branch-1 only after HBASE-24174. I can forward-port to branch-2 and master. But as you said it is supressed, dilemma...
There was a problem hiding this comment.
Right, it is suppressed there. Either we can backport suppressed one or forward port this to branch-2+ and remove suppression there. Sure, let's see QA 👍
|
Let's see if the warning fade, after this commit.. |
|
💔 -1 overall
This message was automatically generated. |
|
Let me check how does the branch-2 suppress the warning...( |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
The suppress doesn't work?... o_0 |
Oh ok, it seems we will have to put it over where we define authManager. Interesting! |
Tried, the previous commit... |
|
the 2nd commit suppressed on definition |
oops, missed previous commit. This is weird, how come it is not getting suppressed on branch-1 |
|
💔 -1 overall
This message was automatically generated. |
|
so buggy........having no clue.. |
|
💔 -1 overall
This message was automatically generated. |
|
I just found the findbug's line number doesn't match. |
Oh, where can we see that? Are you referring to this one: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/8/artifact/out/branch-findbugs-hbase-server-warnings.xml ? |
yeah, agree... |
|
This 2270 and 2271 line is the original code without patch. |
wow, then it's not even looking in the patch, weird... |
|
that's the findbugs report for the branch, before the patch. the report for after the patch says there is no issue. so it's correctly reporting exactly what you're trying to fix here. |
(I am purposefully only commenting on what qabot is saying, not on wether or not ignoring this warning is a good idea.) |
|
Thanks @busbey ! Oh, there're two findbugs..., oversight. |
|
💔 -1 overall
This message was automatically generated. |
|
Rebased branch-1 |
|
💔 -1 overall
This message was automatically generated. |
|
Yup, we are good :) |
| System.setProperty("hadoop.policy.file", "hbase-policy.xml"); | ||
| synchronized (authManager) { | ||
| authManager.refresh(newConf, new HBasePolicyProvider()); | ||
| if (authorize) { |
There was a problem hiding this comment.
btw, this if condition is an enhancement for this patch? is it necessary?
There was a problem hiding this comment.
Yes, it is, to avoid unnecessary refresh. If authorization is disabled, then no need to refresh it which it is time consuming.
We should forward-port this patch to branch-2+ and master as well, quite some changes.
|
Thanks @virajjasani , we finally get here. |
Signed-off-by: Viraj Jasani <vjasani@apache.org>
…he#1494) Signed-off-by: Viraj Jasani <vjasani@apache.org>
…he#1494) Signed-off-by: Viraj Jasani <vjasani@apache.org>
No description provided.