[ 
https://issues.apache.org/jira/browse/TS-1963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13709920#comment-13709920
 ] 

Alan M. Carroll commented on TS-1963:
-------------------------------------

I checked the commit for TS-1339 (84fa7a, iocore/cache/I_CacheDefs.h) and the 
cache version was changed. I installed 3.2.5 with a cleared cache and ran it to 
get some TCP_HITS (objects in cache). I then installed trunk without clearing 
the cache and ran it without any problems. I checked the diags.log file and it 
contained the messages
{noformat}
[Jul 16 11:38:19.191] Server {0x2aaaabdb8700} NOTE: using directory A for 
'/opt/ats/var/trafficserver/cache.db 16384:253951'
[Jul 16 11:38:19.252] Server {0x2aaaabab5700} WARNING: bad footer in cache 
directory for '/opt/ats/var/trafficserver/cache.db 16384:253951', clearing
[Jul 16 11:38:19.252] Server {0x2aaaabab5700} NOTE: clearing cache directory 
'/opt/ats/var/trafficserver/cache.db 16384:253951'
[Jul 16 11:38:19.274] Server {0x2aaaabcb7700} NOTE: cache enabled
{noformat}
I did a query for one of the objects that had returned a TCP_HIT and got a 
TCP_MISS indicating the cache had been cleared.

                
> upgrade the version number for cache between 3.2.x and 3.4.x
> ------------------------------------------------------------
>
>                 Key: TS-1963
>                 URL: https://issues.apache.org/jira/browse/TS-1963
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cache
>    Affects Versions: 3.3.4
>            Reporter: Bryan Call
>            Assignee: Alan M. Carroll
>             Fix For: 3.3.5
>
>
> If you don't remove the cache between versions I have seen weird behavior on 
> trying to get locks for reading from cache:
> perf top output:
> {code}
> Samples: 379K of event 'cycles', Event count (approx.): 159277054084
>  20.54%  libpthread-2.12.so        [.] pthread_mutex_trylock
>  10.59%  traffic_server            [.] CacheVC::openReadStartHead(int, Event*)
>   5.49%  traffic_server            [.] 
> MutexTryLock::MutexTryLock(ProxyMutex*, EThread*)
>   3.39%  libtsutil.so.3            [.] ink_freelist_new
>   3.17%  traffic_server            [.] EThread::process_event(Event*, int)
>   3.06%  [kernel]                  [k] _spin_lock_bh
>   2.56%  libtsutil.so.3            [.] ink_freelist_free
>   1.48%  [kernel]                  [k] _spin_lock
>   1.46%  traffic_server            [.] EThread::execute()
>   1.44%  libpthread-2.12.so        [.] pthread_mutex_unlock
>   1.33%  [kernel]                  [k] copy_user_generic_string
>   1.22%  traffic_server            [.] Ptr<ProxyMutex>::operator=(ProxyMutex*)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to