Skip to content

PHOENIX-6295 : Fix non-static inner classes for better memory utilization - #1053

Merged
yanxinyi merged 1 commit into
apache:masterfrom
virajjasani:PHOENIX-6295-master
Jan 7, 2021
Merged

PHOENIX-6295 : Fix non-static inner classes for better memory utilization#1053
yanxinyi merged 1 commit into
apache:masterfrom
virajjasani:PHOENIX-6295-master

Conversation

@virajjasani

Copy link
Copy Markdown
Contributor

No description provided.

@stoty

stoty commented Jan 4, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec4m 20sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo 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 💚mvninstall14m 24smaster passed
+1 💚compile0m 55smaster passed
+1 💚checkstyle3m 27smaster passed
+1 💚javadoc0m 46smaster passed
+0 🆗spotbugs2m 55sphoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall7m 29sthe patch passed
+1 💚compile0m 54sthe patch passed
+1 💚javac0m 54sthe patch passed
-1 ❌checkstyle3m 30sphoenix-core: The patch generated 69 new + 7132 unchanged - 73 fixed = 7201 total (was 7205)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 44sthe patch passed
-1 ❌spotbugs3m 9sphoenix-core generated 1 new + 957 unchanged - 16 fixed = 958 total (was 973)
_ Other Tests _
-1 ❌unit110m 14sphoenix-core in the patch failed.
+1 💚asflicense0m 29sThe patch does not generate ASF License warnings.
156m 11s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.hbase.index.covered.update.IndexUpdateManager$MutationComparator implements Comparator but not Serializable At IndexUpdateManager.java:Serializable At IndexUpdateManager.java:[lines 47-94]
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1053/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1053
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 8334d017343d 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
Personalitydev/phoenix-personality.sh
git revisionmaster / 4d5449f
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-1053/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1053/1/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1053/1/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-1053/1/testReport/
Max. process+thread count6686 (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-1053/1/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.

@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

@stoty

stoty commented Jan 4, 2021

Copy link
Copy Markdown
Contributor

Pushed new version to fix RAT confusion

@virajjasani

Copy link
Copy Markdown
ContributorAuthor

Although findbugs has valid point that we should let MutationComparator implement Serializable because TreeMaps are serializable, but our treeMap that uses this comparator doesn't seem to be getting (de)serialized in any flow and hence we can ignore this findbug warning? Thoughts @gjacoby126@stoty ?

@stoty

stoty commented Jan 5, 2021

Copy link
Copy Markdown
Contributor

As we don't seem to use the java serialization framework anywhere, and your patch doesn't change anything WRT the java serialization situation, It doesn't really matter.
You may as well make the class Serializable, as it has no state, and it wouldn't make any difference to us, and silence spotbugs, but it's good either way.

@virajjasani

Copy link
Copy Markdown
ContributorAuthor

Yeah sounds better, having the class implement Serializable is not going to harm anyways.

@virajjasani

virajjasani commented Jan 5, 2021

Copy link
Copy Markdown
ContributorAuthor

Weird, recent builds for both PRs master and 4.x did not succeed to post build status on github:

Could not update commit status, please check if your scan credentials belong to a member of the organization or a collaborator of the repository and repo:status scope is selected
GitHub has been notified of this commit’s build result

@stoty seems like similar message to what we used to get on PR 945

@virajjasani

Copy link
Copy Markdown
ContributorAuthor

My bad, I think it's different, build did not procceed beyond mvn install which is failing with:

error waiting for container: unexpected EOF

@stoty

stoty commented Jan 5, 2021

Copy link
Copy Markdown
Contributor

We also had multibranch failures today, there seems to a problem or maintanence on the Jenkins infra.

@stoty

stoty commented Jan 5, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 29sDocker 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 💚mvninstall14m 16smaster passed
+1 💚compile0m 55smaster passed
+1 💚checkstyle3m 16smaster passed
+1 💚javadoc0m 45smaster passed
+0 🆗spotbugs2m 55sphoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall7m 29sthe patch passed
+1 💚compile0m 55sthe patch passed
+1 💚javac0m 55sthe patch passed
-1 ❌checkstyle3m 30sphoenix-core: The patch generated 22 new + 7179 unchanged - 26 fixed = 7201 total (was 7205)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 43sthe patch passed
+1 💚spotbugs3m 0sphoenix-core generated 0 new + 957 unchanged - 16 fixed = 957 total (was 973)
_ Other Tests _
-1 ❌unit107m 0sphoenix-core in the patch failed.
+1 💚asflicense0m 28sThe patch does not generate ASF License warnings.
148m 31s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1053/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1053
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 8442a2837389 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
Personalitydev/phoenix-personality.sh
git revisionmaster / 0bac803
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-1053/3/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1053/3/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-1053/3/testReport/
Max. process+thread count6521 (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-1053/3/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.

@virajjasani

virajjasani commented Jan 7, 2021

Copy link
Copy Markdown
ContributorAuthor

@gjacoby126@stoty Could you please help merge this PR and 4.x backport #1054 (and 4.16 backport as 4.x and 4.16 are exactly same as of today. If required, I can raise 4.16 PR )?
After approval, the only change done is to let MutationComparator implement Serializable(to silence spotbug warning we saw earlier).
Thanks

@yanxinyi
yanxinyi merged commit ca4f784 into apache:masterJan 7, 2021
@virajjasani

Copy link
Copy Markdown
ContributorAuthor

Thanks for merging this @yanxinyi . Could you please also backport 4.x commit to 4.16 as I was expecting to include this in 4.16. Let me know if you want me to create PR, I can keep it ready.
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.

4 participants

@virajjasani@stoty@gjacoby126@yanxinyi