Skip to content

HBASE-22941 merge operation returns parent regions in random order - #556

Merged
saintstack merged 4 commits into
apache:masterfrom
stoty:HBASE-22941
Aug 29, 2019
Merged

HBASE-22941 merge operation returns parent regions in random order#556
saintstack merged 4 commits into
apache:masterfrom
stoty:HBASE-22941

Conversation

@stoty

Copy link
Copy Markdown
Contributor

store and return the merge parent regions in ascending order

remove left over check for exactly two merged regions

add unit test

store and return the merge parent regions in ascending order
remove left over check for exactly two merged regions
add unit test

@saintstacksaintstack 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.

Thanks for the fixes (and obviously, the testing that found these bugs). LGTM.

Will see how it does on build and will push if all good.

for (int c = 0; c < 19; c++) {
assertTrue(Bytes.compareTo(mergeParentRegions.get(c).getStartKey(), mergeParentRegions.get(c+1).getStartKey())<0);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

whitespace:end of line

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec130Docker mode activated.
_ Prechecks _
+1dupname1No 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 1 new or modified test files.
_ master Compile Tests _
+1mvninstall512master passed
+1compile87master passed
+1checkstyle124master passed
+1shadedjars406branch has no errors when building our shaded downstream artifacts.
+1javadoc47master passed
0spotbugs342Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs338master passed
_ Patch Compile Tests _
+1mvninstall433the patch passed
+1compile79the patch passed
+1javac79the patch passed
-1checkstyle102hbase-server: The patch generated 1 new + 17 unchanged - 0 fixed = 18 total (was 17)
-1whitespace0The patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1shadedjars409patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck1436Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1javadoc50the patch passed
+1findbugs377the patch passed
_ Other Tests _
-1unit16348hbase-server in the patch failed.
+1asflicense29The patch does not generate ASF License warnings.
21493
ReasonTests
Failed junit testshadoop.hbase.client.TestAdmin1
hadoop.hbase.client.TestFromClientSide3
hadoop.hbase.client.TestAsyncRegionAdminApi2
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/1/artifact/out/Dockerfile
GITHUB PR#556
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 34466454383b 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-556/out/precommit/personality/provided.sh
git revisionmaster / 56980fb
Default Java1.8.0_181
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/1/artifact/out/diff-checkstyle-hbase-server.txt
whitespacehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/1/artifact/out/whitespace-eol.txt
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/1/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/1/testReport/
Max. process+thread count4717 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/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.

for (int c = 0; c < 19; c++) {
assertTrue(Bytes.compareTo(mergeParentRegions.get(c).getStartKey(), mergeParentRegions.get(c+1).getStartKey())<0);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

whitespace:end of line

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec247Docker 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 1 new or modified test files.
_ master Compile Tests _
+1mvninstall526master passed
+1compile90master passed
+1checkstyle110master passed
+1shadedjars401branch has no errors when building our shaded downstream artifacts.
+1javadoc54master passed
0spotbugs376Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs373master passed
_ Patch Compile Tests _
+1mvninstall478the patch passed
+1compile91the patch passed
+1javac91the patch passed
-1checkstyle109hbase-server: The patch generated 1 new + 17 unchanged - 0 fixed = 18 total (was 17)
-1whitespace0The patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1shadedjars392patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck1430Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1javadoc46the patch passed
+1findbugs328the patch passed
_ Other Tests _
-1unit16527hbase-server in the patch failed.
+1asflicense33The patch does not generate ASF License warnings.
21759
ReasonTests
Failed junit testshadoop.hbase.client.TestAsyncRegionAdminApi2
hadoop.hbase.client.TestAdmin1
hadoop.hbase.master.TestMasterShutdown
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/2/artifact/out/Dockerfile
GITHUB PR#556
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux d4e388688720 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-556/out/precommit/personality/provided.sh
git revisionmaster / 56980fb
Default Java1.8.0_181
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/2/artifact/out/diff-checkstyle-hbase-server.txt
whitespacehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/2/artifact/out/whitespace-eol.txt
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/2/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/2/testReport/
Max. process+thread count4597 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/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.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec134Docker 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 1 new or modified test files.
_ master Compile Tests _
+1mvninstall484master passed
+1compile79master passed
+1checkstyle112master passed
+1shadedjars368branch has no errors when building our shaded downstream artifacts.
+1javadoc45master passed
0spotbugs317Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs313master passed
_ Patch Compile Tests _
+1mvninstall404the patch passed
+1compile72the patch passed
+1javac72the patch passed
+1checkstyle105the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars354patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck1282Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1javadoc38the patch passed
+1findbugs276the patch passed
_ Other Tests _
-1unit14116hbase-server in the patch failed.
+1asflicense25The patch does not generate ASF License warnings.
18683
ReasonTests
Failed junit testshadoop.hbase.client.TestAsyncRegionAdminApi2
hadoop.hbase.client.TestAdmin1
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/3/artifact/out/Dockerfile
GITHUB PR#556
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux ecab9d120a63 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-556/out/precommit/personality/provided.sh
git revisionmaster / 56980fb
Default Java1.8.0_181
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/3/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/3/testReport/
Max. process+thread count4810 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/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.

@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 3 new or modified test files.
_ master Compile Tests _
+1mvninstall378master passed
+1compile57master passed
+1checkstyle78master passed
+1shadedjars273branch has no errors when building our shaded downstream artifacts.
+1javadoc38master passed
0spotbugs234Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs232master passed
_ Patch Compile Tests _
+1mvninstall298the patch passed
+1compile54the patch passed
+1javac54the patch passed
-1checkstyle76hbase-server: The patch generated 1 new + 20 unchanged - 0 fixed = 21 total (was 20)
+1whitespace0The patch has no whitespace issues.
+1shadedjars269patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck932Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1javadoc35the patch passed
+1findbugs233the patch passed
_ Other Tests _
+1unit9463hbase-server in the patch passed.
+1asflicense26The patch does not generate ASF License warnings.
12853
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/4/artifact/out/Dockerfile
GITHUB PR#556
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 04fe77053f9d 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-556/out/precommit/personality/provided.sh
git revisionmaster / 56980fb
Default Java1.8.0_181
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/4/artifact/out/diff-checkstyle-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/4/testReport/
Max. process+thread count4389 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-556/4/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.

@saintstack
saintstack merged commit 56fd3e9 into apache:masterAug 29, 2019
asfgit pushed a commit that referenced this pull request Aug 29, 2019
@saintstack

Copy link
Copy Markdown
Contributor

Fixed checkstyle complaint in a follow-on addendum.

asfgit pushed a commit that referenced this pull request Aug 29, 2019
)
* HBASE-22941 merge operation returns parent regions in random order
store and return the merge parent regions in ascending order
remove left over check for exactly two merged regions
add unit test
* use SortedMap type to emphasise that the Map is sorted.
* use regionCount consistently and checkstyle fixes
* Delete tests that expect multiregion merges to fail.
Signed-off-by: stack <stack@apache.org>
@stoty
stoty deleted the HBASE-22941 branch August 29, 2019 20:22
asfgit pushed a commit that referenced this pull request Sep 20, 2019
)
* HBASE-22941 merge operation returns parent regions in random order
store and return the merge parent regions in ascending order
remove left over check for exactly two merged regions
add unit test
* use SortedMap type to emphasise that the Map is sorted.
* use regionCount consistently and checkstyle fixes
* Delete tests that expect multiregion merges to fail.
Signed-off-by: stack <stack@apache.org>
asfgit pushed a commit that referenced this pull request Sep 20, 2019
)
* HBASE-22941 merge operation returns parent regions in random order
store and return the merge parent regions in ascending order
remove left over check for exactly two merged regions
add unit test
* use SortedMap type to emphasise that the Map is sorted.
* use regionCount consistently and checkstyle fixes
* Delete tests that expect multiregion merges to fail.
Signed-off-by: stack <stack@apache.org>
infraio pushed a commit to infraio/hbase that referenced this pull request Aug 17, 2020
…pache#556)
* HBASE-22941 merge operation returns parent regions in random order
store and return the merge parent regions in ascending order
remove left over check for exactly two merged regions
add unit test
* use SortedMap type to emphasise that the Map is sorted.
* use regionCount consistently and checkstyle fixes
* Delete tests that expect multiregion merges to fail.
Signed-off-by: stack <stack@apache.org>
symat pushed a commit to symat/hbase that referenced this pull request Feb 17, 2021
…pache#556)
* HBASE-22941 merge operation returns parent regions in random order
store and return the merge parent regions in ascending order
remove left over check for exactly two merged regions
add unit test
* use SortedMap type to emphasise that the Map is sorted.
* use regionCount consistently and checkstyle fixes
* Delete tests that expect multiregion merges to fail.
Signed-off-by: stack <stack@apache.org>
(cherry picked from commit 047aad1)
Change-Id: I081888b3205db4c34dc5df466edcdf34aae3cd76
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.

3 participants

@stoty@Apache-HBase@saintstack