Skip to content

Phoenix 6377 - #1136

Closed
stoty wants to merge 3 commits into
apache:masterfrom
stoty:PHOENIX-6377
Closed

Phoenix 6377#1136
stoty wants to merge 3 commits into
apache:masterfrom
stoty:PHOENIX-6377

Conversation

@stoty

Copy link
Copy Markdown
Contributor

No description provided.

@dbwong

Copy link
Copy Markdown
Contributor

Probably not entirely related to this but why do we need sqlline as a runtime dependency in the client?

@stoty

Copy link
Copy Markdown
ContributorAuthor

We are traditionally including sqlline in phoenix-client for the sqlline.py client.

I wouldn't be against unbundling it, in fact, I have already done that for the thin client.
(We'd have to reintroduce a lib dir, or ship sqlline in the root dir, though)

@dbwong

dbwong commented Feb 10, 2021

Copy link
Copy Markdown
Contributor

Lets unbundle in another jira (is there one already?) as it is not really a runtime dependency for the client. One thing we might want to consider is an import dependency so we can share a single pom across all of these client flavours. Any thoughts? EDIT: I guess it is not clear from the JIRA or here why we are pushing the dependency down.

@stoty

Copy link
Copy Markdown
ContributorAuthor

One thing we might want to consider is an import dependency so we can share a single pom across all of these client flavours. Any thoughts?

I don't really get what you mean. We are already have most common setting in the parent pom. Can you add a little more detail ?

EDIT: I guess it is not clear from the JIRA or here why we are pushing the dependency down.

It is not clear to me either :(
Having the dependencies in the parent pom results in having all the shaded dependencies erronously added to the client artifact descriptor.
Moving the dependecies one level down results in an artifact with no dependencies (the expected behaviour)

Not the first and not the last maven bug (or undocumented/unexplained behaviour) that we see.
Unfortunately, we didn't catch this one until after 5.1.0 was released.

@stoty

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 31sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+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 _
+0 🆗mvndep4m 31sMaven dependency ordering for branch
+1 💚mvninstall10m 58smaster passed
+0hbaserecompile22m 10sHBase recompiled.
+1 💚compile1m 23smaster passed
+1 💚javadoc0m 50smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 11sMaven dependency ordering for patch
+1 💚mvninstall8m 2sthe patch passed
+0hbaserecompile14m 19sHBase recompiled.
+1 💚compile1m 9sthe patch passed
+1 💚javac1m 9sthe patch passed
-1 ❌whitespace0m 0sThe patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚xml0m 4sThe patch has no ill-formed XML file.
+1 💚javadoc0m 50sthe patch passed
_ Other Tests _
+1 💚unit0m 16sphoenix-client-parent in the patch passed.
+1 💚unit5m 44sphoenix-client in the patch passed.
+1 💚unit5m 41sphoenix-client-embedded in the patch passed.
+0 🆗asflicense0m 42sASF License check generated no output?
55m 5s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1136/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1136
Optional Testsdupname asflicense javac javadoc unit xml compile
unameLinux 715ada1b8885 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 / 9e90779
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1136/1/artifact/yetus-general-check/output/whitespace-eol.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1136/1/testReport/
Max. process+thread count96 (vs. ulimit of 30000)
modulesC: phoenix-client-parent phoenix-client-parent/phoenix-client phoenix-client-parent/phoenix-client-embedded U: phoenix-client-parent
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1136/1/console
versionsgit=2.7.4 maven=3.3.9
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@dbwong

Copy link
Copy Markdown
Contributor

I don't really get what you mean. We are already have most common setting in the parent pom. Can you add a little more detail ?

I was referring to an approach like this https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies. But I was trying to understand why the client parent couldn't just be that other pom.

@stoty

Copy link
Copy Markdown
ContributorAuthor

OK, now I understand what you mean.
We're getting everything but sqlline and the hbase compatibility module from phoenix-core.
I don't really think that adding another mechanism to avoid duplicating two or three dependecies across two modules helps a lot with maintainability, and having just been burned by maven I am happy just to have a version that works.

However, If you can make it work, then by all means open another ticket or an alternative PR with that solution.

@dbwong

Copy link
Copy Markdown
Contributor

+1 I think i'd prefer to fix whatever is wrong with the shading to the approach I mentioned anyway.

@stoty

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 31sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+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 _
+0 🆗mvndep4m 31sMaven dependency ordering for branch
+1 💚mvninstall10m 58smaster passed
+0hbaserecompile22m 14sHBase recompiled.
+1 💚compile1m 24smaster passed
+1 💚javadoc0m 50smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 11sMaven dependency ordering for patch
+1 💚mvninstall8m 3sthe patch passed
+0hbaserecompile14m 24sHBase recompiled.
+1 💚compile1m 10sthe patch passed
+1 💚javac1m 10sthe patch passed
-1 ❌whitespace0m 0sThe patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚xml0m 4sThe patch has no ill-formed XML file.
+1 💚javadoc0m 47sthe patch passed
_ Other Tests _
+1 💚unit0m 16sphoenix-client-parent in the patch passed.
+1 💚unit5m 42sphoenix-client in the patch passed.
+1 💚unit5m 41sphoenix-client-embedded in the patch passed.
+0 🆗asflicense0m 42sASF License check generated no output?
55m 10s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1136/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1136
Optional Testsdupname asflicense javac javadoc unit xml compile
unameLinux 7f01459a1db4 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 / 9e90779
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1136/2/artifact/yetus-general-check/output/whitespace-eol.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1136/2/testReport/
Max. process+thread count96 (vs. ulimit of 30000)
modulesC: phoenix-client-parent phoenix-client-parent/phoenix-client phoenix-client-parent/phoenix-client-embedded U: phoenix-client-parent
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1136/2/console
versionsgit=2.7.4 maven=3.3.9
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stotystoty closed this Feb 11, 2021
@stoty
stoty deleted the PHOENIX-6377 branch July 29, 2021 14:33
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.

2 participants

@stoty@dbwong