[
https://issues.apache.org/jira/browse/PHOENIX-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15059110#comment-15059110
]
Josh Elser commented on PHOENIX-2531:
-------------------------------------
bq. It's not a regression
Yep, that's what I've found so far as well.
bq. Anyway, if PQS still works with this change
pherf has been proof for me that this works as intended with patch. Sadly, I'm
not sure how to test for this since the thin-client.jar isn't attached to the
build (I think that means I couldn't try to test it in a downstream module).
Regardless, thanks for taking a look, Nick and James!
> Phoenix thin-client jar has incorrect META-INF/services/java.sql.Driver file
> ----------------------------------------------------------------------------
>
> Key: PHOENIX-2531
> URL: https://issues.apache.org/jira/browse/PHOENIX-2531
> Project: Phoenix
> Issue Type: Bug
> Reporter: Josh Elser
> Assignee: Josh Elser
> Priority: Blocker
> Fix For: 4.7.0
>
> Attachments: PHOENIX-2531.patch
>
>
> Trying to hook up the thin-client to pherf, I was having some troubles with
> being unable to find the thin-client Driver. I knew that we should be getting
> it loaded by the service definition contained in the jar
> {{META-INF/services/java.sql.Driver}}.
> Upon inspection of the "normal" jar produced by {{phoenix-server-client}},
> the contents of the file were as we expect
> {{org.apache.phoenix.queryserver.client.Driver}}. However, the top-level
> "thin-client" jar we bundle in the tarball had a value of
> {{org.apache.calcite.avatica.remote.Driver}} instead.
> It seems like when we built {{phoenix-$VERSION-thin-client.jar}}
> (jar-with-dependencies is all it is, really), Avatica's
> {{META-INF/services/java.sql.Driver}} was overwriting the copy we had in
> {{phoenix-server-client/src/main/resources}}. I'm not sure how/why we didn't
> notice this yet (for example, why did sqlline-thin.py work?), but it's
> definitely busted for how it _should_ work.
> It's a simple enough fix to explicitly set the file in the assembly
> descriptor.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)