You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "15810785091 (via GitHub)" <gi...@apache.org> on 2025/09/22 02:31:29 UTC

[I] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

15810785091 opened a new issue, #9885:
URL: https://github.com/apache/seatunnel/issues/9885

   ### 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相关的任务运行越来越慢,观看日志发现实际同步已经完成,但是一直挂起,任务没有结束,等待几分钟以后任务才会结束。重启集群之后恢复,过几天后问题复现
   我在白天运行了一个大任务,分别在任务运行中,与任务挂起时候运行了jstack命令抓取生成了log文件
   
   [tianhua-4.zip](https://github.com/user-attachments/files/22456490/tianhua-4.zip)
   
   
   
   
   
   ### SeaTunnel Version
   
   2.3.12
   
   ### SeaTunnel Config
   
   ```conf
   env {
       parallelism = 10
       job.mode = "BATCH"
       job.name = "ks_relation_account_item"
   }
   source {
     jdbc {
       url = "jdbc:mysql://${media_center_ip_port}/media_center?useSSL=false&useCursorFetch=true&useServerPrepStmts=true&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false"
       driver = "com.mysql.cj.jdbc.Driver"
       user = "xxxx"
       password = "xxxx"
       table_path = "media_center.ks_relation_account_item"
       plugin_output = "hive_table"
       split.size = 100000
       fetch_size = 20000
     }
   }
   transform {
     Sql = {
       plugin_input = "hive_table"
       plugin_output = "sql_table"
       query = "select *,'${date}' as dt from media_item"
     }
   }
   sink {
     Hive {
       plugin_input = "sql_table"
       table_name = "ims_org.org_ks_relation_account_item"
       metastore_uri = "thrift://xxxx:9083"
       hdfs_site_path = "/etc/hadoop/conf/hdfs-site.xml"
       overwrite = "true"
     }
   }
   ```
   
   ### Running Command
   
   ```shell
   export SEATUNNEL_HOME=/opt/software/apache-seatunnel-2.3.12
   ${SEATUNNEL_HOME}/bin/seatunnel.sh --config /tmp/dolphinscheduler/exec/process/root/8400635037312/8422871880064_114/186434/636419/seatunnel_186434_636419.conf --deploy-mode cluster
   ```
   
   ### Error Exception
   
   ```log
   NO Error
   ```
   
   ### Zeta or Flink or Spark Version
   
   Zeta
   
   ### Java or Scala Version
   
   java version "1.8.0_181"
   
   ### Screenshots
   
   <img width="499" height="864" alt="Image" src="https://github.com/user-attachments/assets/b1fe3209-53a5-43ef-97b6-0d494f3d9580" />
   
   
   
   ### 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: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "LeonYoah (via GitHub)" <gi...@apache.org>.
LeonYoah commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3341698850

   Thank you, @dybyte , for fixing this issue. I am currently considering upgrading the seatunnel to the latest version, but I am also concerned that this issue may occur in my environment. Therefore, I have already applied a patch package for this PR. If possible, would Brother @15810785091 be willing to use this patch package to verify on your environment:https://github.com/LeonYoah/seatunnel/releases/download/2.3.12-9833/seatunnel-starter-2.3.12-patch-9833.jar


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "981433814 (via GitHub)" <gi...@apache.org>.
981433814 commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3474001071

   @LeonYoah Hi, I also encountered this problem. Can you send me a jar?


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3341579825

   As a workaround for this issue, you have two main options:
   1. Use the code from the dev branch, which includes the improvements.
   2. Wait for the next official release version where the patch will be included.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "15810785091 (via GitHub)" <gi...@apache.org>.
15810785091 commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3358564589

   @dybyte I am verifying this problem. It is expected that it will take a few days. I am the seatunel cluster restarted on the 29th. Up to now, this situation has not occurred. If it does not occur in a few more days, then the patch package and configuration should be valid.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3342220415

   > @LeonYoah I have already replaced the seatunnel-starter.jar. I will give you feedback on whether the cluster still has this problem when I come back from 10.1 vacation.
   
   @15810785091 You need to set the following configuration in your config file
   ```
   seatunnel:
     engine:
       job-metrics-partition-count: 2000
   ```
   You can find more details in docs/en/seatunnel-engine/separated-cluster-deployment.md


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "LeonYoah (via GitHub)" <gi...@apache.org>.
LeonYoah commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3341490263

   > Thanks for providing the logs. Could you please paste only the most relevant portions of the logs directly into the issue so we can review them safely?
   
   
   I downloaded the zip file he provided and found some information about
   ``` 
   "BlockingWorker-TaskGroupLocation{jobId=1022327880396308483, pipelineId=1, taskGroupId=6}" #26358 prio=5 os_prio=0 tid=0x00007fc0ec014000 nid=0x1d654 waiting on condition [0x00007fc1b1ad9000]
      java.lang.Thread.State: WAITING (parking)
   	at sun.misc.Unsafe.park(Native Method)
   	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:304)
   	at com.hazelcast.spi.impl.AbstractInvocationFuture.manageParking(AbstractInvocationFuture.java:693)
   	at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:615)
   	at org.apache.seatunnel.engine.server.TaskExecutionService.updateMetricsContextInImap(TaskExecutionService.java:591)
   	at org.apache.seatunnel.engine.server.TaskExecutionService.access$1200(TaskExecutionService.java:116)
   	at org.apache.seatunnel.engine.server.TaskExecutionService$TaskGroupExecutionTracker.taskDone(TaskExecutionService.java:942)
   	at org.apache.seatunnel.engine.server.TaskExecutionService$BlockingWorker.run(TaskExecutionService.java:697)
   	at org.apache.seatunnel.engine.server.TaskExecutionService$NamedTaskWrapper.run(TaskExecutionService.java:1008)
   	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:748)
   
   "qtp1535472351-165-acceptor-3" #165 - BLOCKED (on object monitor)
   "qtp1535472351-163-acceptor-1" #163 - BLOCKED (on object monitor)  
   "qtp1535472351-162-acceptor-0" #162 - BLOCKED (on object monitor)
   
   "BlockingWorker-TaskGroupLocation{jobId=1022328090598047748}" - TIMED_WAITING (sleeping)
   	at java.lang.Thread.sleep(Native Method)
   	at org.apache.seatunnel.engine.server.task.SeaTunnelTask.stateProcess(SeaTunnelTask.java:158)
   
   ```
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3342223319

   > @dybyte The dev branch has been fixed, and version 2.3.12 cannot synchronize tasks stably. should we make a hot repair branch?
   
   Let’s review this after we can see how much improvement the change makes. Personally, I don’t expect a major improvement, but we will continue to make gradual enhancements through future PRs.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "Carl-Zhou-CN (via GitHub)" <gi...@apache.org>.
Carl-Zhou-CN closed issue #9885: [Bug] Batch jobs hang several minutes at completion after a few days of continuous running
URL: https://github.com/apache/seatunnel/issues/9885


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "Carl-Zhou-CN (via GitHub)" <gi...@apache.org>.
Carl-Zhou-CN commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3399623982

   @15810785091 @LeonYoah Thank you both for providing the information 
   @dybyte Thank you for your answer.
   close


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "LeonYoah (via GitHub)" <gi...@apache.org>.
LeonYoah commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3383904080

   @15810785091 You're welcome. Thank you for your test


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3356875042

   Hi @15810785091 , were you able to verify whether the issue still occurs?


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "15810785091 (via GitHub)" <gi...@apache.org>.
15810785091 commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3383766984

   @LeonYoah @dybyte After verification for 10.1 holidays, I think replacing the seatunnel-starter.jar and adding the following parameters job-metrics-partition-count: 2000 will improve the performance of the cluster, and the current problem is not happening.Thank you all


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3332186456

   Thanks for providing the logs.
   Could you please paste only the most relevant portions of the logs directly into the issue so we can review them safely?


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "LeonYoah (via GitHub)" <gi...@apache.org>.
LeonYoah commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3341707799

   > [@LeonYoah](https://github.com/LeonYoah) I can verify it in my environment, but this phenomenon will not appear until a few days later. It takes time to verify. Do you know which directory this patch package is to be placed in?
   
   There is a seatunnel-starter.jar file in the starter directory. Replace the jar file I gave you and restart the cluster


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "LeonYoah (via GitHub)" <gi...@apache.org>.
LeonYoah commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3341541993

   Could you please share the cluster configuration and the memory status of the cluster when it's stuck? You can use jmap to check. If the memory is abnormal, it's best to perform a dump to identify the issue


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3341576254

   I think this issue is related to #9817 . It was somewhat improved by #9833 , but the patch is not included in the recent release version. Thanks for sharing the log details @LeonYoah 


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "LeonYoah (via GitHub)" <gi...@apache.org>.
LeonYoah commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3342212740

   > [@LeonYoah](https://github.com/LeonYoah) I have already replaced the seatunnel-starter.jar. I will give you feedback on whether the cluster still has this problem when I come back from 10.1 vacation.
   
   ok


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3389960774

   Hi @Hisoka-X ,
   This issue seems to be resolved. Could we close it?
   Thank you!


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "LeonYoah (via GitHub)" <gi...@apache.org>.
LeonYoah commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3474016235

   > [@LeonYoah](https://github.com/LeonYoah) Hi, I also encountered this problem. Can you send me a jar?
   
   https://github.com/LeonYoah/seatunnel/releases/download/2.3.12-9833/seatunnel-starter-2.3.12-patch-9833.jar


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "dybyte (via GitHub)" <gi...@apache.org>.
dybyte commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3384646528

   This issue is not critical and mainly affects long-running, high-throughput workloads.
   We don’t plan to provide a hotfix branch at this time, so please update to the official release when available.
   The next release will bring even better performance for these workloads.
   Thanks @15810785091  @LeonYoah !
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "15810785091 (via GitHub)" <gi...@apache.org>.
15810785091 commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3342211543

   @LeonYoah I have already replaced the seatunnel-starter.jar. I will give you feedback on whether the cluster still has this problem when I come back from 10.1 vacation.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "15810785091 (via GitHub)" <gi...@apache.org>.
15810785091 commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3341706504

   @LeonYoah I can verify it in my environment, but this phenomenon will not appear until a few days later. It takes time to verify. Do you know which directory this patch package is to be placed in?


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Batch jobs hang several minutes at completion after a few days of continuous running [seatunnel]

Posted by "15810785091 (via GitHub)" <gi...@apache.org>.
15810785091 commented on issue #9885:
URL: https://github.com/apache/seatunnel/issues/9885#issuecomment-3342221062

   @dybyte Okay, thank you.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org