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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0058060
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2025-02-24 14:272025-02-28 12:07
ReporteralostaleView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionfixedFixed in VersionPR25Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Statusapproved
Review Assigned To
OBNetwork customerNo
Web browser
ModulesCore
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0058060: websocket infra: DB transaction remains open

DescriptionWhen websockets is enabled, a DB transaction is kept open forever not being returnd to the pool.
Steps To Reproduce1. Activate Websockets: set "Enable Message Client Manager" preference to Y
2. Restart Tomcat
3. Check pg_stat_activity, there is a transaction that is created on Tomcat start and reused to check pending messages every 10s.

select xact_start, state_change, query from pg_stat_activity where state = 'idle in transaction';
          xact_start           |         state_change         |                                                                                                                                                                                                                                                                                                      
query                                                                                                                                                                                                                                                                                                      

-------------------------------+------------------------------+-------------------------------------------------------------------------
 
2025-02-24 14:09:39.901561+01 | 2025-02-24 14:26:19.80062+01 | select this_.C_Persisted_Message_ID as 
c_persis1_278_0_, this_.AD_Client_ID as ad_clien2_278_0_, this_.AD_Org_ID as ad_org_i3_278_0_, this_.Isactive 
as isactive4_278_0_, this_.Created as created5_278_0_, this_.Createdby as createdb6_278_0_, this_.Updated 
as updated7_278_0_, this_.Updatedby as updatedb8_278_0_, this_.Payload as payload9_278_0_, this_.Type 
as type10_278_0_, this_.Expirationdate as expirat11_278_0_, this_.Context as context12_278_0_ from C_Persisted_Message 
this_ where this_.Expirationdate>=$1 and this_.Created>$2 and this_.Isactive=$3 order by this_.Created 
asc limit $4
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0058102PR25Q1 closedTriage Platform Base websocket infra: DB transaction remains open 
depends on backport 0058103PR24Q4.2 closedTriage Platform Base websocket infra: DB transaction remains open 
caused by feature request 0056195 closedcberner New infrastructure for sending messages, using websockets 

-  Notes
(0176081)
hgbot (developer)
2025-02-24 14:43

Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1552 [^]
(0176283)
hgbot (developer)
2025-02-28 12:07

Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1552 [^]
(0176284)
hgbot (developer)
2025-02-28 12:07

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo [^]
Changeset: 10a81915610ef81a869c64e8394d447a52e1941c
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 28-02-2025 11:07:19
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/commit/10a81915610ef81a869c64e8394d447a52e1941c [^]

Fixes ISSUE-58060: websocket infra: DB transaction remains open

Closes transactions on all DatabaseMessageRegistryPersistence methods.
These methods are outside of a DAL controlled Thread and need to be
closed intentionally.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/messageclient/DatabaseMessageRegistryPersistence.java
---

- Issue History
Date Modified Username Field Change
2025-02-24 14:27 alostale New Issue
2025-02-24 14:27 alostale Assigned To => Triage Platform Base
2025-02-24 14:27 alostale OBNetwork customer => No
2025-02-24 14:27 alostale Modules => Core
2025-02-24 14:27 alostale Triggers an Emergency Pack => No
2025-02-24 14:28 alostale Steps to Reproduce Updated View Revisions
2025-02-24 14:29 alostale Relationship added caused by 0056195
2025-02-24 14:43 hgbot Merge Request Status => open
2025-02-24 14:43 hgbot Note Added: 0176081
2025-02-27 16:50 cberner Status new => scheduled
2025-02-27 16:55 hgbot Merge Request Status open => approved
2025-02-28 12:07 hgbot Resolution open => fixed
2025-02-28 12:07 hgbot Status scheduled => closed
2025-02-28 12:07 hgbot Note Added: 0176283
2025-02-28 12:07 hgbot Fixed in Version => PR25Q2
2025-02-28 12:07 hgbot Note Added: 0176284


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker