Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0054029 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] A. Platform | critical | have not tried | 2023-11-26 21:39 | 2023-12-15 08:32 | |||
| Reporter | AugustoMauch | View Status | public | |||||
| Assigned To | AugustoMauch | |||||||
| Priority | normal | Resolution | fixed | Fixed in Version | ||||
| Status | closed | Fix in branch | Fixed in SCM revision | |||||
| Projection | none | ETA | none | Target Version | ||||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| Merge Request Status | approved | |||||||
| Review Assigned To | ||||||||
| OBNetwork customer | No | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0054029: Connection leak when using scheduling process requests based on process groups | |||||||
| Description | Whenever a process request based on a process group is scheduled, some database connections will be leaked | |||||||
| Steps To Reproduce | In any OB environment: - Log in in the backoffice - Open the Process Group window - Create a process group (i.e. name it test, create two entries in the subtab, one for the Alert Process and another one for the Log Cleanup process) - Check the number of non-idle connection by executing this query in the database: select count(*) from pg_stat_activity where state <> 'idle'; - Open the Process Request window - Create a new process request, based on the group created earlier, by checking the Group flag and selecting the new group. - Schedule the process request. Notice that each time that process request is scheduled, the number of non-idle database connection increases | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
||||||||||||||||||||||
|
||||||||||||||||||||||
Notes |
|
|
(0157829) hgbot (developer) 2023-11-30 08:05 |
Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: 2432bd6c0d739d88b0068ae4dff44eff1846cef2 Author: Augusto Mauch <augusto.mauch@openbravo.com> Date: 30-11-2023 07:05:17 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/2432bd6c0d739d88b0068ae4dff44eff1846cef2 [^] Fixes ISSUE-54029: Connection is properly closed after scheduling grouped process Now the connection used after a process has been executed is closed properly, by using DalThreadCleaner.getInstance().cleanWithCommit(); --- M src/org/openbravo/scheduling/ProcessMonitor.java --- |
|
(0158031) hgbot (developer) 2023-12-11 10:00 |
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1069 [^] |
|
(0158247) hgbot (developer) 2023-12-15 08:32 |
Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: 53bf50ede6704f25851da724e1e8a9040b1b827c Author: Asier Lostalé <asier.lostale@openbravo.com> Date: 15-12-2023 07:31:39 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/53bf50ede6704f25851da724e1e8a9040b1b827c [^] fixes BUG-54081: one DB connection leaked per each background thread Each thread in charge of executing background processes leaked a DB connection which was not returned to the pool on finalization. Commit 2432bd6c0d (BUG-54029) prevents leaking connections handled by DAL, but it removed the code in charge of returning non-DAL ConnectionProvider connections. This code has now been recovered keeping also the one dealing with DAL connections. --- M src/org/openbravo/scheduling/ProcessMonitor.java --- |
|
(0158250) hgbot (developer) 2023-12-15 08:32 |
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1069 [^] |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2023-11-26 21:39 | AugustoMauch | New Issue | |
| 2023-11-26 21:39 | AugustoMauch | Assigned To | => AugustoMauch |
| 2023-11-26 21:39 | AugustoMauch | OBNetwork customer | => No |
| 2023-11-26 21:39 | AugustoMauch | Modules | => Core |
| 2023-11-26 21:39 | AugustoMauch | Triggers an Emergency Pack | => No |
| 2023-11-26 21:39 | AugustoMauch | Status | new => scheduled |
| 2023-11-26 21:40 | AugustoMauch | Relationship added | related to 0053777 |
| 2023-11-30 08:05 | hgbot | Resolution | open => fixed |
| 2023-11-30 08:05 | hgbot | Status | scheduled => resolved |
| 2023-11-30 08:05 | hgbot | Fixed in Version | => PR24Q1 |
| 2023-11-30 08:05 | hgbot | Note Added: 0157829 | |
| 2023-11-30 08:05 | AugustoMauch | Status | resolved => closed |
| 2023-11-30 08:05 | AugustoMauch | Fixed in Version | PR24Q1 => |
| 2023-12-11 09:25 | alostale | Relationship added | causes 0054081 |
| 2023-12-11 09:58 | alostale | Relationship added | related to 0054090 |
| 2023-12-11 10:00 | hgbot | Merge Request Status | => open |
| 2023-12-11 10:00 | hgbot | Note Added: 0158031 | |
| 2023-12-15 08:31 | hgbot | Merge Request Status | open => approved |
| 2023-12-15 08:32 | hgbot | Note Added: 0158247 | |
| 2023-12-15 08:32 | hgbot | Note Added: 0158250 | |
| Copyright © 2000 - 2009 MantisBT Group |