Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037699Retail ModulesStoreServerpublic2018-01-22 16:242018-10-17 09:52
AugustoMauch 
AugustoMauch 
normalminorhave not tried
newopen 
5
 
 
No
0037699: Connection leak if the Validate Store Server process is executed from the ERP using more than one thread
The validate store server can be executed:
- Using the validate.store.data ant task (it is possible to specify the number of threads to use for the validation)
- From the ERP, executing the Background Store Data validator process (1 thread is used for the validation)

The current way of cleaning the database connections after the validation would leak connections if invoked from the ERP using more than 1 threads.

Even though now that combination is not possible, the way the connections are closed should be improved to prevent leaks in the future.

- Change this line [1], set the number of threads to use to 4
- Open the Process Request window
- Schedule the Background Store Data validator process to be executed immediately
- Check that some connections have been leaked

[1] https://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/file/tip/src/org/openbravo/replication/symmetricds/process/BackgroundStoreDataValidator.java#l86 [^]
No tags attached.
related to defect 0037611 closed AugustoMauch Store data validator background process leaves open connections 
Issue History
2018-01-22 16:24AugustoMauchNew Issue
2018-01-22 16:24AugustoMauchAssigned To => StoreServer
2018-01-22 16:24AugustoMauchTriggers an Emergency Pack => No
2018-01-22 16:24AugustoMauchAssigned ToStoreServer => AugustoMauch
2018-01-22 16:25AugustoMauchRelationship addedrelated to 0037611
2018-10-17 09:52AugustoMauchSummaryConnection leak if the Validate Store Server process is executed from the ERP with using more than one thread => Connection leak if the Validate Store Server process is executed from the ERP using more than one thread

There are no notes attached to this issue.