[
https://jira.jboss.org/browse/TEIID-1336?page=com.atlassian.jira.plugin.s...
]
Ramesh Reddy resolved TEIID-1336.
---------------------------------
Resolution: Done
Fixed the code to not hit the cache when user did not turn on caching or did not provide a
cache hint. This way the total requests will correctly counted. Before, it was counting
the total requests whether user turned on caching or not.
Also, resetting the TotalRequests and cacheHitRatio, if the contents of the cache are
cleared.
EDS adminshell - clearCache() having no effect
----------------------------------------------
Key: TEIID-1336
URL:
https://jira.jboss.org/browse/TEIID-1336
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 7.1.1
Environment: SOA-P 5.1 ER3 build
Reporter: Len DiMaggio
Assignee: Ramesh Reddy
Fix For: 7.1.1
clearCache() doesn't look like it's doing anything - see below:
groovy:000> connectAsAdmin("mms://localhost:31443", "admin",
"admin", "conn-1")
===> null
groovy:000> getCacheStats("QUERY_SERVICE_RESULT_SET_CACHE")
===> hitRatio=0.0; totalEntries=0; requestCount=3
groovy:000> clearCache("QUERY_SERVICE_RESULT_SET_CACHE")
===> null
groovy:000> getCacheStats("QUERY_SERVICE_RESULT_SET_CACHE")
===> hitRatio=0.0; totalEntries=0; requestCount=3
===================
server.log:
2010-10-29 12:13:07,065 DEBUG [org.teiid.TRANSPORT] (New I/O server worker #2-1)
processing message:MessageHolder:
contents=org.teiid.net.socket.ServiceInvocationStruct@18cf5ea
2010-10-29 12:13:07,065 DEBUG [org.teiid.SECURITY] (New I/O server worker #2-1) Ping
MLwHWKFcHgcq
2010-10-29 12:13:07,065 DEBUG [org.teiid.TRANSPORT] (New I/O server worker #2-1)
message: MessageHolder: contents=null for request ID:38
2010-10-29 12:13:07,067 DEBUG [org.teiid.TRANSPORT] (New I/O server worker #2-1)
processing message:MessageHolder:
contents=org.teiid.net.socket.ServiceInvocationStruct@c171b7
2010-10-29 12:13:07,067 DEBUG [org.teiid.ADMIN_API] (New I/O server worker #2-1) before
clearCache:org.teiid.adminapi.jboss.Admin@1a42c71(QUERY_SERVICE_RESULT_SET_CACHE)
2010-10-29 12:13:07,067 DEBUG [org.teiid.ADMIN_API] (New I/O server worker #2-1) after
clearCache : null
2010-10-29 12:13:07,067 DEBUG [org.teiid.TRANSPORT] (New I/O server worker #2-1)
message: MessageHolder: contents=null for request ID:39
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira