[ https://issues.apache.org/jira/browse/TS-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Paul updated TS-21: -------------------------- Attachment: TS-21_stats_patch2.diff This an updated replacement patch for 'TS-21_stats_patch1.diff' . The patch also sets the records config update behavior type to requiring TS restart for the two new config variables. Also if if the 'snap_dir' does not exist a warning is printed to set the proper variable. patch -p0 -i TS-21_stats_patch2.diff Please review and let me know if there are any issues. cheers, -George > Stats: snap statistics directory not set correctly for stats file 'stats.snap' > ------------------------------------------------------------------------------ > > Key: TS-21 > URL: https://issues.apache.org/jira/browse/TS-21 > Project: Traffic Server > Issue Type: Bug > Components: Stats > Affects Versions: 2.0a > Environment: ubuntu 9.04 x86_64-bit w/ gcc 4.3.3 > Reporter: George Paul > Attachments: TS-21_stats_patch1.diff, TS-21_stats_patch2.diff > > > The statistics snap shot file 'stats.snap' is not being written out since the > default directory does not exist and is not created during the install. > Warnings are generated like the following: > [Nov 6 10:52:08.307] Server {3880728912} WARNING: unable to open stats.snap: > No such file or directory > [Nov 6 10:52:08.307] Server {3880728912} WARNING: unable to snap statistics > [Nov 6 10:53:08.303] Server {3880728912} WARNING: unable to open stats.snap: > No such file or directory > Currently the default directory is set '<prefix>/etc/<package>/internal'. A > better place would be 'pkglocalstatedir'. The proposed solution is to have 2 > Records Config variables 'proxy.config.stats.snap_dir' with default > 'pkglocalstatedir' and 'proxy.config.stats.snap_file' with default > 'stats.snap'. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.