Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035384Openbravo ERP07. Sales managementpublic2017-02-28 16:522017-09-21 16:49
egoitz 
markmm82 
normalmajoralways
closedfixed 
5
 
3.0PR17Q4 
aferraz
Core
No
0035384: Add logs on debug on the costing process and costing migration process to track the time invested on each part
It is needed to have a way to identify the time required to execute each time.
That is a feature to analyze performance problems and make a better diagnosis
n/a
No tags attached.
related to defect 00324583.0PR16Q2 closed markmm82 It is necessary to add log information in process executed when Validating Costing Rule 
related to feature request 0024008 new dmiguelez It would be fine to have any kind of information about the evolution of the Costing Migration Process 
related to defect 0036675 closed markmm82 [Costing Migration Process]: Transactions related with closing inventory lines do not have an entry in Transaction Cost tab 
Issue History
2017-02-28 16:52egoitzNew Issue
2017-02-28 16:52egoitzAssigned To => Triage Finance
2017-02-28 16:52egoitzModules => Core
2017-02-28 16:52egoitzTriggers an Emergency Pack => No
2017-05-08 10:03aferrazRelationship addedrelated to 0032458
2017-05-09 10:34aferrazNote Added: 0096480
2017-05-09 12:35aferrazRelationship addedrelated to 0024008
2017-06-19 18:16markmm82Assigned ToTriage Finance => markmm82
2017-06-19 18:16markmm82Statusnew => scheduled
2017-07-03 12:44hgbotCheckin
2017-07-03 12:44hgbotNote Added: 0097794
2017-07-03 12:44hgbotStatusscheduled => resolved
2017-07-03 12:44hgbotResolutionopen => fixed
2017-07-03 12:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ea7a25da92859e2d7ee9238ba66c6e6d916f00d6 [^]
2017-07-03 12:45hgbotCheckin
2017-07-03 12:45hgbotNote Added: 0097795
2017-07-03 13:00aferrazReview Assigned To => aferraz
2017-07-03 13:00aferrazNote Added: 0097796
2017-07-03 13:00aferrazStatusresolved => closed
2017-07-03 13:00aferrazFixed in Version => 3.0PR17Q4
2017-07-03 14:22aferrazNote Added: 0097801
2017-08-24 10:52aferrazRelationship addedrelated to 0036675
2017-09-21 16:49hudsonbotCheckin
2017-09-21 16:49hudsonbotNote Added: 0099224
2017-09-21 16:49hudsonbotCheckin
2017-09-21 16:49hudsonbotNote Added: 0099225

Notes
(0096480)
aferraz   
2017-05-09 10:34   
We can include log in:

Costing Background Process:
- How many transactions have been processed: we already have this info available for debug here.
- How many transactions are pending to process.
- Estimated time to finish the execution based on current numbers: although it is very difficult to estimate the time in costing when working with cost adjustments, we can re-estimate it in each batch of calculated transactions and give at least an approximation.
- What part of the process is being executed at the moment: although costing calculation involves many different java classes, we can add several log to heavier steps (cost adjustments), which are the ones that give more information.
- Show this info in UI: we could add this log to Process Log field inside Process Request window, but I think it's better to have it in openbravo.log file due to the big size of it.

Costing Migration Process:
- What part of the process is being executed at the moment.
(0097794)
hgbot   
2017-07-03 12:44   
Repository: erp/devel/pi
Changeset: ea7a25da92859e2d7ee9238ba66c6e6d916f00d6
Author: Mark <markmm82 <at> gmail.com>
Date: Wed Jun 21 16:23:42 2017 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/ea7a25da92859e2d7ee9238ba66c6e6d916f00d6 [^]

Fixes issue 35384: Add logs on costing background and costing migration process

To analyze performance problems and make a better diagnosis was needed to have a
way to identify the time required to execute each process.

To take this feature included into the Costing Background Process and Costing Migration
Process, some logs were added in the most critical parts of the code to log relevant
information of the processing status like:
- How many transactions have been processed.
- How many transactions are pending to process.
- Estimated time to finish the execution based on current numbers.
- What part of the process is being executed at the moment.

---
M src/org/openbravo/costing/CostAdjustmentProcess.java
M src/org/openbravo/costing/CostingAlgorithm.java
M src/org/openbravo/costing/CostingBackground.java
M src/org/openbravo/costing/CostingMigrationProcess.java
---
(0097795)
hgbot   
2017-07-03 12:45   
Repository: erp/devel/pi
Changeset: b3da3000ba8d8cbd4101950cfcaddc7600db94f8
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Jun 23 11:25:32 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b3da3000ba8d8cbd4101950cfcaddc7600db94f8 [^]

Related to issue 35384: Code review improvements

---
M src/org/openbravo/costing/CostAdjustmentProcess.java
M src/org/openbravo/costing/CostingBackground.java
M src/org/openbravo/costing/CostingMigrationProcess.java
---
(0097796)
aferraz   
2017-07-03 13:00   
Code review + Testing OK
(0097801)
aferraz   
2017-07-03 14:22   
Documentation:
http://wiki.openbravo.com/wiki/Costing_Background_and_Costing_Migration_processes_log [^]
(0099224)
hudsonbot   
2017-09-21 16:49   
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/9750b78d3e5c [^]
Maturity status: Test
(0099225)
hudsonbot   
2017-09-21 16:49   
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/9750b78d3e5c [^]
Maturity status: Test