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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037611
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] StoreServermajoralways2018-01-10 17:392018-01-29 11:32
ReporterioritzCiaView Statuspublic 
Assigned ToAugustoMauch 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision16cf100d79d6
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomtaal
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0037611: Store data validator background process leaves open connections

DescriptionStore data validator background process leaves open connections in createMaterializedView method
Steps To ReproduceConfigure the Openbravo.properties to log abandoned suspects
Execute the background process
Check the log for the error like in the attached file
TagsNo tags attached.
Attached Fileslog file icon connectionLeakValidateBackground.log [^] (2,402 bytes) 2018-01-10 17:40

- Relationships Relation Graph ] Dependency Graph ]
related to design defect 0037699 newAugustoMauch Connection leak if the Validate Store Server process is executed from the ERP using more than one thread 

-  Notes
(0101713)
hgbot (developer)
2018-01-16 11:37

Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: 16cf100d79d6b4086fd292fc0baa7d887d73dae3
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Jan 16 11:29:24 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/16cf100d79d6b4086fd292fc0baa7d887d73dae3 [^]

Fixes issue 37611: Store data validator process no longer leaks connections

The problem was that the connection used to create the materialized views was not being rollbacked and closed.

Now this is done by the RollbackMaterializedViews runnable, which is invoked on the ExecutorServer where the materialized views are created. The existing connection rollback has been removed because is no longer needed.

---
M src/org/openbravo/replication/symmetricds/validation/SynchronizationStoreDataValidator.java
---
(0101735)
mtaal (manager)
2018-01-16 23:04

Codereview comments:

Maybe add comment where the executorservice is created that singlethreadexecutor is important to ensure that the connection close at the end works on the same thread.

The standardExecutorService is not created as singlethreadexecutor. Is that on purpose, could there be a connection leak there to?
(0101854)
AugustoMauch (administrator)
2018-01-22 16:32

Right now it is not possible to leak connections, but if the number of threads to be used to execute the background validator process were increased, there would be leaks. A new issue has been reported to cover this case [1].

As the fix is not easy, and it is currently not reproducible, I prefere to handle it in that separate design defect.

[1] https://issues.openbravo.com/view.php?id=37699 [^]
(0102009)
mtaal (manager)
2018-01-29 11:32

reviewed

- Issue History
Date Modified Username Field Change
2018-01-10 17:39 ioritzCia New Issue
2018-01-10 17:39 ioritzCia Assigned To => StoreServer
2018-01-10 17:39 ioritzCia Triggers an Emergency Pack => No
2018-01-10 17:40 ioritzCia File Added: connectionLeakValidateBackground.log
2018-01-15 10:23 mtaal Assigned To StoreServer => AugustoMauch
2018-01-15 13:25 ioritzCia Resolution time => 1517353200
2018-01-16 11:37 hgbot Checkin
2018-01-16 11:37 hgbot Note Added: 0101713
2018-01-16 11:37 hgbot Status new => resolved
2018-01-16 11:37 hgbot Resolution open => fixed
2018-01-16 11:37 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/16cf100d79d6b4086fd292fc0baa7d887d73dae3 [^]
2018-01-16 12:26 AugustoMauch Review Assigned To => mtaal
2018-01-16 23:04 mtaal Note Added: 0101735
2018-01-22 16:25 AugustoMauch Relationship added related to 0037699
2018-01-22 16:32 AugustoMauch Note Added: 0101854
2018-01-29 11:32 mtaal Note Added: 0102009
2018-01-29 11:32 mtaal Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker