| Summary: | Change caching default to ISOLATED for multitenant's using a shared EMF. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Guy Pelletier <guy.pelletier> | ||||||||
| Component: | Eclipselink | Assignee: | Guy Pelletier <guy.pelletier> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | eclipselink.orm-inbox, gordon.yorke | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| URL: | http://wiki.eclipse.org/EclipseLink/DesignDocs/Multi-Tenancy | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 357402 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Guy Pelletier
From the original bug as entered by James: "If we allow caching of tenant data as we currently are, then if I have a BankAccount of Id 1234 at BMO, then call find() for BankAccount 1234 for TD, we will get a cache hit for this, and return the TD user the BankAccount from BMO. As well, a query that uses a CacheUsage of CheckCacheOnly, or CheckCacheThenDatabase, will return data from other tenants. Also, and update-all, or delete-all query, or flush-clear will invalidate data from other tenants." Created attachment 203704 [details]
Proposed changes
Created attachment 203710 [details]
Updated patch
Created attachment 203795 [details]
Patch for trunk
Changes have been submitted. Verified by: Gordon Yorke, James Sutherland Tests: N/A existing multitenant tests continue to pass. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |