You aren't updating the 2nd level cache, that means that: a) you aren't flushing b) you are running in a DTC c) you are using <cache usage=""/> differently in the tests / real code. d) you need to debug.
On Tue, May 25, 2010 at 9:47 PM, ondesertverge <[email protected]>wrote: > I'm glad someone is laughing here :( ... > I admit my understanding of NH is quite superficial but isn't the > flush mode relevant only within a single session. > The data is being persisted it's the second level cache that isn't > being updated. > You did say "things LIKE flush mode" though, any other thoughts? > > On May 25, 9:21 pm, Ayende Rahien <[email protected]> wrote: > > LOL > > Check things like flush mode > > > > On Tue, May 25, 2010 at 9:18 PM, ondesertverge <[email protected] > >wrote: > > > > > > > > > Well, yes and no. > > > I wrote the test but it DOES pass. I switched to HashtableCache on my > > > project for testing and I still get the same results. This is very > > > strange since my code is very straightforward almost exactly like that > > > in the RS tests ... > > > > > On May 25, 7:20 pm, Ayende Rahien <[email protected]> wrote: > > > > Can you create a failing test? > > > > > > On Tue, May 25, 2010 at 5:35 PM, ondesertverge < > [email protected] > > > >wrote: > > > > > > > I thought this might be a dirty workaround > > > > > > > NHibernateSession.GetDefaultSessionFactory().EvictQueries("rhino- > > > > > security"); > > > > > > > but not. > > > > > > > Any ideas? Or should I being looking for issues with SysCache2? > > > > > > > On May 25, 3:29 pm, Ayende Rahien <[email protected]> wrote: > > > > > > Looks like a bug then, it shouldn't do that. > > > > > > > > On Tue, May 25, 2010 at 3:25 PM, ondesertverge < > > > [email protected] > > > > > >wrote: > > > > > > > > > Yes, and calling GetAssociatedUsersGroupFor on a separate web > > > request > > > > > > > (with a transaction and all) still gives stale data (until the > > > cache > > > > > > > entry expires). > > > > > > > > > On May 25, 2:54 pm, Ayende Rahien <[email protected]> wrote: > > > > > > > > Did you commit the transaction? > > > > > > > > > > On Tue, May 25, 2010 at 2:34 PM, ondesertverge < > > > > > [email protected] > > > > > > > >wrote: > > > > > > > > > > > Hi All, > > > > > > > > > > > I'm having the following issue with RS with second level > cache > > > > > > > > > enabled: > > > > > > > > > > > Executing GetAssociatedUsersGroupFor directly after > executing > > > > > > > > > AssociateUserWith returns the cached associations. > > > > > AssociateUserWith > > > > > > > > > doesn't seem to be invalidating the cache for the > > > UserToUsersGroups > > > > > > > > > table. > > > > > > > > > > > I am using SysCache2 from Nhibernate.Contrib. > > > > > > > > > > > Is the solution for this in a config setting I'm missing or > do > > > have > > > > > to > > > > > > > > > make a change to RS code? > > > > > > > > > > > Thanks, > > > > > > > > > David > > > > > > > > > > > -- > > > > > > > > > You received this message because you are subscribed to the > > > Google > > > > > > > Groups > > > > > > > > > "Rhino Tools Dev" group. > > > > > > > > > To post to this group, send email to > > > > > [email protected]. > > > > > > > > > To unsubscribe from this group, send email to > > > > > > > > > [email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > > > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > > > > > > > > > . > > > > > > > > > For more options, visit this group at > > > > > > > > >http://groups.google.com/group/rhino-tools-dev?hl=en. > > > > > > > > > > -- > > > > > > > > You received this message because you are subscribed to the > > > Google > > > > > Groups > > > > > > > "Rhino Tools Dev" group. > > > > > > > > To post to this group, send email to > > > > > [email protected]. > > > > > > > > To unsubscribe from this group, send email to > > > > > > > [email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > > > > > > > . > > > > > > > > For more options, visit this group athttp:// > > > > > > > groups.google.com/group/rhino-tools-dev?hl=en. > > > > > > > > > -- > > > > > > > You received this message because you are subscribed to the > Google > > > > > Groups > > > > > > > "Rhino Tools Dev" group. > > > > > > > To post to this group, send email to > > > [email protected]. > > > > > > > To unsubscribe from this group, send email to > > > > > > > [email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > > > > > > > . > > > > > > > For more options, visit this group at > > > > > > >http://groups.google.com/group/rhino-tools-dev?hl=en. > > > > > > > > -- > > > > > > You received this message because you are subscribed to the > Google > > > Groups > > > > > "Rhino Tools Dev" group. > > > > > > To post to this group, send email to > > > [email protected]. > > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > > > > > . > > > > > > For more options, visit this group athttp:// > > > > > groups.google.com/group/rhino-tools-dev?hl=en. > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "Rhino Tools Dev" group. > > > > > To post to this group, send email to > [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/rhino-tools-dev?hl=en. > > > > > > -- > > > > You received this message because you are subscribed to the Google > Groups > > > "Rhino Tools Dev" group. > > > > To post to this group, send email to > [email protected]. > > > > To unsubscribe from this group, send email to > > > [email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > . > > > > For more options, visit this group athttp:// > > > groups.google.com/group/rhino-tools-dev?hl=en. > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Rhino Tools Dev" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<rhino-tools-dev%[email protected]> > <rhino-tools-dev%[email protected]<rhino-tools-dev%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/rhino-tools-dev?hl=en. > > > > -- > > You received this message because you are subscribed to the Google Groups > "Rhino Tools Dev" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > [email protected]<rhino-tools-dev%[email protected]> > . > > For more options, visit this group athttp:// > groups.google.com/group/rhino-tools-dev?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Rhino Tools Dev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rhino-tools-dev%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rhino-tools-dev?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en.
