Project: talendesb
Issue TESB-3553: Stopping OSGI job containing tRESTRequest produces unexpected RuntimeException
I think at the moment that it is not a TESB container issue, may be I'm wrong... When I attempt to stop a job containing tRESTRequest using osgi:stop or clicking CTRL-D to get the container exit, I'm seeing the following: karaf@trun> job:list HTTPService karaf@trun> stop HTTPService java.lang.RuntimeException: java.lang.InterruptedException restservices.httpservice_0_1.HTTPService$QueuedMessageHandlerImpl.getRequest(HTTPService.java:342) restservices.httpservice_0_1.HTTPService.tRESTRequest_1Process(HTTPService.java:990) restservices.httpservice_0_1.HTTPService.runJobInTOS(HTTPService.java:1353) org.talend.esb.job.controller.internal.SimpleJobTask$JobRunner.run(SimpleJobTask.java:85) java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) java.util.concurrent.FutureTask.run(FutureTask.java:138) org.talend.esb.job.controller.internal.SimpleJobTask.run(SimpleJobTask.java:68) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:662) Caused by: java.lang.InterruptedException java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1961) java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1996) java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399) restservices.httpservice_0_1.HTTPService$QueuedMessageHandlerImpl.getRequest(HTTPService.java:340)	... 10 more I'm not sure if the same issue exists for tESB or not, but the above should be handled differently, ex, LOG the warning that an interrupted exception has happened, as opposed to printing it to System.err and possibly handle it at the Activator level too. At the moment assigning to Renat.
Story points: 1