RE: Cached Tables and Injected Handler interaction with the timer

"Jared Smith (jarsmith)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CFD5563F4D72BC4C9ADE10C520FB9EFD04BF3393@xmb-sjc-239.amer.cisco.com>
Wes:

Thank you for the suggestions it isn't easy for me to update the version
of the library I'm using at the moment; however I did try what you
suggested where I walk the tables immediately after seeing the first
table get freed up. 

I found that the second table immediately gets freed up and reloaded
before my handler method is called.  So from what I can tell I am not
receiving stale data it is doing a just in time cache refresh before my
data is served up in this situation.

So I guess there really isn't a problem here just an inconsistency in
terms of when the free method is called; however it appears not to be a
real problem in terms of the end result.

Thanks, 

Jared 


-----Original Message-----
From: Wes Hardaker [mailto:[email protected]] 
Sent: Wednesday, September 09, 2009 3:35 PM
To: Jared Smith (jarsmith)
Cc: [email protected]
Subject: Re: Cached Tables and Injected Handler interaction with the
timer

>>>>> On Mon, 7 Sep 2009 10:21:25 -0700, "Jared Smith (jarsmith)"
<[email protected]> said:

You described well an interesting problem.

JS> If it makes a difference this is running on version 5.2.2 not sure
if
JS> this issue may have been improved in a newer version?

Is there any way you can test with something more recent just to see if
it has been addressed?

I'm not sure without diving into a lot of code (which I can't do as I
need to run out the door) what might be the cause of the problem.

Here's something else to try:
  1) walk both tables
  2) wait 60 seconds until you see the first free routine called.
  3) immediately walk the other table (or both) to see if that triggers
     it freeing/reloading immediately.

The goal is to make sure that the cache is never *used* when it's older
than 60 seconds, even if it's otherwise freeing slowly.
-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.