zifeihan opened a new pull request #6759:
URL: https://github.com/apache/skywalking/pull/6759


   
   ### Add an agent plugin to support elasticsearch7 
   - [x] Add a test case for the new plugin, refer to [the 
doc](https://github.com/apache/skywalking/blob/master/docs/en/guides/Plugin-test.md)
   - [x] Add a component id in [the 
component-libraries.yml](https://github.com/apache/skywalking/blob/master/oap-server/server-bootstrap/src/main/resources/component-libraries.yml)
   - [ ] Add a logo in [the UI 
repo](https://github.com/apache/skywalking-rocketbot-ui/tree/master/src/views/components/topology/assets)
       
   Hello, I found that the current es6 plugin is not applicable to the 
transport-related api on es7, not only the transport api, so the es7 plugin is 
used to process the related logic of es7. The following exceptions may occur 
when using the original es6 plugin, such as
   ```
   {
     "@timestamp": "2021-04-08 03:53:23:984",
     "agent_name": "teachers@10278",
     "level": "ERROR",
     "throwable": "\njava.lang.NoSuchMethodError: 
org.elasticsearch.search.SearchHits.getTotalHits()J\n\tat 
org.apache.skywalking.apm.plugin.elasticsearch.v6.interceptor.AdapterActionFutureActionGetMethodsInterceptor.parseSearchResponse(AdapterActionFutureActionGetMethodsInterceptor.java:118)\n\tat
 
org.apache.skywalking.apm.plugin.elasticsearch.v6.interceptor.AdapterActionFutureActionGetMethodsInterceptor.parseResponseInfo(AdapterActionFutureActionGetMethodsInterceptor.java:86)\n\tat
 
org.apache.skywalking.apm.plugin.elasticsearch.v6.interceptor.AdapterActionFutureActionGetMethodsInterceptor.afterMethod(AdapterActionFutureActionGetMethodsInterceptor.java:66)\n\tat
 
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:102)\n\tat
 
org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java)\n\tat
 
org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:52)\n\tat
 com.zhangmen.teacher.
 
service.internal.impl.TeacherArrangeServiceImpl.getBatchTeaSimpleInfoByEs(TeacherArrangeServiceImpl.java:224)\n\tat
 
com.zhangmen.teacher.service.internal.impl.TeacherArrangeServiceImpl$$FastClassBySpringCGLIB$$e5aec092.invoke(<generated>)\n\tat
 org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n\tat 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)\n\tat
 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)\n\tat
 
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)\n\tat
 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n\tat
 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\tat
 java.lang.Thread.run(Thread.java:748)\n",
     "logger": "InstMethodsInter",
     "thread": "http-nio-8080-exec-7",
     "message": "class[class 
org.elasticsearch.action.support.PlainActionFuture] after method[actionGet] 
intercept failure"
   }
   ```


-- 
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:
[email protected]


Reply via email to