Abnormal performance
Troubleshooting process
org.apache.flink.streaming.runtime.tasks.AsynchronousException: Caught exception while processing timer. at org.apache.flink.streaming.runtime.tasks. StreamTask$StreamTaskAsyncExceptionHandler.handleAsyncException(StreamTask.java:1117) at org.apache.flink.streaming.runtime.tasks. StreamTask.handleAsyncException(StreamTask.java:1091) at org.apache.flink.streaming.runtime.tasks. StreamTask.invokeProcessingTimeCallback(StreamTask.java:1222) at org.apache.flink.streaming.runtime.tasks. StreamTask.lambda$null$16(StreamTask.java:1211) at org.apache.flink.streaming.runtime.tasks. StreamTaskActionExecutor$1.runThrowing(StreamTaskActionExecutor.java:47) at org.apache.flink.streaming.runtime.tasks.mailbox. Mail.run(Mail.java:78) at org.apache.flink.streaming.runtime.tasks.mailbox. MailboxProcessor.processMail(MailboxProcessor.java:270) at org.apache.flink.streaming.runtime.tasks.mailbox. MailboxProcessor.runMailboxStep(MailboxProcessor.java:190) at org.apache.flink.streaming.runtime.tasks.mailbox. MailboxProcessor.runMailboxLoop(MailboxProcessor.java:181) at org.apache.flink.streaming.runtime.tasks. StreamTask.runMailboxLoop(StreamTask.java:566) at org.apache.flink.streaming.runtime.tasks. StreamTask.invoke(StreamTask.java:536) at org.apache.flink.runtime.taskmanager. Task.doRun(Task.java:721) at org.apache.flink.runtime.taskmanager. Task.run(Task.java:546) at java.lang.Thread.run(Thread.java:748) Caused by: TimerException{java.lang.NumberFormatException} ... 12 more Caused by: java.lang.NumberFormatException at java.math. BigDecimal.<init>(BigDecimal.java:497) at java.math. BigDecimal.<init>(BigDecimal.java:827) at scala.math. BigDecimal$.decimal(BigDecimal.scala:50) at scala.math. BigDecimal$.decimal(BigDecimal.scala:53) at scala.math. BigDecimal$.double2bigDecimal(BigDecimal.scala:341) at com.xxx. ProcessPedestrianVisitor.$anonfun$trajectoryReduce$4(PedestrianAnalyzer.scala:198) at com.xxx. ProcessPedestrianVisitor.$anonfun$trajectoryReduce$4$adapted(PedestrianAnalyzer.scala:198) at scala.collection. TraversableLike.$anonfun$filterImpl$1(TraversableLike.scala:247) at scala.collection.immutable. List.foreach(List.scala:388) at scala.collection. TraversableLike.filterImpl(TraversableLike.scala:246) at scala.collection. TraversableLike.filterImpl$(TraversableLike.scala:244) at scala.collection. AbstractTraversable.filterImpl(Traversable.scala:104) at scala.collection. TraversableLike.filter(TraversableLike.scala:258) at scala.collection. TraversableLike.filter$(TraversableLike.scala:258) at scala.collection. AbstractTraversable.filter(Traversable.scala:104) at com.xxx. ProcessPedestrianVisitor.$anonfun$trajectoryReduce$2(PedestrianAnalyzer.scala:198) at scala.collection. TraversableLike.$anonfun$map$1(TraversableLike.scala:233) at scala.collection.immutable. NumericRange.foreach(NumericRange.scala:70) at scala.collection. TraversableLike.map(TraversableLike.scala:233) at scala.collection. TraversableLike.map$(TraversableLike.scala:226) at scala.collection. AbstractTraversable.map(Traversable.scala:104) at com.xxx. ProcessPedestrianVisitor.$anonfun$trajectoryReduce$1(PedestrianAnalyzer.scala:197) at scala.collection. TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:240) at scala.collection.immutable. NumericRange.foreach(NumericRange.scala:70) at scala.collection. TraversableLike.flatMap(TraversableLike.scala:240) at scala.collection. TraversableLike.flatMap$(TraversableLike.scala:237) at scala.collection. AbstractTraversable.flatMap(Traversable.scala:104) at com.xxx. ProcessPedestrianVisitor.trajectoryReduce(PedestrianAnalyzer.scala:196) at com.xxx. ProcessPedestrianVisitor.process(PedestrianAnalyzer.scala:120) at com.xxx. ProcessPedestrianVisitor.process(PedestrianAnalyzer.scala:98) at org.apache.flink.streaming.api.scala.function.util. ScalaProcessWindowFunctionWrapper.process(ScalaProcessWindowFunctionWrapper.scala:63) at org.apache.flink.streaming.runtime.operators.windowing.functions. InternalIterableProcessWindowFunction.process(InternalIterableProcessWindowFunction.java:50) at org.apache.flink.streaming.runtime.operators.windowing.functions. InternalIterableProcessWindowFunction.process(InternalIterableProcessWindowFunction.java:32) at org.apache.flink.streaming.runtime.operators.windowing. EvictingWindowOperator.emitWindowContents(EvictingWindowOperator.java:359) at org.apache.flink.streaming.runtime.operators.windowing. EvictingWindowOperator.onProcessingTime(EvictingWindowOperator.java:318) at org.apache.flink.streaming.api.operators. InternalTimerServiceImpl.onProcessingTime(InternalTimerServiceImpl.java:260) at org.apache.flink.streaming.runtime.tasks. StreamTask.invokeProcessingTimeCallback(StreamTask.java:1220) ... 11 more
Caused by: java.lang.NumberFormatException
com.xxx.ProcessPedestrianVisitor.$anonfun$trajectoryReduce$2(PedestrianAnalyzer.scala:198)
Solutions