Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049963
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminoralways2022-08-05 11:392022-08-12 08:02
ReportergorkaionView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049963: When a ImportEntry is not assigned to a runnable it should not be included in hte entryCount

DescriptionThe 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.
Steps To ReproduceCreate 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.
Proposed SolutionChange 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.

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0048427 closedalostale high load of low priority import entries can cause higher priority entries not to be processed 

-  Notes
(0140080)
hgbot (developer)
2022-08-12 08:02

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/680 [^]

- Issue History
Date Modified Username Field Change
2022-08-05 11:39 gorkaion New Issue
2022-08-05 11:39 gorkaion Assigned To => Triage Platform Base
2022-08-05 11:39 gorkaion Modules => Core
2022-08-05 11:39 gorkaion Triggers an Emergency Pack => No
2022-08-12 07:57 alostale Status new => acknowledged
2022-08-12 08:02 hgbot Note Added: 0140080
2022-08-12 10:36 alostale Relationship added related to 0048427


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker