Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340765

Summary: Batch fetch with IN fails on large batch sizes
Product: z_Archived Reporter: James Sutherland <jamesssss>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description James Sutherland CLA 2011-03-23 10:29:37 EDT
An array index exception can occur when using batch fetching with IN.

The issue occurs when the batch size is greater than the batch fetch size, so must be split up into multiple batches, if the remaining batch is empty, we try to get a subList of the batch but the start is greater than the end, need to check for this.
Comment 1 James Sutherland CLA 2011-04-13 09:49:55 EDT
See, https://bugs.eclipse.org/bugs/show_bug.cgi?id=341153 for diff
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:28:50 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink