tracker issue : CF-4126554

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: QoQ breaks on cached query

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 03/09/2016

Components: Caching, General

Versions: 2016

Failure Type:

Found In Build/Fixed In Build: Alpha_v12 /

Priority/Frequency: Critical / Most users will encounter

Locale/System: English / Win All

Vote Count: 1

Related Bugs:
CF-4073814 - Similar to


QoQ breaks on cached query

Repro:

<cfscript>
  q1 = queryExecute("SELECT artID FROM art WHERE artID = 1", [], {datasource="cfartgallery", cachedwithin=createTimeSpan(0,0,1,0)});//cachedwithin breaks future QoQ
  q2 = queryExecute("SELECT * FROM q1", [], {dbtype="query"});
  writeDump(var=[q2.getResult(), q2.RecordCount], format="text");
  /*
  Returns:
  ----------------------
  array
  
  1) [struct]
	  CACHED: false
	  EXECUTIONTIME: 0
	  RECORDCOUNT: 0
	  SQL: SELECT * FROM q1 
  2) 0 (bug: should be 1)
  ----------------------  */
  
  q3 = queryNew("myCol", "", [["a"]]);
  q4 = queryExecute("SELECT myCol FROM q3", [], {dbtype="query", cachedwithin=createTimeSpan(0,0,1,0)});//cachedwithin breaks future QoQ
  writeDump(var=[q4.getResult(), q4.RecordCount], format="text");
  q5 = queryExecute("SELECT myCol FROM q4", [], {dbtype="query"});
  writeDump(var=[q5.getResult(), q5.RecordCount],format="text");
  /*
  Returns:
  ----------------------
  array
  
  1) [undefined array element] (bug: should be result struct)
  2) 1 
  
  array
  
  1) [struct]
	  CACHED: false
	  EXECUTIONTIME: 0
	  RECORDCOUNT: 0
	  SQL: SELECT myCol FROM q4 
  2) 0 (bug: should be 1)
  ----------------------
  */
</cfscript>

Workaround: Don't use cached queries.

Please provide fix ASAP via CF Admin's update mechanism so that I can test Raijin on more servers.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4126554

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email: adobelabs@itisdesign.com
External Test Config:

Attachments:

Comments:

+1 Form Errors: Vote comment is required and must be at least 25 characters in length.
Vote by External U.
3754 | March 09, 2016 02:35:38 AM GMT
Added By: PreRelease User User Name:Aaron Neff Note Added: I've verified this is fixed in Beta 1. Awesome. Thanks very much! -Aaron Date Added :2015-12-07 18:01:15.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Thanks! -Aaron Date Added :2015-11-01 20:29:50.0 Added By:aksriniv Note Added: This fix will be made available in next Raijin release. Thanks. Date Added :2015-11-01 15:05:07.0 Added By:aksriniv Note Added: With version 3 of Raijin Alpha, I am able to repro the issue. Hence changing the status of bug to "toFix". Date Added :2015-10-21 07:05:23.0 Added By:aksriniv Note Added: With version 3 of Raijin Alpha, I am able to repro the issue. Hence changing the status of bug to "toFix". Date Added :2015-10-21 06:47:33.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Adobe, please see my post here: https://prerelease.adobe.com/project/forum/thread.html?cap=05d198f3b43f49ee950a8643486df6d4&forid={b099abd7-4284-4489-b8e2-839e0567f308}&topid={b98ae20a-cd7e-401d-8793-9f7f75cdf33c}&tp=2&prr=0&a=added_r Date Added :2015-10-21 05:54:21.0 Added By: PreRelease User User Name:Aaron Neff Note Added: I'm able to repro this w/ default install of Raijin Alpha 2 on Windows 2008 R2 and Windows 10. Issue did not exist in Alpha 1. I'm not sure what other details would be helpful. Date Added :2015-10-21 05:18:28.0 Added By:vmannebo Note Added: We made the earlier comment visible to PR. Here is what was asked by Akhila: "Was unable to repro the case. Please provide few more case details, if possible. " Date Added :2015-10-21 02:27:47.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Adobe, I received an email saying more information is needed. I see the ticket’s status is "Open/To Track/Need More Information". What information do you need? I see no comment on the ticket asking for more information. If you need more information, please ask here: https://prerelease.adobe.com/project/forum/post.html?cap=05D198F3B43F49EE950A8643486DF6D4&forid={B099ABD7-4284-4489-B8E2-839E0567F308}&topid={B98AE20A-CD7E-401D-8793-9F7F75CDF33C}&repid={FED503FA-001B-4F7E-87F2-9654B3B8A0EC}&tp=1 B/c any discussion in the PR tracker is like talking to a brick wall. Thanks!, -Aaron Date Added :2015-10-20 20:35:24.0 Added By:aksriniv Note Added: Was unable to repro the case. Please provide few more case details, if possible. Date Added :2015-10-20 15:30:28.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Entered Bug. Date Added :2015-10-16 12:36:12.0
Comment by CFwatson U.
3753 | March 09, 2016 02:35:39 AM GMT