Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032074Openbravo ERP02. Master data managementpublic2016-02-01 15:282016-03-17 10:55
AugustoMauch 
AugustoMauch 
normalminorhave not tried
closedfixed 
5
 
3.0PR16Q2 
mtaal
Core
No
0032074: The ImportEntryManager cannot be restarted after being shut down
The ImportEntryManager has public shutdown() and start() methods, but it does not work after restarting it.

The main problem seems to be that the isShutdown attribute remains true after restarting the ImportEntryManager.
- Programatically disable and restart the entry manager by calling ImportEntryManager.getInstance().shutdown() and ImportEntryManager.getInstance().start() respectively.
- The ImportEntryManager no longer processes import entries.
No tags attached.
Issue History
2016-02-01 15:28AugustoMauchNew Issue
2016-02-01 15:28AugustoMauchAssigned To => AugustoMauch
2016-02-01 15:28AugustoMauchModules => Core
2016-02-01 15:28AugustoMauchTriggers an Emergency Pack => No
2016-02-01 15:43AugustoMauchReview Assigned To => mtaal
2016-02-01 15:51hgbotCheckin
2016-02-01 15:51hgbotNote Added: 0083790
2016-02-01 15:51hgbotStatusnew => resolved
2016-02-01 15:51hgbotResolutionopen => fixed
2016-02-01 15:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4ce12b4d9e1fc040dc0ab7ea0c98896469296b51 [^]
2016-02-08 20:35mtaalNote Added: 0084019
2016-02-08 20:35mtaalStatusresolved => closed
2016-02-08 20:35mtaalFixed in Version => 3.0PR16Q2
2016-03-17 10:55hudsonbotCheckin
2016-03-17 10:55hudsonbotNote Added: 0085099

Notes
(0083790)
hgbot   
2016-02-01 15:51   
Repository: erp/devel/pi
Changeset: 4ce12b4d9e1fc040dc0ab7ea0c98896469296b51
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Feb 01 15:40:17 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4ce12b4d9e1fc040dc0ab7ea0c98896469296b51 [^]

Fixes issue 32074: The import entry manager can be shut down and restarted

There were two problems:
- The isShutdown attribute was not being set to false after restarting the ImportEntryManager
- The ImportEntryManger was not being stopped properly, there were processes that kept being run after shutting it down, specially when shutting the ImportEntryManager down just after having started it, but before the initialWaitTime, that is when the manager actually starts working.

---
M src/org/openbravo/service/importprocess/ImportEntryArchiveManager.java
M src/org/openbravo/service/importprocess/ImportEntryManager.java
M src/org/openbravo/service/importprocess/ImportEntryProcessor.java
---
(0084019)
mtaal   
2016-02-08 20:35   
Reviewed
(0085099)
hudsonbot   
2016-03-17 10:55   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b22fb0500156 [^]
Maturity status: Test