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

Bug 522536

Summary: Retrying a query doesn't work on non relational databases
Product: z_Archived Reporter: Frank Caputo <frank>
Component: EclipselinkAssignee: Project Inbox <eclipselink.eis-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: blocker    
Priority: P3 CC: lukas.jungmann
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Frank Caputo CLA 2017-09-20 10:18:40 EDT
org/eclipse/persistence/internal/sessions/AbstractSession.java:1888 makes AbstractSession#getLogin throw an exception on mongodb.

Either catch the exception and don't retry or move getQueryRetryAttemptCount() to DatasourceLogin and call getDatasourceLogin().getQueryRetryAttemptCount().

Throwing an exception in a catch block makes it impossible to find the root cause.
Comment 1 Lukas Jungmann CLA 2017-09-21 04:06:44 EDT

*** This bug has been marked as a duplicate of bug 520889 ***
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:10:59 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink