Skip to content

HBASE-22624 Should sanity check table configuration when clone snapsh… - #335

Merged
infraio merged 1 commit into
apache:masterfrom
infraio:HBASE-22624
Jul 3, 2019
Merged

HBASE-22624 Should sanity check table configuration when clone snapsh…#335
infraio merged 1 commit into
apache:masterfrom
infraio:HBASE-22624

Conversation

@infraio

Copy link
Copy Markdown
Contributor

…ot to a new table

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec155Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 15 new or modified test files.
_ master Compile Tests _
0mvndep35Maven dependency ordering for branch
+1mvninstall359master passed
+1compile154master passed
+1checkstyle147master passed
+1shadedjars331branch has no errors when building our shaded downstream artifacts.
+1findbugs345master passed
+1javadoc103master passed
_ Patch Compile Tests _
0mvndep18Maven dependency ordering for patch
+1mvninstall338the patch passed
+1compile144the patch passed
+1javac144the patch passed
-1checkstyle85hbase-server: The patch generated 17 new + 200 unchanged - 10 fixed = 217 total (was 210)
+1whitespace0The patch has no whitespace issues.
-1shadedjars261patch has 10 errors when building our shaded downstream artifacts.
+1hadoopcheck1016Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs386the patch passed
+1javadoc96the patch passed
_ Other Tests _
-1unit16628hbase-server in the patch failed.
+1unit310hbase-thrift in the patch passed.
+1unit78hbase-it in the patch passed.
-1asflicense92The patch generated 1 ASF License warnings.
21579
ReasonTests
Failed junit testshadoop.hbase.tool.TestSecureBulkLoadHFiles
hadoop.hbase.client.TestIllegalTableDescriptor
hadoop.hbase.quotas.TestSpaceQuotas
hadoop.hbase.client.TestFromClientSide
hadoop.hbase.replication.TestReplicationKillSlaveRS
hadoop.hbase.client.TestFromClientSideWithCoprocessor
SubsystemReport/Notes
DockerClient=18.09.5 Server=18.09.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/1/artifact/out/Dockerfile
GITHUB PR#335
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux f2035faa23cb 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 15ac781
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/1/artifact/out/diff-checkstyle-hbase-server.txt
shadedjarshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/1/artifact/out/patch-shadedjars.txt
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/1/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/1/testReport/
asflicensehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/1/artifact/out/patch-asflicense-problems.txt
Max. process+thread count4783 (vs. ulimit of 10000)
modulesC: hbase-server hbase-thrift hbase-it U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/1/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

StringUtils.join(",", DEFAULT_COLUMN_FAMILIES));

conf.setBoolean("hbase.table.sanity.checks", true);
conf.setBoolean(TableDescriptorChecker.TABLE_SANITY_CHECKS, true);

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.

Is this different from other conf.setBoolean("hbase.table.sanity.checks", true) which is removed from other tests like TestAvoidCellReferencesIntoShippedBlocks based on the default value of TableDescriptorChecker.TABLE_SANITY_CHECKS?

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.

This is in moudle hbase-it. And this may be runed by user directly and with user's hbase-site.xml? So i didn't remove this.

*/
public static void sanityCheck(final Configuration conf, final TableDescriptor td,
boolean checkCompression, boolean checkEncryption) throws IOException {
boolean logWarn = false;

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.

Can we add a comment here along the lines of: "Setting this to true logs the warning instead of throwing"?

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.

OK.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec26Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 15 new or modified test files.
_ master Compile Tests _
0mvndep25Maven dependency ordering for branch
+1mvninstall241master passed
+1compile108master passed
+1checkstyle120master passed
+1shadedjars272branch has no errors when building our shaded downstream artifacts.
+1findbugs274master passed
+1javadoc77master passed
_ Patch Compile Tests _
0mvndep15Maven dependency ordering for patch
+1mvninstall243the patch passed
+1compile109the patch passed
+1javac109the patch passed
-1checkstyle71hbase-server: The patch generated 2 new + 200 unchanged - 10 fixed = 202 total (was 210)
+1whitespace0The patch has no whitespace issues.
+1shadedjars266patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck728Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs297the patch passed
+1javadoc77the patch passed
_ Other Tests _
-1unit7871hbase-server in the patch failed.
+1unit178hbase-thrift in the patch passed.
+1unit63hbase-it in the patch passed.
+1asflicense84The patch does not generate ASF License warnings.
11549
ReasonTests
Failed junit testshadoop.hbase.client.TestFromClientSide
hadoop.hbase.client.TestIllegalTableDescriptor
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/2/artifact/out/Dockerfile
GITHUB PR#335
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 910eddeca851 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 0198868
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/2/artifact/out/diff-checkstyle-hbase-server.txt
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/2/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/2/testReport/
Max. process+thread count4612 (vs. ulimit of 10000)
modulesC: hbase-server hbase-thrift hbase-it U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/2/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec52Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 15 new or modified test files.
_ master Compile Tests _
0mvndep26Maven dependency ordering for branch
+1mvninstall265master passed
+1compile109master passed
+1checkstyle118master passed
+1shadedjars282branch has no errors when building our shaded downstream artifacts.
+1findbugs325master passed
+1javadoc80master passed
_ Patch Compile Tests _
0mvndep15Maven dependency ordering for patch
+1mvninstall259the patch passed
+1compile114the patch passed
+1javac114the patch passed
+1checkstyle74hbase-server: The patch generated 0 new + 200 unchanged - 10 fixed = 200 total (was 210)
+1checkstyle32The patch passed checkstyle in hbase-thrift
+1checkstyle14The patch passed checkstyle in hbase-it
+1whitespace1The patch has no whitespace issues.
+1shadedjars288patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck830Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs336the patch passed
+1javadoc79the patch passed
_ Other Tests _
-1unit15133hbase-server in the patch failed.
+1unit264hbase-thrift in the patch passed.
+1unit62hbase-it in the patch passed.
+1asflicense70The patch does not generate ASF License warnings.
19186
ReasonTests
Failed junit testshadoop.hbase.replication.TestReplicationKillSlaveRSWithSeparateOldWALs
hadoop.hbase.client.TestIllegalTableDescriptor
hadoop.hbase.client.TestFromClientSide
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/3/artifact/out/Dockerfile
GITHUB PR#335
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux a388dcdfaa15 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / b20044c
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/3/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/3/testReport/
Max. process+thread count4813 (vs. ulimit of 10000)
modulesC: hbase-server hbase-thrift hbase-it U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/3/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec177Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 15 new or modified test files.
_ master Compile Tests _
0mvndep24Maven dependency ordering for branch
+1mvninstall253master passed
+1compile117master passed
+1checkstyle120master passed
+1shadedjars283branch has no errors when building our shaded downstream artifacts.
+1findbugs259master passed
+1javadoc70master passed
_ Patch Compile Tests _
0mvndep13Maven dependency ordering for patch
+1mvninstall245the patch passed
+1compile115the patch passed
+1javac115the patch passed
+1checkstyle77hbase-server: The patch generated 0 new + 200 unchanged - 10 fixed = 200 total (was 210)
+1checkstyle32The patch passed checkstyle in hbase-thrift
+1checkstyle13The patch passed checkstyle in hbase-it
+1whitespace0The patch has no whitespace issues.
+1shadedjars278patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck771Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs301the patch passed
+1javadoc74the patch passed
_ Other Tests _
+1unit14651hbase-server in the patch passed.
+1unit274hbase-thrift in the patch passed.
+1unit68hbase-it in the patch passed.
+1asflicense63The patch does not generate ASF License warnings.
18625
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/4/artifact/out/Dockerfile
GITHUB PR#335
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux de1c18f6bf9d 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 0c8dc5d
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/4/testReport/
Max. process+thread count4674 (vs. ulimit of 10000)
modulesC: hbase-server hbase-thrift hbase-it U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/4/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

Comment threadhbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java Outdated
Comment threadhbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java Outdated

@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, +1 if HBASE QA is OK.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec172Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
+1test4tests0The patch appears to include 15 new or modified test files.
_ master Compile Tests _
0mvndep29Maven dependency ordering for branch
+1mvninstall325master passed
+1compile145master passed
+1checkstyle145master passed
+1shadedjars347branch has no errors when building our shaded downstream artifacts.
+1findbugs388master passed
+1javadoc91master passed
_ Patch Compile Tests _
0mvndep17Maven dependency ordering for patch
+1mvninstall318the patch passed
+1compile141the patch passed
+1javac141the patch passed
+1checkstyle90hbase-server: The patch generated 0 new + 200 unchanged - 10 fixed = 200 total (was 210)
+1checkstyle41The patch passed checkstyle in hbase-thrift
+1checkstyle17The patch passed checkstyle in hbase-it
+1whitespace0The patch has no whitespace issues.
+1shadedjars347patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck1022Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1findbugs401the patch passed
+1javadoc92the patch passed
_ Other Tests _
-1unit17155hbase-server in the patch failed.
+1unit317hbase-thrift in the patch passed.
+1unit78hbase-it in the patch passed.
+1asflicense75The patch does not generate ASF License warnings.
22193
ReasonTests
Failed junit testshadoop.hbase.client.TestSnapshotTemporaryDirectoryWithRegionReplicas
hadoop.hbase.quotas.TestSpaceQuotas
hadoop.hbase.util.TestFromClientSide3WoUnsafe
hadoop.hbase.client.TestFromClientSideWithCoprocessor
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/5/artifact/out/Dockerfile
GITHUB PR#335
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 93fdd0522a55 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / fabf2b8
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/5/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/5/testReport/
Max. process+thread count5189 (vs. ulimit of 10000)
modulesC: hbase-server hbase-thrift hbase-it U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-335/5/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@infraio

Copy link
Copy Markdown
ContributorAuthor

The failed ut should not related. Let me take a try on my local PC.

@the-sakthithe-sakthi 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

@infraio
infraio merged commit 64e732d into apache:masterJul 3, 2019
@infraio
infraio deleted the HBASE-22624 branch July 3, 2019 03:54
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

@infraio@Apache-HBase@openinx@the-sakthi