Skip to content

HBASE-23561 acquire lock before update regionsMap - #1263

Merged
saintstack merged 1 commit into
apache:masterfrom
mwkang:HBASE-23561_2
Mar 11, 2020
Merged

HBASE-23561 acquire lock before update regionsMap#1263
saintstack merged 1 commit into
apache:masterfrom
mwkang:HBASE-23561_2

Conversation

@mwkang

Copy link
Copy Markdown
Contributor
  • computeIfAbsent not guaranteed to be applied once atomically. therefore they can have a different value.
  • I should acquire a lock before update two maps.

@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.
_ master Compile Tests _
+1 💚mvninstall8m 29smaster passed
+1 💚checkstyle1m 53smaster passed
+0 🆗spotbugs6m 48sUsed deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌findbugs4m 42shbase-server in master failed.
_ Patch Compile Tests _
+1 💚mvninstall7m 29sthe patch passed
+1 💚checkstyle1m 53sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck23m 54sPatch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
-1 ❌findbugs4m 37shbase-server in the patch failed.
_ Other Tests _
+1 💚asflicense0m 19sThe patch does not generate ASF License warnings.
63m 32s
SubsystemReport/Notes
DockerClient=19.03.7 Server=19.03.7 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1263
Optional Testsdupname asflicense spotbugs findbugs hadoopcheck hbaseanti checkstyle
unameLinux 99097c7b7e87 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 31484f0
findbugshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/artifact/yetus-general-check/output/branch-findbugs-hbase-server.txt
findbugshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/artifact/yetus-general-check/output/patch-findbugs-hbase-server.txt
Max. process+thread count84 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/console
versionsgit=2.17.1 maven=2018-06-17T18:33:14Z)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 5sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --findbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚mvninstall5m 59smaster passed
+1 💚compile1m 2smaster passed
+1 💚shadedjars5m 21sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 39smaster passed
_ Patch Compile Tests _
+1 💚mvninstall5m 47sthe patch passed
+1 💚compile1m 0sthe patch passed
+1 💚javac1m 0sthe patch passed
+1 💚shadedjars5m 13spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 35sthe patch passed
_ Other Tests _
+1 💚unit76m 28shbase-server in the patch passed.
104m 51s
SubsystemReport/Notes
DockerClient=19.03.7 Server=19.03.7 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR#1263
Optional Testsjavac javadoc unit shadedjars compile
unameLinux b5a4b970adc7 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 31484f0
Default Java1.8.0_232
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/testReport/
Max. process+thread count5285 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/console
versionsgit=2.17.1 maven=2018-06-17T18:33:14Z)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 6sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --findbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚mvninstall7m 23smaster passed
+1 💚compile1m 17smaster passed
+1 💚shadedjars5m 36sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 44shbase-server in master failed.
_ Patch Compile Tests _
+1 💚mvninstall8m 40sthe patch passed
+1 💚compile1m 39sthe patch passed
+1 💚javac1m 39sthe patch passed
+1 💚shadedjars6m 49spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 54shbase-server in the patch failed.
_ Other Tests _
+1 💚unit90m 30shbase-server in the patch passed.
126m 32s
SubsystemReport/Notes
DockerClient=19.03.7 Server=19.03.7 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1263
Optional Testsjavac javadoc unit shadedjars compile
unameLinux cde5231a14d5 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 31484f0
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/testReport/
Max. process+thread count5560 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1263/1/console
versionsgit=2.17.1 maven=2018-06-17T18:33:14Z)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@saintstack

Copy link
Copy Markdown
Contributor

What is going on here @mwkang ? This should be a new JIRA? You have attached this to HBASE-23561, an issue that is closed. Thanks.

@saintstack

Copy link
Copy Markdown
Contributor

Is this issue related to HBASE-23561? It seems so. Its like an addendum? Maybe it belongs on HBASE-23561 then?

@mwkang

Copy link
Copy Markdown
ContributorAuthor

@saintstack I'm sorry if I did something wrong.

I did patch HBASE-23561 but I added it because I thought it would be a problem later.
This patch belongs to HBASE-23561.

Note Link: #1193 (comment)

@saintstack
saintstack merged commit 6f1e8ab into apache:masterMar 11, 2020
@saintstack

Copy link
Copy Markdown
Contributor

Nothing wrong done. Was having trouble figuring this an addendum and not some new work. Thanks.

@mwkang

mwkang commented Mar 12, 2020

Copy link
Copy Markdown
ContributorAuthor

thank you for your review and comment.

thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
Addendum: tie add and delete of regionMap and encodedRegionsMap
Signed-off-by: stack <stack@apache.org>
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
Addendum: tie add and delete of regionMap and encodedRegionsMap
Signed-off-by: stack <stack@apache.org>
ndimiduk pushed a commit to ndimiduk/hbase that referenced this pull request Feb 21, 2023
Addendum: tie add and delete of regionMap and encodedRegionsMap
Signed-off-by: stack <stack@apache.org>
ndimiduk pushed a commit to ndimiduk/hbase that referenced this pull request Feb 27, 2023
Addendum: tie add and delete of regionMap and encodedRegionsMap
Signed-off-by: stack <stack@apache.org>
ndimiduk pushed a commit that referenced this pull request Mar 1, 2023
Addendum: tie add and delete of regionMap and encodedRegionsMap
Signed-off-by: stack <stack@apache.org>
ndimiduk pushed a commit to ndimiduk/hbase that referenced this pull request Mar 1, 2023
Addendum: tie add and delete of regionMap and encodedRegionsMap
Signed-off-by: stack <stack@apache.org>
ndimiduk pushed a commit that referenced this pull request Mar 3, 2023
Addendum: tie add and delete of regionMap and encodedRegionsMap
Signed-off-by: stack <stack@apache.org>
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

@mwkang@Apache-HBase@saintstack