Closed gkc closed 1 year ago
Agree with the analysis and the suggestions.
A couple of thoughts:
*. ttr of -1 indicates two things
So if the value that is going to be cached may probably change(Including public keys) then we should consider a non -1 value or come up with a different mechanism to update the cache.
*. We should probably find ways to optimize the ttr job along the lines of:
*. Expose health of ttr job through stats verb
Thanks @VJag
Additionally as per our discussion, we will continue to cache public data whose ttr is null or 0 as we do now, but we will do so with a ttl of 24 hours so the cached copy will 'expire' after 24 hours.
Complete. PR requires review. Dropping SP to zero for next sprint
Describe the bug
A number of bugs have crept in to the system over time with regards to the 'ttr' metadata
publickey@alice
on another server, and the AtData (and its AtMetadata) is created from the response json, then the AtMetadata's ttr is zerocached:public:publickey@alice
, and we are also caching other things like 'firstname.wavi@colin' which has a null ttr on@colin
's atServer, and is cached on@garycasey
's atServer with a ttr of 0Expected behavior
So to restate
publickey@alice
, our various onboarding libraries are not setting ttr to -1publickey@atSign
entries , and explicitly set their ttr to -1 if sopublickey@atSign
as described above)Additional context
We need to think about side-effects of fixing all of this