Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035493 | Openbravo ERP | Y. DBSourceManager | public | 2017-03-13 09:17 | 2017-03-17 08:52 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | immediate | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q2 | |
Merge Request Status | |
Review Assigned To | caristu |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | Pre packaging ( pi ) |
Regression date | 2017-01-11 |
Regression introduced in release | pi |
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/47c768943f70d1c674cb0a2701faf29edde3da84 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0035493: missing log info when check consistency fails |
Description | When exporting database, PL code is checked to ensure it is consistently exported. When there are inconsistencies it only logs some basic info, but it misses the actual problems.
The problem is caused because export.database uses OBLogAppender to log information. This class stores the information about where to log in ThreadLocals, now check consistency is performed in different threads, so the logs generated from these other threads are not displayed. |
Steps To Reproduce | 1. Set core in development
2. Do modifications to some PL to force to be inconsistently exported:
* ie. change
IF TG_OP = 'DELETE' THEN RETURN OLD; ELSE RETURN NEW; END IF;
to lower case
IF tg_op = 'DELETE' THEN RETURN OLD; ELSE RETURN NEW; END IF;
3. Export database
Check the log doesn't indicate the differences you'd get. |
Proposed Solution | It does not make sense anymore to continue using OBLogAppender for export.datbase: replace it with a standard ConsoleAppender. |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0035492 | | closed | alostale | error checking pl consistency | related to | defect | 0035490 | | closed | shuehner | SystemService logValidationResults logs a ERROR line always if there are no errors (shows in export.database) | caused by | feature request | 0034654 | 3.0PR17Q2 | closed | alostale | some performance improvements in DBSM tasks | related to | design defect | 0035503 | | acknowledged | Triage Platform Base | tomcat pool can't be used in cli tasks |
|
Attached Files | 35493-2.diff (862) 2017-03-13 12:10 https://issues.openbravo.com/file_download.php?file_id=10558&type=bug 35493-1.diff (1,348) 2017-03-13 12:11 https://issues.openbravo.com/file_download.php?file_id=10559&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2017-03-13 09:17 | alostale | New Issue | |
2017-03-13 09:17 | alostale | Assigned To | => platform |
2017-03-13 09:17 | alostale | Modules | => Core |
2017-03-13 09:17 | alostale | Triggers an Emergency Pack | => No |
2017-03-13 09:17 | alostale | Relationship added | related to 0035492 |
2017-03-13 09:17 | alostale | Relationship added | related to 0035490 |
2017-03-13 09:59 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=14778#r14778 |
2017-03-13 10:00 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=14779#r14779 |
2017-03-13 12:04 | alostale | Relationship added | caused by 0034654 |
2017-03-13 12:05 | alostale | Regression level | => Pre packaging ( pi ) |
2017-03-13 12:05 | alostale | Regression date | => 2017-01-11 |
2017-03-13 12:05 | alostale | Regression introduced in release | => pi |
2017-03-13 12:05 | alostale | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/47c768943f70d1c674cb0a2701faf29edde3da84 [^] |
2017-03-13 12:05 | alostale | Priority | normal => immediate |
2017-03-13 12:05 | alostale | Severity | major => minor |
2017-03-13 12:05 | alostale | Review Assigned To | => caristu |
2017-03-13 12:06 | alostale | Assigned To | platform => alostale |
2017-03-13 12:06 | alostale | Status | new => acknowledged |
2017-03-13 12:09 | alostale | Description Updated | bug_revision_view_page.php?rev_id=14781#r14781 |
2017-03-13 12:09 | alostale | Proposed Solution updated | |
2017-03-13 12:10 | alostale | File Added: 35493-1.diff | |
2017-03-13 12:10 | alostale | File Added: 35493-2.diff | |
2017-03-13 12:11 | alostale | File Deleted: 35493-1.diff | |
2017-03-13 12:11 | alostale | File Added: 35493-1.diff | |
2017-03-13 14:10 | shuehner | Issue Monitored: shuehner | |
2017-03-14 09:16 | alostale | Relationship added | related to 0035503 |
2017-03-14 09:23 | hgbot | Checkin | |
2017-03-14 09:23 | hgbot | Note Added: 0094989 | |
2017-03-14 09:23 | hgbot | Status | acknowledged => resolved |
2017-03-14 09:23 | hgbot | Resolution | open => fixed |
2017-03-14 09:23 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/7e2800bad2ba3ea0f9a48cc28f661e81ba2460ce [^] |
2017-03-14 09:23 | hgbot | Checkin | |
2017-03-14 09:23 | hgbot | Note Added: 0094990 | |
2017-03-14 09:25 | hgbot | Checkin | |
2017-03-14 09:25 | hgbot | Note Added: 0094993 | |
2017-03-14 09:25 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/7e2800bad2ba3ea0f9a48cc28f661e81ba2460ce [^] => http://code.openbravo.com/erp/devel/dbsm-main/rev/2c18bf970368346a63be240ae4bdfa720c40abfc [^] |
2017-03-15 20:22 | hudsonbot | Checkin | |
2017-03-15 20:22 | hudsonbot | Note Added: 0095295 | |
2017-03-15 20:22 | hudsonbot | Checkin | |
2017-03-15 20:22 | hudsonbot | Note Added: 0095296 | |
2017-03-17 08:52 | caristu | Note Added: 0095352 | |
2017-03-17 08:52 | caristu | Status | resolved => closed |
2017-03-17 08:52 | caristu | Fixed in Version | => 3.0PR17Q2 |
Notes |
|
(0094989)
|
hgbot
|
2017-03-14 09:23
|
|
Repository: erp/devel/pi
Changeset: 7e2800bad2ba3ea0f9a48cc28f661e81ba2460ce
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Mar 14 09:21:07 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7e2800bad2ba3ea0f9a48cc28f661e81ba2460ce [^]
fixed bug 35492, fixed bug 35493: new dbsm
Includes:
* 35492 - Fixes PG trigger translation consistency:
- incorrect casting from Trigger to Function
- use correct translator for triggers
* 35493 - Missing log info in export.database:
- replaced OBLogAppender which is not required by standard
ConsoleAppender
- changed layout so that time and log level (INFO, WARN...) is
displayed
---
M src-db/database/lib/dbsourcemanager.jar
---
|
|
|
(0094990)
|
hgbot
|
2017-03-14 09:23
|
|
Repository: erp/devel/pi
Changeset: afcca1baf74cece5355d02eab7f97188b5b4f022
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Mar 14 09:22:54 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/afcca1baf74cece5355d02eab7f97188b5b4f022 [^]
related to issue 35493, related to issue 35503
Don't display warn message when tomcat pool cannot be used unless log level is
set to debug.
It is expected not to be possible to use it from CLI, because now export.database
uses standard ConsoleAppender, this message was now visible in logs.
---
M src/org/openbravo/dal/core/SessionHandler.java
---
|
|
|
(0094993)
|
hgbot
|
2017-03-14 09:25
|
|
Repository: erp/devel/dbsm-main
Changeset: 2c18bf970368346a63be240ae4bdfa720c40abfc
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Mar 13 14:08:29 2017 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/2c18bf970368346a63be240ae4bdfa720c40abfc [^]
fixed bug 35493: missing log info when check consistency fails
Using now standard ConsoleAppender for logging instead of OBLogAppender which
does not handle properly logging in multi-thread.
---
M src/org/openbravo/ddlutils/task/BaseDalInitializingTask.java
---
|
|
|
|
|
|
|
|
|
|
Code reviewed + testing OK: differences can be seen now in the log. |
|