Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] StoreServermajorhave not tried2017-07-03 11:002017-07-31 09:24
ReporterAugustoMauchView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in VersionRR17Q3
StatusclosedFix in branchFixed in SCM revision1c80d277fbab
ProjectionnoneETAnoneTarget VersionRR17Q3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Regression levelPackaging and release
Regression date2017-06-08
Regression introduced in releaseRR17Q2
Regression introduced by commit [^]
Triggers an Emergency PackNo

0036385: Connection leak in ServerStateBackground is there are no servers to ping

DescriptionThis changeset [1] fixed a connection leak in ServerStateBackground, but only if there was at least one store server to be pinged from the central server. If there are none, connections are still being leaked:

[1] [^]
Steps To ReproduceIn a central server with no store server registered:
- Start tomcat
- Wait until the ServerStateBackground process is invoked. Each time it is invoked a connection will be leaked:

jul 03, 2017 10:56:07 AM org.apache.tomcat.jdbc.pool.ConnectionPool suspect
ADVERTENCIA: Connection has been marked suspect, possibly abandoned PooledConnection[org.postgresql.jdbc.PgConnection@5667c6bd][33259 ms.]:java.lang.Exception
    at org.apache.tomcat.jdbc.pool.ConnectionPool.getThreadDump(
    at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(
    at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(
    at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(
    at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(
    at org.openbravo.apachejdbcconnectionpool.JdbcExternalConnectionPool.getConnectionFromDS(
    at org.openbravo.apachejdbcconnectionpool.JdbcExternalConnectionPool.getConnection(
    at org.openbravo.dal.core.SessionHandler.getNewConnection(
    at org.openbravo.dal.core.SessionHandler.createSession(
    at org.openbravo.dal.core.SessionHandler.begin(
    at org.openbravo.dal.core.SessionHandler.getSession(
    at org.openbravo.dal.core.SessionHandler.find(
    at org.openbravo.dal.core.SessionHandler.find(
    at org.openbravo.dal.service.OBDal.get(
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0036384 closedAugustoMauch Connection leak in ServerStateBackground is there are no servers to ping 

-  Notes
hgbot (developer)
2017-07-17 15:22

Repository: retail/backports/3.0RR17Q3/
Changeset: 1c80d277fbab48a50a5de2a942d2c00318674988
Author: Martin Taal <martin.taal <at>>
Date: Mon Jul 17 15:20:31 2017 +0200
URL: [^]

Fixes issue 36385: Fixes connection leak in ServerStateBackground

Commits the connection outside the for loop, to ensure the connections is commited even if there are no store server to be pinged.

M src/org/openbravo/mobile/core/servercontroller/
AugustoMauch (developer)
2017-07-31 09:24

Code reviewed and verified

- Issue History
Date Modified Username Field Change
2017-07-03 11:17 AugustoMauch Type defect => backport
2017-07-03 11:17 AugustoMauch Target Version => RR17Q3
2017-07-17 01:00 mtaal Assigned To AugustoMauch => mtaal
2017-07-17 15:19 mtaal Review Assigned To => AugustoMauch
2017-07-17 15:22 hgbot Checkin
2017-07-17 15:22 hgbot Note Added: 0098104
2017-07-17 15:22 hgbot Status scheduled => resolved
2017-07-17 15:22 hgbot Resolution open => fixed
2017-07-17 15:22 hgbot Fixed in SCM revision => [^]
2017-07-31 09:24 AugustoMauch Note Added: 0098268
2017-07-31 09:24 AugustoMauch Status resolved => closed
2017-07-31 09:24 AugustoMauch Fixed in Version => RR17Q3

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker