Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033167Openbravo ERPA. Platformpublic2016-06-07 11:522016-06-17 19:38
shuehner 
alostale 
normalminorhave not tried
closedfixed 
5
 
3.0PR16Q3 
caristu
Core
No
0033167: Apparently useless indirect flush in KernelApplicationInitializer.getDatabaseDateTime
      String now = DateTimeData.now(new DalConnectionProvider(), sqlDateTimeFormat);

The () constructor for DalConnectionProvider should never be used as it triggers flush and it is often used by accident.

The (boolean flush) form should always be used to indicate if a flush is required.

If it is -> the reason should be documented with a comment.

In this usecase here there seems to be no obvious reason to force a flush.

That should be re-checked and fixed (either document or remove flush).
-
Performance
Issue History
2016-06-07 11:52shuehnerNew Issue
2016-06-07 11:52shuehnerAssigned To => platform
2016-06-07 11:52shuehnerModules => Core
2016-06-07 11:52shuehnerTriggers an Emergency Pack => No
2016-06-16 09:16alostaleTag Attached: Performance
2016-06-16 09:27alostaleAssigned Toplatform => alostale
2016-06-16 09:28alostaleReview Assigned To => caristu
2016-06-16 09:30hgbotCheckin
2016-06-16 09:30hgbotNote Added: 0087326
2016-06-16 09:30hgbotStatusnew => resolved
2016-06-16 09:30hgbotResolutionopen => fixed
2016-06-16 09:30hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/47723fdf90f255440b76b8576ad3e267b8e717e6 [^]
2016-06-17 09:18caristuNote Added: 0087379
2016-06-17 09:18caristuStatusresolved => closed
2016-06-17 09:18caristuFixed in Version => 3.0PR16Q3
2016-06-17 19:38hudsonbotCheckin
2016-06-17 19:38hudsonbotNote Added: 0087624

Notes
(0087326)
hgbot   
2016-06-16 09:30   
Repository: erp/devel/pi
Changeset: 47723fdf90f255440b76b8576ad3e267b8e717e6
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Jun 16 09:28:41 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/47723fdf90f255440b76b8576ad3e267b8e717e6 [^]

fixed bug 33167: unneded flush in KernelApplicationInitializer.getDatabaseDateTime

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelApplicationInitializer.java
---
(0087379)
caristu   
2016-06-17 09:18   
Verified

Reviewed in pi@a3288a6ce595
(0087624)
hudsonbot   
2016-06-17 19:38   
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/0dc7be081b1c [^]
Maturity status: Test