Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340765 - Batch fetch with IN fails on large batch sizes
Summary: Batch fetch with IN fails on large batch sizes
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-23 10:29 EDT by James Sutherland CLA
Modified: 2022-06-09 10:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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