Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0030837 | Openbravo ERP | A. Platform | public | 2015-09-16 13:41 | 2015-09-22 16:33 |
|
Reporter | gorkaion | |
Assigned To | gorkaion | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0PR16Q1 | Fixed in Version | 3.0PR15Q4 | |
Merge Request Status | |
Review Assigned To | AugustoMauch |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0030837: Same import entry can be added several times to a runnable |
Description | The ImportEntryManager is in charge of searching Import Entries that have not been processed to execute them.
The process to look for new ones is executed assuming that 50 entries are processed each second. If the time to process the entries is higher the entries that are still pending to process are loaded again and added to the queue. |
Steps To Reproduce | Activate logs of ImportEntryManager and ImportEntryProcessor
Create a process that takes longer than 20ms per entry, or set up a sleep on an existing one.
Load some entries.
check the logs and notice that the message "Adding entry to runnable with key ..." appears more times that entries were loaded. This is because all the pending entries are added again without checking if they already are in the runnable queue.
|
Proposed Solution | Modify the assignEntryToThread() method of ImportEntryProcessor.
Check if the given entry Id is already in the importEntryIds list of the runnable assigned to the given key. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-09-16 13:41 | gorkaion | New Issue | |
2015-09-16 13:41 | gorkaion | Assigned To | => gorkaion |
2015-09-16 13:41 | gorkaion | OBNetwork customer | => No |
2015-09-16 13:41 | gorkaion | Modules | => Core |
2015-09-16 13:41 | gorkaion | Triggers an Emergency Pack | => No |
2015-09-17 18:48 | gorkaion | Review Assigned To | => mtaal |
2015-09-17 18:56 | hgbot | Checkin | |
2015-09-17 18:56 | hgbot | Note Added: 0080464 | |
2015-09-17 18:56 | hgbot | Status | new => resolved |
2015-09-17 18:56 | hgbot | Resolution | open => fixed |
2015-09-17 18:56 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/0e91bbf913d31fef9bcc36d995060ecd18645383 [^] |
2015-09-18 05:08 | hudsonbot | Checkin | |
2015-09-18 05:08 | hudsonbot | Note Added: 0080479 | |
2015-09-19 14:04 | hgbot | Checkin | |
2015-09-19 14:04 | hgbot | Note Added: 0080511 | |
2015-09-21 15:01 | mtaal | Review Assigned To | mtaal => AugustoMauch |
2015-09-21 17:14 | hudsonbot | Checkin | |
2015-09-21 17:14 | hudsonbot | Note Added: 0080539 | |
2015-09-22 16:33 | AugustoMauch | Note Added: 0080562 | |
2015-09-22 16:33 | AugustoMauch | Status | resolved => closed |
2015-09-22 16:33 | AugustoMauch | Fixed in Version | => 3.0PR15Q4 |
Notes |
|
(0080464)
|
hgbot
|
2015-09-17 18:56
|
|
Repository: erp/devel/pi
Changeset: 0e91bbf913d31fef9bcc36d995060ecd18645383
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Wed Sep 16 16:14:51 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0e91bbf913d31fef9bcc36d995060ecd18645383 [^]
Fixed issue 30837.Added contains check in ImportEntryProcessor
Check if the import entry id is already in the runnable entry list before
calling the addEntry method.
---
M src/org/openbravo/service/importprocess/ImportEntryProcessor.java
---
|
|
|
|
|
|
(0080511)
|
hgbot
|
2015-09-19 14:04
|
|
Repository: erp/devel/pi
Changeset: d5e847e3d7247fac493f8f1a8021a2d1925f14a0
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Sep 18 12:36:40 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d5e847e3d7247fac493f8f1a8021a2d1925f14a0 [^]
Related to issue 30837: Same import entry can be added several times to a runnable
There is already a check if importentry id is present, use it, move log statement
---
M src/org/openbravo/service/importprocess/ImportEntryProcessor.java
---
|
|
|
|
|
|
|
Code reviewed and verified in pi@3c9d542f4abb |
|