[ 
https://issues.apache.org/jira/browse/CALCITE-4935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17458094#comment-17458094
 ] 

Jacques Nadeau commented on CALCITE-4935:
-----------------------------------------

I just tried it with RC0. Yes, it logs. See example below. Note that I think 
[~zabetak] comments above were when he was trying to shade things, not the 
original rc0.

 
{code:java}
% java -jar avatica-standalone-server-1.20.0-shadow.jar -u  jdbc:calcite
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will 
impact performance.
Not configuring Avatica authentication
2021-12-12T15:50:45,568 [main] INFO  metrics.MetricsSystemLoader - No metrics 
implementation available on classpath. Using No-op implementation
2021-12-12T15:50:45,582 [main] INFO  util.log - Logging initialized @451ms to 
org.eclipse.jetty.util.log.Slf4jLog
2021-12-12T15:50:45,752 [main] INFO  server.Server - jetty-9.4.44.v20210927; 
built: 2021-09-27T23:02:44.612Z; git: 8da83308eeca865e495e53ef315a249d63ba9332; 
jvm 17+35-LTS
2021-12-12T15:50:45,810 [main] INFO  server.AbstractConnector - Started 
ServerConnector@2e6a5539{HTTP/1.1, (http/1.1)}{0.0.0.0:52894}
2021-12-12T15:50:45,810 [main] INFO  server.Server - Started @680ms
2021-12-12T15:50:45,812 [main] INFO  server.HttpServer - Service listening on 
port 52894.
2021-12-12T15:50:45,812 [main] INFO  standalone.StandaloneServer - Started 
Avatica server on port 52894 with serialization PROTOBUF {code}

> Avatica standalone-server shades log4j without relocation
> ---------------------------------------------------------
>
>                 Key: CALCITE-4935
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4935
>             Project: Calcite
>          Issue Type: Bug
>          Components: avatica
>            Reporter: Stamatis Zampetakis
>            Assignee: Stamatis Zampetakis
>            Priority: Major
>             Fix For: avatica-1.20.0
>
>         Attachments: screenshot-1.png
>
>
> The issue has been found during the vote for avatica-1.20.0 RC0.
> The standalone-server jar in the [staged maven 
> repository|https://repository.apache.org/content/repositories/orgapachecalcite-1122/org/apache/calcite/avatica/avatica-standalone-server/1.20.0/avatica-standalone-server-1.20.0.jar]
>  contains log4j2 classes but they are not relocated. 
> In previous, Avatica versions (e.g., avatica-1.19.0), log4j classes were all 
> relocated to avoid classpath problems with other libraries/apps potentially 
> using another log4j2 version.
> It seems that relocation was dropped in possibly unintenionally in 
> CALCITE-4152.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to