[ 
https://issues.apache.org/jira/browse/OFBIZ-13399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepak Dixit reassigned OFBIZ-13399:
------------------------------------

    Assignee: Deepak Dixit

> 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
>            Assignee: Deepak Dixit
>            Priority: Major
>
> 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)

Reply via email to