业务场景步骤:
- 前端获取JSON参数
- 封装成ES查询语句,HttpClient的RestClient低阶API查询ES方式查询
- 查询ES表数据
- ES表数据逐条匹配redis数据,处理数据
- 封装成AOP统一约定的JSON返回体
出错时间:
- 前端查询大约100条以内
- 前端查询大约第二天
错误示例:
16:03:22.206 [http-nio-8888-exec-3] ERROR xx.aop.advice.LogAdvice - This is after throw from LogAdvice...redis.clients.jedis.Connection.disconnect(Connection.java:182)
16:03:22.211 [http-nio-8888-exec-3] INFO xx.aop.advice.LogAdvice - ==========================End==============================
16:03:22.270 [http-nio-8888-exec-3] ERROR xx.aop.exception.GlobalExceptionHandler - 褰撳墠璇锋眰URL鎶ラ敊...http://192.168.211.106:8888/api/searchDomainRouteInfo
redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe (Write failed)
at redis.clients.jedis.Connection.disconnect(Connection.java:182) ~[jedis-3.3.0.jar!/:?]
at redis.clients.jedis.BinaryClient.disconnect(BinaryClient.java:936) ~[jedis-3.3.0.jar!/:?]
at redis.clients.jedis.Connection.close(Connection.java:172) ~[jedis-3.3.0.jar!/:?]
at redis.clients.jedis.BinaryClient.close(BinaryClient.java:942) ~[jedis-3.3.0.jar!/:?]
at redis.clients.jedis.BinaryJedis.close(BinaryJedis.java:1944) ~[jedis-3.3.0.jar!/:?]
at redis.clients.jedis.Jedis.close(Jedis.java:3524) ~[jedis-3.3.0.jar!/:?]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771) ~[spring-aop-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) ~[spring-aop-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) ~[spring-aop-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_251]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_251]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) ~[spring-aop-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) ~[spring-aop-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) ~[spring-aop-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(