Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1475

ServiceCombServerStats.getFailedRate may arise an  exception of java.lang.ArithmeticException: / by zero under concurrency scenarios

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • java-chassis-1.3.0
    • Java-Chassis
    • None
    • Important

    Description

      We had found many exceptions of ArithmeticException after let our micro-service run for long time.
      org.apache.servicecomb.core.provider.consumer.InvokerUtils.innerSyncInvoke(InvokerUtils.java:80) | Msg:invoke failed, IoDM.devServiceImpl.pushAvmsCallBackResult
      java.lang.ArithmeticException: / by zero
      at org.apache.servicecomb.loadbalance.ServiceCombServerStats.getFailedRate(ServiceCombServerStats.java:126) ~[35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at org.apache.servicecomb.loadbalance.filter.IsolationDiscoveryFilter.allowVisit(IsolationDiscoveryFilter.java:116) ~[35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at org.apache.servicecomb.loadbalance.filter.IsolationDiscoveryFilter.discovery(IsolationDiscoveryFilter.java:87) ~[35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at org.apache.servicecomb.serviceregistry.discovery.DiscoveryTree.doDiscovery(DiscoveryTree.java:166) ~[35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at org.apache.servicecomb.serviceregistry.discovery.DiscoveryTree.discovery(DiscoveryTree.java:130) ~[35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at org.apache.servicecomb.serviceregistry.discovery.DiscoveryTree.discovery(DiscoveryTree.java:123) ~[35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at org.apache.servicecomb.loadbalance.LoadbalanceHandler.getOrCreateLoadBalancer(LoadbalanceHandler.java:360) ~[35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at org.apache.servicecomb.loadbalance.LoadbalanceHandler.handle(LoadbalanceHandler.java:179) ~[35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at org.apache.servicecomb.core.Invocation.next(Invocation.java:151) ~[35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at org.apache.servicecomb.core.provider.consumer.InvokerUtils.innerSyncInvoke(InvokerUtils.java:72) [35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at org.apache.servicecomb.provider.pojo.Invoker.syncInvoke(Invoker.java:161) [35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at org.apache.servicecomb.provider.pojo.Invoker.invoke(Invoker.java:157) [35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at com.huawei.csp.jsf.invocation.PaaSInvoker.invoke(PaaSInvoker.java:21) [35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at com.sun.proxy.$Proxy250.pushAvmsCallBackResult(Unknown Source) [35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at com.huawei.m2m.ioei.rpcservice.iodm.PushAvmsCallBackResult.pushAvmsCallBackResult(PushAvmsCallBackResult.java:47) [35:ioei-rpcservice:1.0.5.SNAPSHOT]
      at sun.reflect.GeneratedMethodAccessor591.invoke(Unknown Source) ~[?:?]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
      at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179) [82:org.apache.cxf.cxf-core:3.2.5]
      at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) [82:org.apache.cxf.cxf-core:3.2.5]
      at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:192) [87:org.apache.cxf.cxf-rt-frontend-jaxrs:3.2.5]
      at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:103) [87:org.apache.cxf.cxf-rt-frontend-jaxrs:3.2.5]
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) [82:org.apache.cxf.cxf-core:3.2.5]
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) [82:org.apache.cxf.cxf-core:3.2.5]
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) [82:org.apache.cxf.cxf-core:3.2.5]
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [82:org.apache.cxf.cxf-core:3.2.5]
      at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267) [96:org.apache.cxf.cxf-rt-transports-http:3.2.5]
      at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) [96:org.apache.cxf.cxf-rt-transports-http:3.2.5]
      at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) [96:org.apache.cxf.cxf-rt-transports-http:3.2.5]
      at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) [96:org.apache.cxf.cxf-rt-transports-http:3.2.5]
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650) [172:org.eclipse.jetty.servlet:9.4.6.v20170531]
      at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:206) [182:org.eclipse.jetty.websocket.server:9.4.6.v20170531]
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) [172:org.eclipse.jetty.servlet:9.4.6.v20170531]
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) [172:org.eclipse.jetty.servlet:9.4.6.v20170531]
      at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [198:org.ops4j.pax.web.pax-web-jetty:7.0.0]
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [169:org.eclipse.jetty.security:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) [198:org.ops4j.pax.web.pax-web-jetty:7.0.0]
      at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) [172:org.eclipse.jetty.servlet:9.4.6.v20170531]
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [198:org.ops4j.pax.web.pax-web-jetty:7.0.0]
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.Server.handle(Server.java:564) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) [163:org.eclipse.jetty.io:9.4.6.v20170531]
      at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) [163:org.eclipse.jetty.io:9.4.6.v20170531]
      at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) [163:org.eclipse.jetty.io:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) [82:org.apache.cxf.cxf-core:3.2.5]
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [82:org.apache.cxf.cxf-core:3.2.5]
      at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267) [96:org.apache.cxf.cxf-rt-transports-http:3.2.5]
      at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) [96:org.apache.cxf.cxf-rt-transports-http:3.2.5]
      at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) [96:org.apache.cxf.cxf-rt-transports-http:3.2.5]
      at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) [96:org.apache.cxf.cxf-rt-transports-http:3.2.5]
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650) [172:org.eclipse.jetty.servlet:9.4.6.v20170531]
      at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:206) [182:org.eclipse.jetty.websocket.server:9.4.6.v20170531]
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) [172:org.eclipse.jetty.servlet:9.4.6.v20170531]
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) [172:org.eclipse.jetty.servlet:9.4.6.v20170531]
      at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [198:org.ops4j.pax.web.pax-web-jetty:7.0.0]
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [169:org.eclipse.jetty.security:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) [171:org.eclipse.jetty.server:9.4.6.v20170531] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) [198:org.ops4j.pax.web.pax-web-jetty:7.0.0] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) [172:org.eclipse.jetty.servlet:9.4.6.v20170531] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) [171:org.eclipse.jetty.server:9.4.6.v20170531] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [198:org.ops4j.pax.web.pax-web-jetty:7.0.0]
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.Server.handle(Server.java:564) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) [163:org.eclipse.jetty.io:9.4.6.v20170531]
      at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) [163:org.eclipse.jetty.io:9.4.6.v20170531]
      at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) [163:org.eclipse.jetty.io:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at java.lang.Thread.run(Thread.java:748) [?:?]handler.ScopedHandler.handle(ScopedHandler.java:143) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [169:org.eclipse.jetty.security:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) [198:org.ops4j.pax.web.pax-web-jetty:7.0.0]
      at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) [172:org.eclipse.jetty.servlet:9.4.6.v20170531]
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [198:org.ops4j.pax.web.pax-web-jetty:7.0.0]
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.Server.handle(Server.java:564) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [171:org.eclipse.jetty.server:9.4.6.v20170531]
      at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) [163:org.eclipse.jetty.io:9.4.6.v20170531]
      at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) [163:org.eclipse.jetty.io:9.4.6.v20170531]
      at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) [163:org.eclipse.jetty.io:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591) [174:org.eclipse.jetty.util:9.4.6.v20170531]
      at java.lang.Thread.run(Thread.java:748) [?:?]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              liuhuaizhou133 Liu HuaiZhou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m