Skip to content

PHOENIX-6510 Double-Checked Locking field must be volatile - #1264

Closed
jojochuang wants to merge 4 commits into
apache:masterfrom
jojochuang:VolatileDoubleCheckedLocking
Closed

PHOENIX-6510 Double-Checked Locking field must be volatile#1264
jojochuang wants to merge 4 commits into
apache:masterfrom
jojochuang:VolatileDoubleCheckedLocking

Conversation

@jojochuang

Copy link
Copy Markdown
Contributor

No description provided.

Change-Id: I4b5fd760605958d209409e740a6da2560e9d9f7a
Change-Id: I24ba028ccd1ca26ef4473338d6e7417244b2e389
Change-Id: Ie940b4abf58e9294859770b9a7542eb1d0a6e3d1

@gjacoby126gjacoby126 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 assuming tests pass

@jojochuang

Copy link
Copy Markdown
ContributorAuthor

Something is wrong with the Jenkins. I tried to trigger the precommit job again but it failed outright immediately: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1264/2/console

java.nio.file.FileSystemException: /home/jenkins/jenkins-home/workspace/enix-PreCommit-GitHub-PR_PR-1264: Read-only file system

@stoty

Copy link
Copy Markdown
Contributor

I wonder if switching to eager initialization (at least in PhoenixConnection.java ) would be a more performant option.

Looking at ConcurrentLinkedQueue, it seems to be cheap to initalize, and we could simplify the code as well.

@jojochuang

Copy link
Copy Markdown
ContributorAuthor

Yeah this lazy initialization in PhoenixConnection isn't used correctly anyway.
removeChildConnection() isn't thread safe.

Let's change it. Do you want it to be in a separate PR or are you okay to have it in the same one?

@stoty

Copy link
Copy Markdown
Contributor

Fine in this one.

Change-Id: I39a954e9a6989b729e0c1c4849ab3bf5a6337a8b

@stotystoty 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 LGTM

I'll wait for the Jenkins job to finish before merging. (If I forget it, ping me pls)

@stoty

Copy link
Copy Markdown
Contributor

Jenkins is still down, it seems.

@jojochuang

Copy link
Copy Markdown
ContributorAuthor

I asked Infra to investigate INFRA-22106 and looks like it'll take a while for the hardware to reset.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 3sDocker 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 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.
_ master Compile Tests _
+1 💚mvninstall28m 40smaster passed
+0hbaserecompile37m 37sHBase recompiled.
+1 💚compile1m 19smaster passed
+1 💚checkstyle0m 52smaster passed
+1 💚javadoc1m 3smaster passed
+0 🆗spotbugs4m 10sphoenix-core in master has 964 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall19m 18sthe patch passed
+0hbaserecompile32m 12sHBase recompiled.
+1 💚compile1m 20sthe patch passed
+1 💚javac1m 20sthe patch passed
-1 ❌checkstyle0m 52sphoenix-core: The patch generated 5 new + 507 unchanged - 8 fixed = 512 total (was 515)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 2sthe patch passed
+1 💚spotbugs4m 28sphoenix-core generated 0 new + 960 unchanged - 4 fixed = 960 total (was 964)
_ Other Tests _
-1 ❌unit117m 56sphoenix-core in the patch failed.
+1 💚asflicense0m 42sThe patch does not generate ASF License warnings.
203m 58s
ReasonTests
Failed junit testsphoenix.end2end.LogicalTableNameIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1264/6/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1264
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux ea075d658a16 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
Personalitydev/phoenix-personality.sh
git revisionmaster / 9c9dd0b
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1264/6/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1264/6/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1264/6/testReport/
Max. process+thread count14521 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1264/6/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stotystoty closed this Jul 15, 2021
@jojochuang

Copy link
Copy Markdown
ContributorAuthor

Thanks!

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

@jojochuang@stoty@gjacoby126