[Mondrian] Member Cache flush

Matt Campbell mcampbell at pentaho.com
Tue Sep 8 14:56:47 EDT 2015


That’s surprising.  The change for 2366 (https://github.com/YuryBY/mondrian/commit/64f142362450aabb9791f98ce7d5bd3e24a62f80) flushes out the native set cache, but there was nothing changed about segment cache flushing.

What are you seeing that shows segments from other cubes getting flushed?

From: mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org] On Behalf Of Hilario Fernandes
Sent: Tuesday, September 08, 2015 2:48 PM
To: Mondrian mailing list <mondrian at pentaho.org>
Subject: [Mondrian] Member Cache flush


I was trying out the fix made with issue http://jira.pentaho.com/browse/MONDRIAN-2366 and found myself with a new problem... For some reason when i execute the code in the issue to clear the member cache for a specific cube, all the segments from other cubes get removed.

this is the code:

RolapCube cube = schema.lookupCube(cubeName, false)
CacheControl cacheControl = con.getCacheControl(null)

cube.hierarchies.each{ RolapHierarchy hierarchy ->
     if(hierarchy.hasAll()) {
           cacheControl.flush(cacheControl.createMemberSet(hierarchy.getAllMember(), true))
     }
}


Any idea why this happens?

--
Hilario Fernandes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20150908/93702c93/attachment.html 


More information about the Mondrian mailing list