You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Deepak Dixit (Jira)" <ji...@apache.org> on 2026/05/05 13:13:00 UTC
[jira] [Created] (OFBIZ-13399) Use try-with-resources for EntityListIterator
Deepak Dixit created OFBIZ-13399:
------------------------------------
Summary: Use try-with-resources for EntityListIterator
Key: OFBIZ-13399
URL: https://issues.apache.org/jira/browse/OFBIZ-13399
Project: OFBiz
Issue Type: New Feature
Reporter: Deepak Dixit
Replace manual handling of {{EntityListIterator}} with try-with-resources (or Groovy {{{}withCloseable{}}}) to ensure proper resource management and avoid potential resource leaks.
Currently, iterators are being closed manually using {{close()}} or sometimes not closed.
This can lead to:
* Open JDBC {{{}ResultSet{}}}/cursor leaks
* Increased memory usage
* Connection/resource exhaustion under load
--
This message was sent by Atlassian Jira
(v8.20.10#820010)