You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2020/08/24 19:19:32 UTC

[GitHub] [helix] pkuwm opened a new issue #1308: 500 error for /clusters REST endpoint

pkuwm opened a new issue #1308:
URL: https://github.com/apache/helix/issues/1308


   ### Describe the bug
   ```
   curl <helix-rest>/admin/v2/namespaces/<namespace>/clusters
   <html>
   <head>
   <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
   <title>Error 500 </title>
   </head>
   <body>
   <h2>HTTP ERROR: 500</h2>
   <p>Problem accessing /admin/v2/namespaces/<namespace>/clusters. Reason:
   <pre>    Request failed.</pre></p>
   <hr /><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.12.v20180830</a><hr/>
   </body>
   </html>
   ```
   
   ```
   2020/08/24 18:29:46.770 WARN [org.eclipse.jetty.servlet.ServletHandler] null
   javax.servlet.ServletException: java.lang.IllegalArgumentException: RealmAwareZkConnectionConfig.Builder: routing data source type and endpoint are not configured properly! Type: null Endpoint: http://<helix-rest>/admin/v2/namespaces/<namespace>
           at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489) ~[jersey-container-servlet-core-2.24.jar:?]
           at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) ~[jersey-container-servlet-core-2.24.jar:?]
           at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) ~[jersey-container-servlet-core-2.24.jar:?]
           at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) ~[jersey-container-servlet-core-2.24.jar:?]
           at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) ~[jersey-container-servlet-core-2.24.jar:?]
           at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845) ~[jetty-servlet-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583) [jetty-servlet-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174) [jetty-server-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) [jetty-servlet-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106) [jetty-server-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [jetty-server-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.server.Server.handle(Server.java:524) [jetty-server-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319) [jetty-server-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253) [jetty-server-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) [jetty-io-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) [jetty-io-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [jetty-io-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [jetty-util-9.3.9.v20160517.jar:9.4.12.v20180830]
           at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [jetty-util-9.3.9.v20160517.jar:9.4.12.v20180830]
   ]
   	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [jetty-util-9.3.9.v20160517.jar:9.4.12.v20180830]
   	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [jetty-util-9.3.9.v20160517.jar:9.4.12.v20180830]
   	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [jetty-util-9.3.9.v20160517.jar:9.4.12.v20180830]
   	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
   Caused by: java.lang.IllegalArgumentException: RealmAwareZkConnectionConfig.Builder: routing data source type and endpoint are not configured properly! Type: null Endpoint: http://<helix-rest>/admin/v2/namespaces/<namespace>
   	at org.apache.helix.zookeeper.api.client.RealmAwareZkClient$RealmAwareZkConnectionConfig$Builder.validate(RealmAwareZkClient.java:506) ~[helix-core-1.0.1.10.jar:1.0.1.10]
   	at org.apache.helix.zookeeper.api.client.RealmAwareZkClient$RealmAwareZkConnectionConfig$Builder.build(RealmAwareZkClient.java:485) ~[helix-core-1.0.1.10.jar:1.0.1.10]
   	at org.apache.helix.rest.server.ServerContext.getRealmAwareZkClient(ServerContext.java:138) ~[helix-rest-1.0.1.10.jar:?]
   	at org.apache.helix.rest.server.ServerContext.getHelixAdmin(ServerContext.java:167) ~[helix-rest-1.0.1.10.jar:?]
   	at org.apache.helix.rest.server.resources.helix.AbstractHelixResource.getHelixAdmin(AbstractHelixResource.java:57) ~[helix-rest-1.0.1.10.jar:?]
   	at org.apache.helix.rest.server.resources.helix.ClusterAccessor.getClusters(ClusterAccessor.java:91) ~[helix-rest-1.0.1.10.jar:?]
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_172]
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_172]
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_172]
   	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172]
   	at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) ~[jersey-server-2.24.jar:?]
   	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) ~[jersey-server-2.24.jar:?]
   	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) ~[jersey-server-2.24.jar:?]
   	at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) ~[jersey-server-2.24.jar:?]
   	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) ~[jersey-server-2.24.jar:?]
   	at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) ~[jersey-server-2.24.jar:?]
   	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) ~[jersey-server-2.24.jar:?]
   	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) ~[jersey-server-2.24.jar:?]
   	at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) ~[jersey-server-2.24.jar:?]
   	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) ~[jersey-common-2.25.1.jar:?]
   	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) ~[jersey-common-2.25.1.jar:?]
   	at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[jersey-common-2.25.1.jar:?]
   	at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[jersey-common-2.25.1.jar:?]
   	at org.glassfish.jersey.internal.Errors.process(Errors.java:267) ~[jersey-common-2.25.1.jar:?]
   	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) ~[jersey-common-2.25.1.jar:?]
   	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) ~[jersey-server-2.24.jar:?]
   	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) ~[jersey-server-2.24.jar:?]
   	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) ~[jersey-container-servlet-core-2.24.jar:?]
   	... 23 more
   ```
   ### To Reproduce
   Deploy new helix-rest with current master branch
   
   ### Expected behavior
   Should get the correct result for `/clusters`
   
   ### Additional context
   Root cause is Routing data source type is not set in connection config builder. It should have a default value if it is not set explicitly.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


[GitHub] [helix] pkuwm closed issue #1308: Error 500 for /clusters REST endpoint

Posted by GitBox <gi...@apache.org>.
pkuwm closed issue #1308:
URL: https://github.com/apache/helix/issues/1308


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org