Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0049963Openbravo ERPA. Platformpublic2022-08-05 11:392022-08-19 14:49
gorkaion 
Triage Platform Base 
normalminoralways
acknowledgedopen 
5
 
 
Core
No
0049963: When a ImportEntry is not assigned to a runnable it should not be included in hte entryCount
The ImportEntryProcessor.assignEntryToThread method might not assign the entry to a thread if there is a runnable of the previous search cycle still running.

When this happen the ImportEntryManager is still counting it in the entryCount counter that manages the wait time between cycles. This can generate extra wait time between cycles.
Create a big volume of slow import entries to force the system to execute a new search cycle when the previous runnables are still executing.

Notice that the import entries are not assigned to any threads but the calculated wait time to next search is considering all of them.
Change ImportEntryProcessor's handleImportEntry and assignEntryToThread methods to return a boolean.

assignEntryToThread return false when the ImportEntry is not assigned to a thread.

handleImportEntry returns false when the canHandleImportEntry or assignEntryToThread return false.

Change ImportEntryManager to update counter when the assignEntryToThread returns true.

No tags attached.
related to defect 0048427 closed alostale high load of low priority import entries can cause higher priority entries not to be processed 
Issue History
2022-08-05 11:39gorkaionNew Issue
2022-08-05 11:39gorkaionAssigned To => Triage Platform Base
2022-08-05 11:39gorkaionModules => Core
2022-08-05 11:39gorkaionTriggers an Emergency Pack => No
2022-08-12 07:57alostaleStatusnew => acknowledged
2022-08-12 08:02hgbotNote Added: 0140080
2022-08-12 10:36alostaleRelationship addedrelated to 0048427
2022-08-19 14:49ivancaceresIssue Monitored: ivancaceres

Notes
(0140080)
hgbot   
2022-08-12 08:02   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/680 [^]