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

ASF subversion and git services commented on AVRO-4229:
-------------------------------------------------------

Commit 999b36feadf76ff9eb7535a66a00dbffba8b0b75 in avro's branch 
refs/heads/main from László Dénes Terjéki
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=999b36fead ]

AVRO-4229 - Update StatsServer resource handler (#3648)

* AVRO-4229 - Update StatsServer resource handler

* Fix review comments

- moved ASFv2 to the top
- static content only served when it is available

> ipc StatsServer not working
> ---------------------------
>
>                 Key: AVRO-4229
>                 URL: https://issues.apache.org/jira/browse/AVRO-4229
>             Project: Apache Avro
>          Issue Type: Bug
>    Affects Versions: 1.12.1
>            Reporter: László Dénes Terjéki
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Trying to use example code from 
> [TestStatsPluginAndServlet|https://github.com/apache/avro/blob/main/lang/java/ipc-jetty/src/test/java/org/apache/avro/ipc/jetty/TestStatsPluginAndServlet.java#L175]
>  to check StatsServer regarding AVRO-4213 but the following exception shown:
> {code:java}
> [main] INFO org.eclipse.jetty.util.log - Logging initialized @333ms to 
> org.eclipse.jetty.util.log.Slf4jLog[main] INFO 
> org.eclipse.jetty.server.Server - jetty-9.4.6.v20170531[main] INFO 
> org.eclipse.jetty.server.handler.ContextHandler - Started 
> o.e.j.s.ServletContextHandler@3023df74{/,null,AVAILABLE}[main] INFO 
> org.eclipse.jetty.server.AbstractConnector - Started 
> ServerConnector@5b12b668{HTTP/1.1,[http/1.1]}{0.0.0.0:7002}[main] INFO 
> org.eclipse.jetty.server.Server - Started @382ms[main] INFO 
> org.eclipse.jetty.server.Server - jetty-9.4.6.v20170531[main] INFO 
> org.eclipse.jetty.server.AbstractConnector - Started 
> ServerConnector@2df3b89c{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}Exception in 
> thread "main" java.lang.IllegalStateException: Multiple servlets map to path 
> /: 
> org.apache.avro.ipc.jetty.StaticServlet-477b4cdf[mapped:EMBEDDED:null],org.apache.avro.ipc.stats.StatsServlet-7770f470[mapped:EMBEDDED:null]
>    at 
> org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1430)
>     at 
> org.eclipse.jetty.servlet.ServletHandler.doStart(ServletHandler.java:153)    
> at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>   at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
>        at org.eclipse.jetty.server.Server.start(Server.java:452)       at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
>      at 
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
>    at org.eclipse.jetty.server.Server.doStart(Server.java:419)     at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>   at org.apache.avro.ipc.jetty.StatsServer.<init>(StatsServer.java:51)    at 
> org.apache.avro.ipc.jetty.TestStatsPluginAndServlet.main(TestStatsPluginAndServlet.java:192)
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to