You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
10.0.x: OpenReadHead failed for cachekey <key> : vector inconsistency #9821
I'm filing an issue for this because I do not see these messages in our 9.2.x instances but I do after upgrading to 10.0.x. As I understand it, there should be no cache compatibility issues with the cache when crossing from 9.x to 10.x.
The type change from uint32_t to time_t changes the type size from 32 bits to 64 bits on 64 bit systems. It makes sense that would change the stored doc structure.
I'm not sure what the right direction is here. Thinking about @masaori335 's change further, it is reasonable to avoid downcasting the time_t to uint32_t. Maybe we should just document that the cache is inconsistent in the upgrade from ATS 9 to ATS 10? Clearing the cache resolves the issue. I'll solicit feedback about this so we can figure out whether a cache inconsistency across the major versions is acceptible.
Let's revert the change made by #9556. I didn't noticed it breaks cache compatibility when I fixed the coverity issue. IMO, using uint32_t is enough for cache and cache compatibility is more important.
Activity
cheluskin commentedon Jun 12, 2023
The same problem. Clearing the cache doesn't fix it.
cmcfarlen commentedon Jun 12, 2023
The
-1return is likely coming fromHTTPInfo::get_handle(char *buf, int len)bneradt commentedon Oct 31, 2023
Bisecting commits on our prod system, I found the commit that introduces this vector inconsistency behavior:
#9556
bneradt commentedon Oct 31, 2023
@masaori335 : I wonder whether the issue comes from swapping the order of pinned element here:
https://github.com/apache/trafficserver/pull/9556/files#diff-16cd59c47246f90109883f36526055d937b92630ed6e0cdba4664f2328bf1909L301
Do you recall why we switched the order of those elements?
bneradt commentedon Oct 31, 2023
I tested with that order restored, and the box still has cache inconsistency issues. I suppose the issue is rather the change of the type.
bneradt commentedon Oct 31, 2023
The type change from uint32_t to time_t changes the type size from 32 bits to 64 bits on 64 bit systems. It makes sense that would change the stored doc structure.
bneradt commentedon Oct 31, 2023
I'm not sure what the right direction is here. Thinking about @masaori335 's change further, it is reasonable to avoid downcasting the time_t to uint32_t. Maybe we should just document that the cache is inconsistent in the upgrade from ATS 9 to ATS 10? Clearing the cache resolves the issue. I'll solicit feedback about this so we can figure out whether a cache inconsistency across the major versions is acceptible.
masaori335 commentedon Oct 31, 2023
Let's revert the change made by #9556. I didn't noticed it breaks cache compatibility when I fixed the coverity issue. IMO, using
uint32_tis enough for cache and cache compatibility is more important.Revert "coverity 1497413: Use of 32-bit time_t (#9556)" (#10697)