Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021687Openbravo ERPA. Platformpublic2012-09-19 13:102012-09-28 14:38
dmiguelez 
AugustoMauch 
normalminoralways
closedfixed 
20Community Appliance
 
3.0MP15 
marvintm
Core
No
0021687: Aleatory problem when Updating database through the application
When rebuilding the system through the application, the Update Database process is launch. It can collide with alert queries when this tables are being updated, and it results in an error.

It happens in smoke tests:
org.openqa.selenium.TimeoutException: Timed out after 3600 seconds waiting for com.openbravo.test.integration.erp.gui.general.application.RebuildSystemPopUp$2@1742cea
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-305-ec2', java.version: '1.6.0_24'
Driver info: driver.version: unknown
    at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:251)
    at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:220)
    at com.openbravo.test.integration.erp.gui.general.application.RebuildSystemPopUp.rebuildTheSystem(RebuildSystemPopUp.java:105)
    at com.openbravo.test.integration.erp.testscripts.generalsetup.application.modulemanagement.InstalledModulesTabScript.rebuildSystemAndRestartServletContainer(InstalledModulesTabScript.java:99)
    at com.openbravo.test.integration.erp.testscripts.generalsetup.application.modulemanagement.ModuleManagement$InstalledModules.rebuildSystemAndRestartServletContainer(ModuleManagement.java:103)
    at com.openbravo.test.integration.erp.testsuites.smoke.masterdata.ADMc_SetupClientAndOrganization.clientAndOrganizationShouldBeSetUp(ADMc_SetupClientAndOrganization.java:217)
When rebuilding the system through the application, the Update Database process is launch. It can collide with alert queries when this tables are being updated, and it results in an error.

It happens in smoke tests:
org.openqa.selenium.TimeoutException: Timed out after 3600 seconds waiting for com.openbravo.test.integration.erp.gui.general.application.RebuildSystemPopUp$2@1742cea
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-305-ec2', java.version: '1.6.0_24'
Driver info: driver.version: unknown
    at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:251)
    at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:220)
    at com.openbravo.test.integration.erp.gui.general.application.RebuildSystemPopUp.rebuildTheSystem(RebuildSystemPopUp.java:105)
    at com.openbravo.test.integration.erp.testscripts.generalsetup.application.modulemanagement.InstalledModulesTabScript.rebuildSystemAndRestartServletContainer(InstalledModulesTabScript.java:99)
    at com.openbravo.test.integration.erp.testscripts.generalsetup.application.modulemanagement.ModuleManagement$InstalledModules.rebuildSystemAndRestartServletContainer(ModuleManagement.java:103)
    at com.openbravo.test.integration.erp.testsuites.smoke.masterdata.ADMc_SetupClientAndOrganization.clientAndOrganizationShouldBeSetUp(ADMc_SetupClientAndOrganization.java:217)
No tags attached.
related to defect 00228383.0MP21 closed shankarb DAL should not be used to update session last ping 
png clientAndOrganizationShouldBeSetUp.png (54,911) 2012-09-19 13:10
https://issues.openbravo.com/file_download.php?file_id=5584&type=bug
png
Issue History
2012-09-19 13:10dmiguelezNew Issue
2012-09-19 13:10dmiguelezAssigned To => AugustoMauch
2012-09-19 13:10dmiguelezFile Added: clientAndOrganizationShouldBeSetUp.png
2012-09-19 13:10dmiguelezModules => Core
2012-09-24 13:01AugustoMauchIssue Monitored: marvintm
2012-09-24 13:02AugustoMauchClosed by => marvintm
2012-09-24 13:02AugustoMauchNote Added: 0052338
2012-09-24 13:03hgbotCheckin
2012-09-24 13:03hgbotNote Added: 0052339
2012-09-24 13:03hgbotStatusnew => resolved
2012-09-24 13:03hgbotResolutionopen => fixed
2012-09-24 13:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4c4431d17dbd53b6673159b53b11c22ba3973874 [^]
2012-09-25 11:11marvintmStatusresolved => closed
2012-09-25 11:11marvintmFixed in Version => 3.0MP15
2012-09-28 14:38hudsonbotCheckin
2012-09-28 14:38hudsonbotNote Added: 0052885
2013-01-18 10:57AugustoMauchRelationship addedrelated to 0022838

Notes
(0052338)
AugustoMauch   
2012-09-24 13:02   
Test plan:
- Check that if the system is not being rebuilt the alerts are executed as usual.
- Check that if the system is being rebuilt, the alerts are not executed at all.
(0052339)
hgbot   
2012-09-24 13:03   
Repository: erp/devel/pi
Changeset: 4c4431d17dbd53b6673159b53b11c22ba3973874
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Sep 24 13:00:34 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4c4431d17dbd53b6673159b53b11c22ba3973874 [^]

Fixes issue 21687: Alerts are not executed when the system is being rebuilt

If the system is being rebuilt, there is no point in executing the alerts, so now if the system is being rebuilt using the ERP, the alerts will not be executed.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
---
(0052885)
hudsonbot   
2012-09-28 14: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/6d2f8cffd4b1 [^]

Maturity status: Test