Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340860 - partitioning replicates when partitioned data combined with non-partitioned data
Summary: partitioning replicates when partitioned data combined with non-partitioned data
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-24 10:12 EDT by James Sutherland CLA
Modified: 2022-06-09 10:24 EDT (History)
1 user (show)

See Also:


Attachments
add persist partitioning, and partitioning example (20.10 KB, patch)
2011-05-03 13:12 EDT, James Sutherland CLA
no flags Details | Diff

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