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 2019/12/30 13:53:02 UTC

[GitHub] [incubator-dolphinscheduler] Jave-Chen opened a new issue #1648: [BUG] fix "wait(...)" should be used instead of "Thread.sleep(...)" when a lock is held

Jave-Chen opened a new issue #1648: [BUG] fix "wait(...)" should be used instead of "Thread.sleep(...)" when a lock is held
URL: https://github.com/apache/incubator-dolphinscheduler/issues/1648
 
 
   *For better global communication, please give priority to using English description, thx! *
   
   **Describe the bug**
   If Thread.sleep(...) is called when the current thread holds a lock, it could lead to performance and scalability issues, or even worse to deadlocks because the execution of the thread holding the lock is frozen. It's better to call wait(...) on the monitor object to temporarily release the lock and allow other threads to run.
   
   see sonarcloud : https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&issues=AW9PvkGGYzPBRjkobY32&open=AW9PvkGGYzPBRjkobY32
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-dolphinscheduler] xingchun-chen commented on issue #1648: [BUG] fix "wait(...)" should be used instead of "Thread.sleep(...)" when a lock is held

Posted by GitBox <gi...@apache.org>.
xingchun-chen commented on issue #1648: [BUG] fix "wait(...)" should be used instead of "Thread.sleep(...)" when a lock is held
URL: https://github.com/apache/incubator-dolphinscheduler/issues/1648#issuecomment-606344429
 
 
   If the issue is resolved, please close it

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-dolphinscheduler] xingchun-chen closed issue #1648: [BUG] fix "wait(...)" should be used instead of "Thread.sleep(...)" when a lock is held

Posted by GitBox <gi...@apache.org>.
xingchun-chen closed issue #1648:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/1648


   


----------------------------------------------------------------
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.

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