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

Phil Sorber commented on TS-2138:
---------------------------------

I can reproduce this behavior, but I don't think what I am seeing is actually 
an issue. If I kill traffic_server before it sync's the directory I get the 
described behavior. But if I wait long enough it behaves as expected. Can you 
confirm that the directory is getting sync'd before you kill traffic_server? 
You can use the (cache_dir_sync) debug tag.

{noformat}
[Aug 18 05:48:31.009] Server {0x7f0bb266b700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:31.009] Server {0x7f0bb266b700} DEBUG: (cache_dir_sync) Dir 
/dev/sdk 172032:109805547 not dirty
[Aug 18 05:48:31.009] Server {0x7f0bb266b700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:31.009] Server {0x7f0bb266b700} DEBUG: (cache_dir_sync) Dir 
/dev/sdo 172032:109805547 not dirty
[Aug 18 05:48:31.009] Server {0x7f0bb266b700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:31.009] Server {0x7f0bb266b700} DEBUG: (cache_dir_sync) Dir 
/dev/sde 172032:109805547: waiting for agg buffer
[Aug 18 05:48:31.009] Server {0x7f0ba68e8700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:31.009] Server {0x7f0ba68e8700} DEBUG: (cache_dir_sync) pos: 
137456640 Dir /dev/sde 172032:109805547 dirty...syncing to disk
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdh 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdi 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdr 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdd 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdp 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdu 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdl 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdq 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdn 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sds 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdt 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdj 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdm 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdg 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync 
started
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) Dir 
/dev/sdf 172032:109805547 not dirty
[Aug 18 05:48:48.558] Server {0x7f0bb2d72700} DEBUG: (cache_dir_sync) sync done
{noformat}

Once that happens then cached objects persist across restarts.
                
> when restart ats, all data will be lost,  miss return
> -----------------------------------------------------
>
>                 Key: TS-2138
>                 URL: https://issues.apache.org/jira/browse/TS-2138
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cache
>            Reporter: bettydramit
>         Attachments: ts-3.3.5-40.spec
>
>
> ENV: centos 6 x86_64 gitmaster and 
> http://people.apache.org/~zwoop/rel-candidates/trafficserver-3.3.5-dev.tar.bz2
> ./configure --enable-layout=Gentoo  --libdir=%{_libdir}/trafficserver 
> --enable-linux-native-aio --enable-reclaimable-freelist
>  
> when restart ats ,my all hit data will be lost.

--
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