You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/01/28 06:42:59 UTC

[GitHub] a198720 opened a new pull request #2213: 1. when create the oap server first. the remote client is null or emp…

a198720 opened a new pull request #2213: 1. when create the oap server first. the remote client is null or emp…
URL: https://github.com/apache/incubator-skywalking/pull/2213
 
 
   …ty. so need handle the exception : java.lang.ArithmeticException: / by zero
   
   Please answer these questions before submitting pull request
   
   - Why submit this pull request?
   - [x] Bug fix
   - [ ] New feature provided
   - [ ] Improve performance
   
   - Related issues
   
   ___
   ### Bug fix
   - Bug description.
   when i first run oap server, it will have the following exception  . I think this is unreasonable and can be prevented from being disposed of.
   
   2019-01-28 06:15:33,614 - org.apache.skywalking.oap.server.core.analysis.worker.IndicatorRemoteWorker - 53 [DataCarrier.IndicatorAggregateWorker.instance_jvm_memory_heap.Consumser.0.Thread] ERROR [] - / by zero
   java.lang.ArithmeticException: / by zero
           at org.apache.skywalking.oap.server.core.remote.selector.HashCodeSelector.select(HashCodeSelector.java:32) ~[server-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
           at org.apache.skywalking.oap.server.core.remote.RemoteSenderService.send(RemoteSenderService.java:50) ~[server-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
           at org.apache.skywalking.oap.server.core.analysis.worker.IndicatorRemoteWorker.in(IndicatorRemoteWorker.java:51) ~[server-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
           at org.apache.skywalking.oap.server.core.analysis.worker.IndicatorRemoteWorker.in(IndicatorRemoteWorker.java:33) ~[server-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
           at org.apache.skywalking.oap.server.core.analysis.worker.IndicatorAggregateWorker.lambda$sendToNext$0(IndicatorAggregateWorker.java:93) ~[server-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
           at java.util.HashMap$Values.forEach(HashMap.java:981) [?:1.8.0_191]
           at org.apache.skywalking.oap.server.core.analysis.worker.IndicatorAggregateWorker.sendToNext(IndicatorAggregateWorker.java:88) [server-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
           at org.apache.skywalking.oap.server.core.analysis.worker.IndicatorAggregateWorker.onWork(IndicatorAggregateWorker.java:73) [server-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
           at org.apache.skywalking.oap.server.core.analysis.worker.IndicatorAggregateWorker.access$100(IndicatorAggregateWorker.java:38) [server-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
           at org.apache.skywalking.oap.server.core.analysis.worker.IndicatorAggregateWorker$AggregatorConsumer.consume(IndicatorAggregateWorker.java:131) [server-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
           at org.apache.skywalking.apm.commons.datacarrier.consumer.ConsumerThread.consume(ConsumerThread.java:101) [apm-datacarrier-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
           at org.apache.skywalking.apm.commons.datacarrier.consumer.ConsumerThread.run(ConsumerThread.java:68) [apm-datacarrier-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
   
   - How to fix?
   
   ___
   ### New feature or improvement
   - Describe the details and related test reports.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services