Skip to content

[HBASE-24956] ConnectionManager#locateRegionInMeta waits for user region lock indefinitely. - #2415

Merged
bharathv merged 1 commit into
apache:branch-1from
shahrs87:HBASE-24956-branch-1
Sep 18, 2020
Merged

[HBASE-24956] ConnectionManager#locateRegionInMeta waits for user region lock indefinitely.#2415
bharathv merged 1 commit into
apache:branch-1from
shahrs87:HBASE-24956-branch-1

Conversation

@shahrs87

Copy link
Copy Markdown
Contributor

This is just the backport of branch-2 PR. #2322
There are 2 differences compared to branch-2.

  1. LockTimeoutException already exists in branch-1 so reusing that.
  2. In TestMetaCache#testUserRegionLockThrowsException, I have set HBASE_CLIENT_RETRIES_NUMBER value to 1 whereas in branch-2, it was set to 0.
    In branch-2, they have attempts and retries notion differently. It is calculating numAttempts = numRetries + 1 but in branch-1, numAttempts = numTries.
    @bharathv please review branch-1 PR. Thank you !

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

will merge once the QA bot is green.

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

+1

@virajjasani

Copy link
Copy Markdown
Contributor

re-trigged the build

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 35sDocker 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 _
+0 🆗mvndep2m 23sMaven dependency ordering for branch
+1 💚mvninstall8m 2sbranch-1 passed
+1 💚compile1m 3sbranch-1 passed with JDK v1.8.0_262
+1 💚compile1m 11sbranch-1 passed with JDK v1.7.0_272
+1 💚checkstyle2m 14sbranch-1 passed
+1 💚shadedjars3m 3sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 0sbranch-1 passed with JDK v1.8.0_262
+1 💚javadoc1m 7sbranch-1 passed with JDK v1.7.0_272
+0 🆗spotbugs2m 41sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs4m 16sbranch-1 passed
_ Patch Compile Tests _
+0 🆗mvndep0m 18sMaven dependency ordering for patch
+1 💚mvninstall1m 55sthe patch passed
+1 💚compile1m 1sthe patch passed with JDK v1.8.0_262
+1 💚javac1m 1sthe patch passed
+1 💚compile1m 8sthe patch passed with JDK v1.7.0_272
+1 💚javac1m 8sthe patch passed
+1 💚checkstyle2m 6sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedjars2m 55spatch has no errors when building our shaded downstream artifacts.
+1 💚hadoopcheck4m 43sPatch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚javadoc0m 52sthe patch passed with JDK v1.8.0_262
+1 💚javadoc1m 5sthe patch passed with JDK v1.7.0_272
+1 💚findbugs4m 59sthe patch passed
_ Other Tests _
+1 💚unit2m 59shbase-client in the patch passed.
-1 ❌unit69m 29shbase-server in the patch failed.
+1 💚asflicense0m 46sThe patch does not generate ASF License warnings.
123m 15s
ReasonTests
Failed junit testshadoop.hbase.regionserver.wal.TestWALReplayCompressed
hadoop.hbase.regionserver.TestHRegion
SubsystemReport/Notes
DockerClient=19.03.13 Server=19.03.13 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2415/2/artifact/out/Dockerfile
GITHUB PR#2415
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 913980ebc570 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-home/workspace/Base-PreCommit-GitHub-PR_PR-2415/out/precommit/personality/provided.sh
git revisionbranch-1 / f0acafc
Default Java1.7.0_272
Multi-JDK versions/usr/lib/jvm/zulu-8-amd64:1.8.0_262 /usr/lib/jvm/zulu-7-amd64:1.7.0_272
unithttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2415/2/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2415/2/testReport/
Max. process+thread count4452 (vs. ulimit of 10000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2415/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.

@shahrs87

Copy link
Copy Markdown
ContributorAuthor

hadoop.hbase.regionserver.wal.TestWALReplayCompressed
hadoop.hbase.regionserver.TestHRegion

These 2 tests failed since it couldn't create new thread.
2020-09-18 09:46:47,445 ERROR [nioEventLoopGroup-6-1] logging.Slf4JLogger(181): Failed to submit a listener notification task. Event loop shut down?

java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:717)
at io.netty.util.concurrent.GlobalEventExecutor.startThread(GlobalEventExecutor.java:222)
at io.netty.util.concurrent.GlobalEventExecutor.execute(GlobalEventExecutor.java:211)
at io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.java:760)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:428)
at io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:95)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
at java.lang.Thread.run(Thread.java:748)
Running the tests locally and both of them succeeded.
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.hadoop.hbase.regionserver.wal.TestWALReplayCompressed
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 127.843 s - in org.apache.hadoop.hbase.regionserver.wal.TestWALReplayCompressed
[INFO] Running org.apache.hadoop.hbase.regionserver.TestHRegion
[INFO] Tests run: 109, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 139.392 s - in org.apache.hadoop.hbase.regionserver.TestHRegion
[INFO] [INFO] Results:
[INFO] [INFO] Tests run: 121, Failures: 0, Errors: 0, Skipped: 0

Cc @bharathv

@bharathv

Copy link
Copy Markdown
Contributor

Ya that looks shady. I kicked off another build, let's see if this is reproducible.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 35sDocker 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 _
+0 🆗mvndep2m 24sMaven dependency ordering for branch
+1 💚mvninstall8m 0sbranch-1 passed
+1 💚compile1m 0sbranch-1 passed with JDK v1.8.0_262
+1 💚compile1m 8sbranch-1 passed with JDK v1.7.0_272
+1 💚checkstyle2m 17sbranch-1 passed
+1 💚shadedjars3m 0sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc1m 2sbranch-1 passed with JDK v1.8.0_262
+1 💚javadoc1m 6sbranch-1 passed with JDK v1.7.0_272
+0 🆗spotbugs2m 42sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs4m 18sbranch-1 passed
_ Patch Compile Tests _
+0 🆗mvndep0m 18sMaven dependency ordering for patch
+1 💚mvninstall1m 57sthe patch passed
+1 💚compile1m 2sthe patch passed with JDK v1.8.0_262
+1 💚javac1m 2sthe patch passed
+1 💚compile1m 9sthe patch passed with JDK v1.7.0_272
+1 💚javac1m 9sthe patch passed
+1 💚checkstyle2m 7sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedjars2m 46spatch has no errors when building our shaded downstream artifacts.
+1 💚hadoopcheck4m 38sPatch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚javadoc0m 54sthe patch passed with JDK v1.8.0_262
+1 💚javadoc1m 7sthe patch passed with JDK v1.7.0_272
+1 💚findbugs4m 19sthe patch passed
_ Other Tests _
+1 💚unit2m 44shbase-client in the patch passed.
+1 💚unit132m 24shbase-server in the patch passed.
+1 💚asflicense0m 59sThe patch does not generate ASF License warnings.
185m 21s
SubsystemReport/Notes
DockerClient=19.03.13 Server=19.03.13 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2415/3/artifact/out/Dockerfile
GITHUB PR#2415
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 13909b755aab 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-home/workspace/Base-PreCommit-GitHub-PR_PR-2415/out/precommit/personality/provided.sh
git revisionbranch-1 / f0acafc
Default Java1.7.0_272
Multi-JDK versions/usr/lib/jvm/zulu-8-amd64:1.8.0_262 /usr/lib/jvm/zulu-7-amd64:1.7.0_272
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2415/3/testReport/
Max. process+thread count4585 (vs. ulimit of 10000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2415/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.

@bharathv
bharathv merged commit e1fc3c4 into apache:branch-1Sep 18, 2020
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

@shahrs87@virajjasani@Apache-HBase@bharathv