Uh oh!
There was an error while loading. Please reload this page.
HBASE-23682 Fix NPE when disable DeadServerMetricRegionChore - #1026
Conversation
Apache-HBase
commented
Jan 13, 2020
🎊 +1 overall
This message was automatically generated. |
HorizonNet
left a comment
There was a problem hiding this comment.
LGTM overall. Can you also add test cases to ensure we don't run into this one again (at least for the AssignmentManager)?
bharathv
left a comment
There was a problem hiding this comment.
Stumbled upon this change. It looks like Nullable annotations are not a standard but curious whats the community's take on it.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
binlijin
commented
Jan 14, 2020
Done. |
Apache-HBase
commented
Jan 14, 2020
🎊 +1 overall
This message was automatically generated. |
bharathv
left a comment
There was a problem hiding this comment.
Thanks for adding the annotations. Few comments in the added test. Mind cleaning it up?
Uh oh!
There was an error while loading. Please reload this page.
| /** | ||
| * Base class for AM test. | ||
| */ | ||
| @Category({ MasterTests.class, LargeTests.class }) |
There was a problem hiding this comment.
This would be MediumTest, no?
| protected HBaseTestingUtility util; | ||
| protected void setupConfiguration(Configuration conf) throws Exception { | ||
| FSUtils.setRootDir(conf, util.getDataTestDir()); |
There was a problem hiding this comment.
Again looks like a remnant of copy+paste from TestAssignment...
| this.util.createTable(tableName, "f"); | ||
| this.util.waitTableAvailable(tableName); | ||
| } finally { | ||
| this.util.killMiniHBaseCluster(); |
There was a problem hiding this comment.
I think it's better to have a shutdown, instead of kill the cluster, in tearDown. Also seems that an assertion in this test is missing.
There was a problem hiding this comment.
The test is failed when startMiniCluster without this patch.
[INFO] Running org.apache.hadoop.hbase.master.assignment.TestDeadServerMetricRegionChore
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 210.246 s <<< FAILURE! - in org.apache.hadoop.hbase.master.assignment.TestDeadServerMetricRegionChore
[ERROR] org.apache.hadoop.hbase.master.assignment.TestDeadServerMetricRegionChore.testDeadServerMetricRegionChore Time elapsed: 210.054 s <<< ERROR!
java.io.IOException: Shutting down
at org.apache.hadoop.hbase.master.assignment.TestDeadServerMetricRegionChore.testDeadServerMetricRegionChore(TestDeadServerMetricRegionChore.java:60)
Caused by: java.lang.RuntimeException: Master not initialized after 200000ms
at org.apache.hadoop.hbase.master.assignment.TestDeadServerMetricRegionChore.testDeadServerMetricRegionChore(TestDeadServerMetricRegionChore.java:60)
There was a problem hiding this comment.
Is the shutdown failing or because it is part of the tearDown?
There was a problem hiding this comment.
The shutdown has no problem, i already change killMiniHBaseCluster
to shutdownMiniCluster.
Apache-HBase
commented
Jan 15, 2020
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jan 15, 2020
🎊 +1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| @@ -0,0 +1,68 @@ | |||
| /** | |||
There was a problem hiding this comment.
You mean change "/**" to "/*" ? I see other tests all use "/**" no one use "/*"
There was a problem hiding this comment.
/** is interpreted as a javadoc in IDEs. If you notice others' changes, people are switching to /* incrementally in their patches (files they are touching). Now that you are adding a new class, it is better to start with /*.
There was a problem hiding this comment.
OK, thanks for you explanation.
Apache-HBase
commented
Jan 16, 2020
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jan 16, 2020
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jan 17, 2020
💔 -1 overall
This message was automatically generated. |
saintstack
commented
Feb 5, 2020
Rerunning build. @bharathv , you approving this change sir? |
bharathv
left a comment
There was a problem hiding this comment.
@saintstack There were a couple of comments that weren't addressed since the last review. +1 once they are addressed.
@binlijin FYI.
+1
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Apache-HBase
commented
Feb 6, 2020
🎊 +1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
Apache-HBase
commented
Feb 6, 2020
🎊 +1 overall
This message was automatically generated. |
bharathv
left a comment
There was a problem hiding this comment.
@HorizonNet You were looking at this too, any more comments or is this good to go?
…1026) Signed-off-by: Bharath Vissapragada <bharathv@apache.org>
…1026) Signed-off-by: Bharath Vissapragada <bharathv@apache.org>
…1026) (apache#1151) Signed-off-by: Bharath Vissapragada <bharathv@apache.org> (cherry picked from commit 24823ec)
No description provided.