You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2013/03/08 19:16:12 UTC

[jira] [Commented] (TS-1743) traffic_logstats is completely broken

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

Leif Hedstrom commented on TS-1743:
-----------------------------------

Doing some quick analysis, with help from amc, I'm pretty sure the issue is that C++11 STL does not know shit, and considers the char* string hash key as a pointer, so the hash key changes for every domain even though it's the same string. Yay for STL.
                
> traffic_logstats is completely broken
> -------------------------------------
>
>                 Key: TS-1743
>                 URL: https://issues.apache.org/jira/browse/TS-1743
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Logging
>            Reporter: Leif Hedstrom
>             Fix For: 3.3.1
>
>
> When running traffic_logstats on trunk, it does not aggregate properly per origin. Instead it reports e.g.
> {code}
>                                Traffic summary
> Origin Server                               Hits         Misses         Errors
> ------------------------------------------------------------------------------
> www.yahoo.com                                  0              2              0
> www.ogre.com                                   0              2              0
> www.ogre.com                                   0              1              0
> www.ogre.com                                   0              1              0
> www.cisco.com                                  0              1              0
> www.cisco.com                                  0              1              0
> www.ogre.com                                   0              1              0
> www.ogre.com                                   0              1              0
> www.ogre.com                                   0              1              0
> www.yahoo.com                                  0              1              0
> www.yahoo.com                                  0              1              0
> www.google.com                                 0              1              0
> www.ogre.com                                   0              1              0
> www.ogre.com                                   0              1              0
> www.ogre.com                                   0              1              0
> www.ogre.com                                   0              1              0
> www.yahoo.com                                  0              1              0
> {code}
> Note how the same domain is repeated more than once (it should only show up once each).

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