Bug 780335 (SOA-2744)

Summary: Limit pushing can result in inconsistent xml results
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Steven Hawkins <shawkins>
Component: EDSAssignee: Steven Hawkins <shawkins>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.1.0.ER6   
Target Milestone: ---   
Target Release: 5.1.0.ER7   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2744
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-04 20:06:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Steven Hawkins 2011-01-05 17:13:59 UTC
Complexity: Low
Workaround: Workaround Exists
Workaround Description: For non-rowlimit/rowlimitexception, which are only for xml document models, affected unordered limit application can instead use an order by to force the limit to be applied at its given position.
project_key: SOA

A customer case (00393370) was using rowlimitexception and not actually triggering the exception when expected.   This is due to our logic in rulepushlimit that allows an unordered limit to be pushed through union not all, select nodes, or dup removal.  While the results may be consistent for some ordering of results there are many situations when you will get back far less results than the limit specifies.  The intent was to more broadly push the limit rather than to apply it in a fully consistent manner.  However this is problematic for situations, like the rowlimitexception logic that expect an exceptional condition to be triggered if the limit is exceeded.

The best fix would be to just not push an unordered limit in these situations, then if the more aggressive pushing is desired by a user we can look at using a hint or some other mechanism to allow the pushing.

Comment 1 Van Halbert 2011-01-05 17:14:00 UTC
Link: Added: This issue Cloned from TEIID-1422


Comment 2 Van Halbert 2011-01-05 17:14:41 UTC
Security: Added: Public


Comment 4 Steven Hawkins 2011-02-04 20:06:25 UTC
resolved in project