You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/07/30 10:31:18 UTC

[GitHub] [shardingsphere-elasticjob] Technoboy- opened a new issue #1297: LiteJob will create a shutdownhook thread every time as execute job

Technoboy- opened a new issue #1297:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1297


   This is the same issue with DaemonTaskScheduler. 
   Quartz will schedule to execute job and create a new Job instance every time, that means it will create LiteJob every time.
   As LiteJob executes job with guava executor that create shutdownhook thread internal. 
   So LiteJob#createExecutor will create extra thread as job executes.
   


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



[GitHub] [shardingsphere-elasticjob] terrymanu closed issue #1297: LiteJob will create a shutdownhook thread every time as execute job

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #1297:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1297


   


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



[GitHub] [shardingsphere-elasticjob] Technoboy- commented on issue #1297: LiteJob will create a shutdownhook thread every time as execute job

Posted by GitBox <gi...@apache.org>.
Technoboy- commented on issue #1297:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1297#issuecomment-666285859


   ![image](https://user-images.githubusercontent.com/6297296/88913047-d6431480-d292-11ea-88e4-9ca7a1059325.png)
   


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



[GitHub] [shardingsphere-elasticjob] jiang2015 commented on issue #1297: LiteJob will create a shutdownhook thread every time as execute job

Posted by GitBox <gi...@apache.org>.
jiang2015 commented on issue #1297:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1297#issuecomment-666379990


   I find that the class [ElasticJobExecutor] Constructor is called by other class place as follows:
   1. LocalTaskExecutor#createElasticJobExecutor 
   2.DaemonTaskScheduler#createJobExecutor
   3.TaskExecutor#createJobExecutor
   4.LiteJob.createExecutor
   
   2,3 more modified as singleton class
   1.4 still new Object()
   
   I think the base resolve the problem,ElasticJobExecutor is modified as Sington class it‘s better。


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