Skip to content

HBASE-23254 Release replication buffer quota correctly, when batch includes bulk loaded hfiles - #792

Merged
wchevreuil merged 2 commits into
apache:branch-1from
JeongDaeKim:branch-1-HBASE-23254
Jan 21, 2020
Merged

HBASE-23254 Release replication buffer quota correctly, when batch includes bulk loaded hfiles#792
wchevreuil merged 2 commits into
apache:branch-1from
JeongDaeKim:branch-1-HBASE-23254

Conversation

@JeongDaeKim

Copy link
Copy Markdown

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
💙reexec10m 51sDocker mode activated.
_ Prechecks _
💚dupname0m 0sNo case conflicting files found.
💚hbaseanti0m 0sPatch does not have any anti-patterns.
💚@author0m 0sThe patch does not contain any @author tags.
💛test4tests0m 0sThe patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ branch-1 Compile Tests _
💚mvninstall8m 42sbranch-1 passed
💚compile0m 45sbranch-1 passed with JDK v1.8.0_232
💚compile0m 54sbranch-1 passed with JDK v1.7.0_242
💚checkstyle1m 54sbranch-1 passed
💚shadedjars3m 35sbranch has no errors when building our shaded downstream artifacts.
💚javadoc0m 40sbranch-1 passed with JDK v1.8.0_232
💚javadoc0m 46sbranch-1 passed with JDK v1.7.0_242
💙spotbugs3m 9sUsed deprecated FindBugs config; considering switching to SpotBugs.
💚findbugs3m 5sbranch-1 passed
_ Patch Compile Tests _
💚mvninstall2m 21sthe patch passed
💚compile0m 47sthe patch passed with JDK v1.8.0_232
💚javac0m 47sthe patch passed
💚compile0m 48sthe patch passed with JDK v1.7.0_242
💚javac0m 48sthe patch passed
💚checkstyle1m 51sthe patch passed
💚whitespace0m 0sThe patch has no whitespace issues.
💚shadedjars3m 23spatch has no errors when building our shaded downstream artifacts.
💚hadoopcheck5m 41sPatch does not cause any errors with Hadoop 2.8.5 2.9.2.
💚javadoc0m 31sthe patch passed with JDK v1.8.0_232
💚javadoc0m 39sthe patch passed with JDK v1.7.0_242
💚findbugs2m 51sthe patch passed
_ Other Tests _
💔unit125m 17shbase-server in the patch failed.
💚asflicense0m 34sThe patch does not generate ASF License warnings.
179m 46s
ReasonTests
Failed junit testshadoop.hbase.replication.TestReplicationKillSlaveRS
SubsystemReport/Notes
DockerClient=19.03.4 Server=19.03.4 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-792/1/artifact/out/Dockerfile
GITHUB PR#792
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux b96acf2ef010 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-792/out/precommit/personality/provided.sh
git revisionbranch-1 / 3f9ce86
Default Java1.7.0_242
Multi-JDK versions/usr/lib/jvm/zulu-8-amd64:1.8.0_232 /usr/lib/jvm/zulu-7-amd64:1.7.0_242
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-792/1/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-792/1/testReport/
Max. process+thread count4145 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-792/1/console
versionsgit=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered byApache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

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

What is the actual issue we are trying to fix here? Can we have a UT asserting the proper behaviour?

@JeongDaeKim

JeongDaeKim commented Nov 5, 2019

Copy link
Copy Markdown
Author

I just wanted to add a missing line from the (branch-1) backport of HBASE-18116 to work as intended in HBASE-18116. I didn't think adding a new UT for branch-1 only. Here is the reason why an original author didn't have a UT. (https://issues.apache.org/jira/browse/HBASE-18116?focusedCommentId=16476668&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16476668)

@JeongDaeKim

Copy link
Copy Markdown
Author

I can't reproduce the failed test in my local repo. and It seems unrelated to this.

@JeongDaeKim

Copy link
Copy Markdown
Author

I just added to a test to clarify this issue. @wchevreuil please have a look when you have time.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec12m 18sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 💚mvninstall8m 36sbranch-1 passed
+1 💚compile0m 40sbranch-1 passed with JDK v1.8.0_232
+1 💚compile0m 45sbranch-1 passed with JDK v1.7.0_242
+1 💚checkstyle1m 34sbranch-1 passed
+1 💚shadedjars2m 52sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 38sbranch-1 passed with JDK v1.8.0_232
+1 💚javadoc0m 42sbranch-1 passed with JDK v1.7.0_242
+0 🆗spotbugs2m 48sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs2m 46sbranch-1 passed
_ Patch Compile Tests _
+1 💚mvninstall1m 58sthe patch passed
+1 💚compile0m 41sthe patch passed with JDK v1.8.0_232
+1 💚javac0m 41sthe patch passed
+1 💚compile0m 44sthe patch passed with JDK v1.7.0_242
+1 💚javac0m 44sthe patch passed
+1 💚checkstyle1m 29sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedjars2m 46spatch has no errors when building our shaded downstream artifacts.
+1 💚hadoopcheck5m 5sPatch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚javadoc0m 31sthe patch passed with JDK v1.8.0_232
+1 💚javadoc0m 41sthe patch passed with JDK v1.7.0_242
+1 💚findbugs2m 55sthe patch passed
_ Other Tests _
-1 ❌unit161m 35shbase-server in the patch failed.
+1 💚asflicense0m 35sThe patch does not generate ASF License warnings.
213m 35s
ReasonTests
Failed junit testshadoop.hbase.client.TestSnapshotTemporaryDirectoryWithRegionReplicas
hadoop.hbase.mapreduce.TestLoadIncrementalHFilesUseSecurityEndPoint
hadoop.hbase.client.TestSnapshotTemporaryDirectory
hadoop.hbase.regionserver.TestCompactionState
hadoop.hbase.client.TestAdmin2
hadoop.hbase.mapreduce.TestLoadIncrementalHFiles
SubsystemReport/Notes
DockerClient=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-792/2/artifact/out/Dockerfile
GITHUB PR#792
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 72f9cb6dba0b 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-792/out/precommit/personality/provided.sh
git revisionbranch-1 / 248d80b
Default Java1.7.0_242
Multi-JDK versions/usr/lib/jvm/zulu-8-amd64:1.8.0_232 /usr/lib/jvm/zulu-7-amd64:1.7.0_242
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-792/2/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-792/2/testReport/
Max. process+thread count4227 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-792/2/console
versionsgit=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@JeongDaeKim

Copy link
Copy Markdown
Author

The following exception were thrown in all failed tests.
These failures has happened since #1010 (JUnit upgrade)
I confirmed all tests passed Without JUnit upgrade.

I'm not sure but it seems to be related to this change junit-team/junit4#1517
ping~ @ndimiduk

java.lang.RuntimeException: java.lang.IllegalThreadStateException
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:239)
at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:273)
at org.apache.hadoop.hbase.client.ClientScanner.loadCache(ClientScanner.java:434)
at org.apache.hadoop.hbase.client.ClientScanner.next(ClientScanner.java:308)
at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:639)
at org.apache.hadoop.hbase.MetaTableAccessor.getTableRegionsAndLocations(MetaTableAccessor.java:558)
at org.apache.hadoop.hbase.MetaTableAccessor.getTableRegions(MetaTableAccessor.java:414)
at org.apache.hadoop.hbase.MetaTableAccessor.getTableRegions(MetaTableAccessor.java:397)
at org.apache.hadoop.hbase.client.HBaseAdmin.getTableRegions(HBaseAdmin.java:3317)
at org.apache.hadoop.hbase.client.TestAdmin2.testEnableTableAfterprocessedServersCleaned(TestAdmin2.java:816)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:288)
at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:282)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalThreadStateException
at java.lang.ThreadGroup.addUnstarted(ThreadGroup.java:867)
at java.lang.Thread.init(Thread.java:405)
at java.lang.Thread.init(Thread.java:349)
at java.lang.Thread.<init>(Thread.java:599)
at org.apache.hadoop.hbase.util.Threads$2.newThread(Threads.java:220)
at org.apache.hadoop.hbase.util.Threads$3.newThread(Threads.java:246)
at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:619)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:932)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1367)
at org.apache.hadoop.hbase.client.ResultBoundedCompletionService.submit(ResultBoundedCompletionService.java:171)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.addCallsForCurrentReplica(ScannerCallableWithReplicas.java:330)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:191)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:58)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:231)
... 21 more

@ndimiduk

Copy link
Copy Markdown
Member

thanks @JeongDaeKim I'll take a look.

@ndimiduk

Copy link
Copy Markdown
Member

FYI #1031

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

LGTM, +1.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 8sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 💚mvninstall9m 0sbranch-1 passed
+1 💚compile0m 41sbranch-1 passed with JDK v1.8.0_242
+1 💚compile0m 45sbranch-1 passed with JDK v1.7.0_252
+1 💚checkstyle1m 32sbranch-1 passed
+1 💚shadedjars2m 59sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 39sbranch-1 passed with JDK v1.8.0_242
+1 💚javadoc0m 42sbranch-1 passed with JDK v1.7.0_252
+0 🆗spotbugs2m 49sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs2m 46sbranch-1 passed
_ Patch Compile Tests _
+1 💚mvninstall1m 57sthe patch passed
+1 💚compile0m 41sthe patch passed with JDK v1.8.0_242
+1 💚javac0m 41sthe patch passed
+1 💚compile0m 45sthe patch passed with JDK v1.7.0_252
+1 💚javac0m 45sthe patch passed
+1 💚checkstyle1m 28sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedjars2m 49spatch has no errors when building our shaded downstream artifacts.
+1 💚hadoopcheck4m 53sPatch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚javadoc0m 32sthe patch passed with JDK v1.8.0_242
+1 💚javadoc0m 41sthe patch passed with JDK v1.7.0_252
+1 💚findbugs2m 52sthe patch passed
_ Other Tests _
+1 💚unit169m 4shbase-server in the patch passed.
+1 💚asflicense0m 33sThe patch does not generate ASF License warnings.
209m 51s
SubsystemReport/Notes
DockerClient=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-792/3/artifact/out/Dockerfile
GITHUB PR#792
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 33cf7cfe0e92 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-792/out/precommit/personality/provided.sh
git revisionbranch-1 / 99a59cf
Default Java1.7.0_252
Multi-JDK versions/usr/lib/jvm/zulu-8-amd64:1.8.0_242 /usr/lib/jvm/zulu-7-amd64:1.7.0_252
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-792/3/testReport/
Max. process+thread count4370 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-792/3/console
versionsgit=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@wchevreuil

Copy link
Copy Markdown
Contributor

Re-submitted build to confirm on the junit issue is solved now, this is good to go. Am merging it now.

@wchevreuil
wchevreuil merged commit 8bf4985 into apache:branch-1Jan 21, 2020
@JeongDaeKim
JeongDaeKim deleted the branch-1-HBASE-23254 branch January 22, 2020 01:38
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

@JeongDaeKim@Apache-HBase@ndimiduk@wchevreuil