You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by GitBox <gi...@apache.org> on 2022/04/01 12:11:28 UTC

[GitHub] [incubator-linkis] peacewong opened a new issue #1865: [Bug] [ECP]The task error message is unclear when the ec plugin does not exist

peacewong opened a new issue #1865:
URL: https://github.com/apache/incubator-linkis/issues/1865


   ### Search before asking
   
   - [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.
   
   
   ### Linkis Component
   
   linkis-cg-engineConnplugin
   
   ### What happened + What you expected to happen
   
   Now the error thrown by ecp is correct, it will print ecp does not exist exception, as follows:
   现在ecp抛出的错误时正确的,会打印ecp不存在异常,如下:
   ```
   Caused by: org.apache.linkis.manager.engineplugin.common.exception.EngineConnPluginNotFoundException: errCode: 70063 ,desc: No plugin found shell-1, please check your configuration ,ip: bdpujes110003 ,port: 9103 ,serviceKind: linkis-cg-engineplugin
           at org.apache.linkis.manager.engineplugin.manager.loaders.DefaultEngineConnPluginLoader.loadEngineConnPluginInternal(DefaultEngineConnPluginLoader.java:173) ~[linkis-engineconn-plugin-loader-1.1.1-webank.jar:1.1.1-webank]
           at org.apache.linkis.manager.engineplugin.cache.GuavaEngineConnPluginCache.lambda$get$2(GuavaEngineConnPluginCache.java:122) ~[linkis-engineconn-plugin-cache-1.1.1-webank.jar:1.1.1-webank]
           at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4853) ~[guava-30.0-jre.jar:?]
           at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529) ~[guava-30.0-jre.jar:?]
           at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278) ~[guava-30.0-jre.jar:?]
           at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2155) ~[guava-30.0-jre.jar:?]
           at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2045) ~[guava-30.0-jre.jar:?]
           at com.google.common.cache.LocalCache.get(LocalCache.java:3951) ~[guava-30.0-jre.jar:?]
           at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4848) ~[guava-30.0-jre.jar:?]
           at org.apache.linkis.manager.engineplugin.cache.GuavaEngineConnPluginCache.get(GuavaEngineConnPluginCache.java:119) ~[linkis-engineconn-plugin-cache-1.1.1-webank.jar:1.1.1-webank]
           at org.apache.linkis.manager.engineplugin.manager.loaders.CacheablesEngineConnPluginLoader.getEngineConnPlugin(CacheablesEngineConnPluginLoader.java:82) ~[linkis-engineconn-plugin-loader-1.1.1-webank.jar:1.1.1-webank]
           at org.apache.linkis.engineplugin.server.service.DefaultEngineConnResourceFactoryService.getResourceFactoryBy(DefaultEngineConnResourceFactoryService.scala:36) ~[linkis-engineconn-plugin-server-1.1.1-webank.jar:1.1.1-webank]
           at org.apache.linkis.engineplugin.server.service.DefaultEngineConnResourceFactoryService.createEngineResource(DefaultEngineConnResourceFactoryService.scala:47) ~[linkis-engineconn-plugin-server-1.1.1-webank.jar:1.1.1-webank]
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_141]
   ```
   However, there is no clear information about the exception after RPC encapsulation obtained in the linkismanager.
   ```
   2022-03-30 21:48:14.447 [INFO ] [AskEngineService-Thread-98              ] o.a.l.m.a.s.e.DefaultEngineAskEngineService (121) [apply] - Failed  to async(bdpujes110003:9101_48) createEngine, can Retry false org.apache.linkis.manager.am.exception.AMErrorException: errCode: 30001 ,desc: Failed to create engineResource ,ip: bdpujes110003 ,port: 9101 ,serviceKind: linkis-cg-linkismanager
           at org.apache.linkis.manager.am.pointer.DefaultEngineConnPluginPointer.createEngineResource(DefaultEngineConnPluginPointer.scala:39) ~[linkis-application-manager-1.1.1-webank.jar:1.1.1-webank]
           at org.apache.linkis.manager.am.service.engine.DefaultEngineCreateService.requestResource(DefaultEngineCreateService.scala:253) ~[linkis-application-manager-1.1.1-webank.jar:1.1.1-webank]
           at org.apache.linkis.manager.am.service.engine.DefaultEngineCreateService.createEngine(DefaultEngineCreateService.scala:181) ~[linkis-application-manager-1.1.1-webank.jar:1.1.1-webank]
           at org.apache.linkis.manager.am.service.engine.DefaultEngineAskEngineService$$anonfun$3.apply(DefaultEngineAskEngineService.scala:92) ~[linkis-application-manager-1.1.1-webank.jar:1.1.1-webank]
           at org.apache.linkis.manager.am.service.engine.DefaultEngineAskEngineService$$anonfun$3.apply(DefaultEngineAskEngineService.scala:82) ~[linkis-application-manager-1.1.1-webank.jar:1.1.1-webank]
           at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24) ~[scala-library-2.11.12.jar:?]
           at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24) ~[scala-library-2.11.12.jar:?]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_141]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_141]
           at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]
   ```
   
   
   ### Relevent platform
   
   all
   
   ### Reproduction script
   
   1. delete shell ecp
   2. execute task
   
   ### Anything else
   
   It is recommended to add an error response message protocol for ecp resource requests, and then throw an error message
   建议新增ecp资源请求的错误响应信息协议,然后抛出错误信息
   ![image](https://user-images.githubusercontent.com/11496700/161260549-94d6f5d6-b717-4aa9-8150-9ec928409aa8.png)
   
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org


[GitHub] [incubator-linkis] legendtkl commented on issue #1865: [Bug] [ECP]The task error message is unclear when the ec plugin does not exist

Posted by GitBox <gi...@apache.org>.
legendtkl commented on issue #1865:
URL: https://github.com/apache/incubator-linkis/issues/1865#issuecomment-1086651508


   I will fix this


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org