We're updating the issue view to help you get more done. 

"DataIterator" close method should be invoked when iteration is ended in SynchronizationStorageAdapter

Description

Customer extended SpaceDataSource And implemented a "DataIterator" which is using connection pool. which is closed in close method.
The "SynchronizationStorageAdapter" class (in method "initialLoad") uses "initialMetadataLoad" which gets the "metadataIterator", iterates through it and does not invoke the "close" method of DatadIterator after hasNext return false. So in this case connection is not freed as expected.

Workaround

None

Acceptance Test

None

Status

Assignee

Unassigned

Reporter

Ester Atzmon

Labels

None

Priority

Medium

SalesForce Case ID

11937

Fix versions

None

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Open Source

Platform

All