itsallsame opened a new issue, #9245: URL: https://github.com/apache/seatunnel/issues/9245
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### What happened Seatunnel部署在k8s上,从MongoDB读数据到控制台中,报错:java.lang.ArithmeticException: / by zero 没有使用MongoDB CDC ### SeaTunnel Version 2.3.10 ### SeaTunnel Config ```conf { "env": { "job.mode": "BATCH", "parallelism": "1" }, "source": [ { "plugin_name": "MongoDB", "plugin_output": "mc_I2ArdN", "uri": "mongodb://user:password@xxxx:3717", "database": "test", "collection": "test", "schema": { "fields": { "cid": "bigint" } } } ], "transform": [], "sink": [ { "plugin_name": "Console", "plugin_input": "mc_I2ArdN_tmp", "parallelism": "1" } ] } ``` ### Running Command ```shell 使用api提交的任务:http://xxxx/submit-job ``` ### Error Exception ```log [969209770001039366] 2025-04-28 20:13:43,711 ERROR [o.a.s.e.s.d.p.PhysicalVertex ] [hz.main.generic-operation.thread-5] - Job (969209770001039366), Pipeline: [(1/1)], task: [pipeline-1 [Source[0]-MongoDB]-SplitEnumerator (1/1)], taskGroupLocation: [TaskGroupLocation{jobId=969209770001039366, pipelineId=1, taskGroupId=1}] end with state FAILED and Exception: java.lang.ArithmeticException: / by zero at org.apache.seatunnel.connectors.seatunnel.mongodb.source.split.SamplingSplitStrategy.split(SamplingSplitStrategy.java:77) at org.apache.seatunnel.connectors.seatunnel.mongodb.source.enumerator.MongodbSplitEnumerator.run(MongodbSplitEnumerator.java:78) at org.apache.seatunnel.engine.server.task.SourceSplitEnumeratorTask.stateProcess(SourceSplitEnumeratorTask.java:323) [969209770001039366] 2025-04-28 20:13:43,711 INFO [o.a.s.e.s.d.p.SubPlan ] [seatunnel-coordinator-service-7] - Job (969209770001039366), Pipeline: [(1/1)], task: [pipeline-1 [Source[0]-MongoDB]-SplitEnumerator (1/1)], taskGroupLocation: [TaskGroupLocation{jobId=969209770001039366, pipelineId=1, taskGroupId=1}] future complete with state FAILED at org.apache.seatunnel.engine.server.task.SourceSplitEnumeratorTask.call(SourceSplitEnumeratorTask.java:141) at org.apache.seatunnel.engine.server.TaskExecutionService$BlockingWorker.run(TaskExecutionService.java:694) at org.apache.seatunnel.engine.server.TaskExecutionService$NamedTaskWrapper.run(TaskExecutionService.java:1019) at org.apache.seatunnel.api.tracing.MDCRunnable.run(MDCRunnable.java:43) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) [969209770001039366] 2025-04-28 20:13:43,711 ERROR [o.a.s.e.s.d.p.SubPlan ] [seatunnel-coordinator-service-7] - Task TaskGroupLocation{jobId=969209770001039366, pipelineId=1, taskGroupId=1} Failed in Job SeaTunnel_Job (969209770001039366), Pipeline: [(1/1)], Begin to cancel other tasks in this pipeline. [969209770001039366] 2025-04-28 20:13:43,718 INFO [o.a.s.e.s.d.p.SubPlan ] [seatunnel-coordinator-service-7] - Job SeaTunnel_Job (969209770001039366), Pipeline: [(1/1)] turned from state RUNNING to FAILING. ``` ### Zeta or Flink or Spark Version Zeta ### Java or Scala Version 2.3.10镜像里的 ### Screenshots _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
