You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/06/26 09:54:04 UTC

[GitHub] [dolphinscheduler] garyganyang edited a comment on issue #5528: [Bug][server] task instance can not run.

garyganyang edited a comment on issue #5528:
URL: https://github.com/apache/dolphinscheduler/issues/5528#issuecomment-868977662


   im running 1.3.6, while i run python with threading, something like below:
   ```
   java version "1.8.0_231"
   Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
   ```
   ```
   import threading
   thread_list = []
   t = threading.Thread(target=predict_and_save, args=[mysql_conn, sql, df, 0, mid - 1])
   thread_list.append(t)
   t = threading.Thread(target=predict_and_save, args=[mysql_conn, sql, df, mid - 1, len(df) - 1])
   thread_list.append(t)
   for t in thread_list:
       t.setDaemon(True)
       t.start()
   for t in thread_list:
       t.join()
   ```
   and i encounter the same exception
   
   [ERROR] 2021-06-26 17:39:28.687  - [taskAppId=TASK-7-112-2132]:[384] - null
   java.util.ConcurrentModificationException: null
   	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909)
   	at java.util.ArrayList$Itr.next(ArrayList.java:859)
   	at java.lang.String.join(String.java:2503)
   	at org.apache.dolphinscheduler.server.worker.task.AbstractTask.logHandle(AbstractTask.java:129)
   	at org.apache.dolphinscheduler.server.worker.task.AbstractCommandExecutor.flush(AbstractCommandExecutor.java:557)
   	at org.apache.dolphinscheduler.server.worker.task.AbstractCommandExecutor.lambda$parseProcessOutput$1(AbstractCommandExecutor.java:378)
   	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)


-- 
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@dolphinscheduler.apache.org

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