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

Bug 340860

Summary: partitioning replicates when partitioned data combined with non-partitioned data
Product: z_Archived Reporter: James Sutherland <jamesssss>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
add persist partitioning, and partitioning example none

Description James Sutherland CLA 2011-03-24 10:12:38 EDT
If you access classes that are partitioned and not partitioned in the same transaction, then the non-partitioned data will be replicated to all database that were accessed.

This is not correct, the non partitioned data should only go to the default database.
Comment 1 Tom Ware CLA 2011-04-06 08:31:03 EDT
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 2 James Sutherland CLA 2011-04-13 09:51:31 EDT
See, https://bugs.eclipse.org/bugs/show_bug.cgi?id=341153 for diff
Comment 3 James Sutherland CLA 2011-05-03 13:12:48 EDT
Created attachment 194614 [details]
add persist partitioning, and partitioning example
Comment 4 James Sutherland CLA 2011-05-03 14:07:03 EDT
Added support for persist to allow assigning the partition for exclusive connections.

SVN trunk commit: Bug#340860 - partition persist call

https://bugs.eclipse.org/bugs/show_bug.cgi?id=340860

Code review: Andrei (pending)

Changes:
- Added persist callback to partitioning policies to allow policy to assign exclusive connection based on object being persisted.
- Removed some dead code.
- Added test for partitioning persist with an exclusive connection.
- Added partitioning example.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:24:43 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink