Skip to content

HBASE-22871 Move the DirScanPool out and do not use static field - #504

Merged
Apache9 merged 1 commit into
apache:masterfrom
Apache9:HBASE-22871
Aug 17, 2019
Merged

HBASE-22871 Move the DirScanPool out and do not use static field#504
Apache9 merged 1 commit into
apache:masterfrom
Apache9:HBASE-22871

Conversation

@Apache9

Copy link
Copy Markdown
Contributor

No description provided.

@Apache9
Apache9 requested a review from openinxAugust 17, 2019 04:20
@Reidddddd

Copy link
Copy Markdown
Contributor

LGTM, just one nit.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec37Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 6 new or modified test files.
_ master Compile Tests _
+1mvninstall316master passed
+1compile51master passed
+1checkstyle71master passed
+1shadedjars263branch has no errors when building our shaded downstream artifacts.
+1javadoc33master passed
0spotbugs250Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs248master passed
_ Patch Compile Tests _
+1mvninstall290the patch passed
+1compile50the patch passed
+1javac50the patch passed
+1checkstyle71hbase-server: The patch generated 0 new + 113 unchanged - 5 fixed = 113 total (was 118)
+1whitespace0The patch has no whitespace issues.
+1shadedjars263patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck915Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1javadoc34the patch passed
+1findbugs249the patch passed
_ Other Tests _
-1unit8307hbase-server in the patch failed.
+1asflicense24The patch does not generate ASF License warnings.
11602
ReasonTests
Failed junit testshadoop.hbase.replication.TestReplicationSmallTests
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-504/1/artifact/out/Dockerfile
GITHUB PR#504
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 80582056ea12 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-504/out/precommit/personality/provided.sh
git revisionmaster / 43a0ec8
Default Java1.8.0_181
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-504/1/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-504/1/testReport/
Max. process+thread count4687 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-504/1/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache9

Copy link
Copy Markdown
ContributorAuthor

Any other concerns? @Reidddddd Thanks.

// Create cleaner thread pool
cleanerPool = new DirScanPool(conf);
// Start log cleaner thread
int cleanerInterval = conf.getInt("hbase.master.cleaner.interval", 600 * 1000);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it a static config key & default value ?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is just a format change? Can do it in another issue if need as it is not introduced by the patch here.

private class CleanerTask extends RecursiveTask<Boolean> {
private final class CleanerTask extends RecursiveTask<Boolean> {

private static final long serialVersionUID = -5444212174088754172L;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we really need this serialVersiolUID ? I don't see any serialization...

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The RecursiveTask implements Serializable so we need a serialVersionUID, otherwise there will be a warning.

@openinxopeninx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec66Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 6 new or modified test files.
_ master Compile Tests _
+1mvninstall411master passed
+1compile70master passed
+1checkstyle94master passed
+1shadedjars308branch has no errors when building our shaded downstream artifacts.
+1javadoc42master passed
0spotbugs301Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs300master passed
_ Patch Compile Tests _
+1mvninstall345the patch passed
+1compile66the patch passed
+1javac66the patch passed
+1checkstyle100hbase-server: The patch generated 0 new + 113 unchanged - 5 fixed = 113 total (was 118)
+1whitespace0The patch has no whitespace issues.
+1shadedjars322patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck1082Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1javadoc38the patch passed
+1findbugs258the patch passed
_ Other Tests _
+1unit16092hbase-server in the patch passed.
+1asflicense26The patch does not generate ASF License warnings.
20051
SubsystemReport/Notes
DockerClient=18.09.7 Server=18.09.7 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-504/2/artifact/out/Dockerfile
GITHUB PR#504
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 18ae4df26546 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-504/out/precommit/personality/provided.sh
git revisionmaster / 43a0ec8
Default Java1.8.0_181
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-504/2/testReport/
Max. process+thread count4675 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-504/2/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@ReiddddddReidddddd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA said ok, and so do i, +1.

@Apache9
Apache9 merged commit 8cb531f into apache:masterAug 17, 2019
asfgit pushed a commit that referenced this pull request Aug 17, 2019
Signed-off-by: Zheng Hu <openinx@gmail.com>
Signed-off-by: Reid Chan <reidchan@apache.org>
asfgit pushed a commit that referenced this pull request Aug 17, 2019
Signed-off-by: Zheng Hu <openinx@gmail.com>
Signed-off-by: Reid Chan <reidchan@apache.org>
asfgit pushed a commit that referenced this pull request Aug 17, 2019
Signed-off-by: Zheng Hu <openinx@gmail.com>
Signed-off-by: Reid Chan <reidchan@apache.org>
@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec64Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 6 new or modified test files.
_ master Compile Tests _
+1mvninstall407master passed
+1compile72master passed
+1checkstyle100master passed
+1shadedjars359branch has no errors when building our shaded downstream artifacts.
+1javadoc46master passed
0spotbugs335Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs332master passed
_ Patch Compile Tests _
+1mvninstall368the patch passed
+1compile68the patch passed
+1javac68the patch passed
+1checkstyle89hbase-server: The patch generated 0 new + 113 unchanged - 5 fixed = 113 total (was 118)
+1whitespace1The patch has no whitespace issues.
+1shadedjars364patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck1230Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1javadoc44the patch passed
+1findbugs348the patch passed
_ Other Tests _
-1unit15489hbase-server in the patch failed.
+1asflicense38The patch does not generate ASF License warnings.
19946
ReasonTests
Failed junit testshadoop.hbase.replication.TestReplicationDisableInactivePeer
hadoop.hbase.replication.TestReplicationSmallTests
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-504/3/artifact/out/Dockerfile
GITHUB PR#504
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 99aed17d9b1d 4.4.0-154-generic #181-Ubuntu SMP Tue Jun 25 05:29:03 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-504/out/precommit/personality/provided.sh
git revisionmaster / 7903f55
Default Java1.8.0_181
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-504/3/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-504/3/testReport/
Max. process+thread count4474 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-504/3/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.


@ClassRule
public static final HBaseClassTestRule CLASS_RULE =
HBaseClassTestRule.forClass(TestCleanerChore.class);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try avoiding this unnecessary change.

infraio pushed a commit to infraio/hbase that referenced this pull request Aug 17, 2020
…che#504)
Signed-off-by: Zheng Hu <openinx@gmail.com>
Signed-off-by: Reid Chan <reidchan@apache.org>
symat pushed a commit to symat/hbase that referenced this pull request Feb 17, 2021
…che#504)
Signed-off-by: Zheng Hu <openinx@gmail.com>
Signed-off-by: Reid Chan <reidchan@apache.org>
(cherry picked from commit f7364a6)
Change-Id: I2126efcbfd71c6a3a997d84f81469d52a70fa38d
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Apache9@Reidddddd@Apache-HBase@openinx