Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031445Openbravo ERPA. Platformpublic2015-11-10 09:032015-12-14 08:46
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
 
3.0PR15Q4.13.0PR15Q4.1 
marvintm
Core
No
0031445: Import entry process can have a stopped but not deregistered thread: tickets remain in the queue
If a low-level error occurs when processing import entries there is a possibility that the run method ([1]) in the ImportEntryProcessRunnable is exited without deregistering.

[1] https://code.openbravo.com/erp/devel/pi/file/710400f71264/src/org/openbravo/service/importprocess/ImportEntryProcessor.java#l274 [^]
Force a low level exception, for example throw an exception around this line:
https://code.openbravo.com/erp/devel/pi/file/710400f71264/src/org/openbravo/service/importprocess/ImportEntryProcessor.java#l375 [^]
Add a catch (Throwable logIt) before the finally block in this location:
https://code.openbravo.com/erp/devel/pi/file/710400f71264/src/org/openbravo/service/importprocess/ImportEntryProcessor.java#l381 [^]

Also add more logging statements to log errors/exceptions. Backend threads shallow exceptions/they are not logged.
No tags attached.
blocks defect 00314103.0PR16Q1 closed mtaal Import entry process can have a stopped but not deregistered thread: tickets remain in the queue 
Issue History
2015-11-12 11:14mtaalTypedefect => backport
2015-11-12 11:14mtaalTarget Version3.0PR16Q1 => 3.0PR15Q4
2015-11-13 09:34mtaalTarget Version3.0PR15Q4 => 3.0PR15Q4.1
2015-12-01 23:20hgbotCheckin
2015-12-01 23:20hgbotNote Added: 0082505
2015-12-01 23:20hgbotStatusscheduled => resolved
2015-12-01 23:20hgbotResolutionopen => fixed
2015-12-01 23:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q4.1/rev/4883ab9e4334ff7add5f15d118431788905bf7b2 [^]
2015-12-01 23:21mtaalReview Assigned To => marvintm
2015-12-14 08:46marvintmStatusresolved => closed
2015-12-14 08:46marvintmFixed in Version => 3.0PR15Q4.1

Notes
(0082505)
hgbot   
2015-12-01 23:20   
Repository: erp/backports/3.0PR15Q4.1
Changeset: 4883ab9e4334ff7add5f15d118431788905bf7b2
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Dec 01 23:19:57 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q4.1/rev/4883ab9e4334ff7add5f15d118431788905bf7b2 [^]

Fixes issue 31445: Import entry process can have a stopped but not deregistered thread: tickets remain in the queue
Adding log statements and catch block to prevent exiting loop

---
M src/org/openbravo/service/importprocess/ImportEntryManager.java
M src/org/openbravo/service/importprocess/ImportEntryProcessor.java
---