GitHub user keith2008 opened a pull request:

    https://github.com/apache/trafficserver/pull/873

    fix 5 bugs about parent strategy

    Fix the following bugs:
    (TS-4743) parent use consistent_hash Strategy may cause crash while first 
parent is not set
    (TS-4744) ParentConsistentHash::selectParent may select the unavailable 
parent
    (TS-4745) pRecord.failCount not init inParentRecord::ProcessParents
    (TS-4746) ParentRecord *secondary_parents malloc, but no place free,which 
will cause memery leak
    (TS-4747) if the connection of parent is notalive, not make the parent host 
down,which will select the the unavailablehost again

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/keith2008/trafficserver master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/873.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #873
    
----
commit 977dff9849462ee6dfcbe51de89d38f47837fff8
Author: keith2008 <[email protected]>
Date:   2016-08-18T06:37:06Z

    Update ParentSelection.cc

commit 7ac6299ecb9b8365a5de5d6620a302c3df07909a
Author: keith2008 <[email protected]>
Date:   2016-08-18T06:42:05Z

    Update HttpTransact.cc
    
    (TS-4747) if the connection of parent is notalive, not make the parent host 
down,which will select the the unavailablehost again

commit 473ed61b89c764be909a91c79dc0c84333bc75aa
Author: keith2008 <[email protected]>
Date:   2016-08-18T06:46:02Z

    Update ParentConsistentHash.cc
    
    (TS-4744) ParentConsistentHash::selectParent mayselect the unavailable 
parent

commit cb1c56debd53287a54f52410193cd35bcf0f7c53
Author: keith2008 <[email protected]>
Date:   2016-08-18T06:56:21Z

    Update ParentSelection.cc
    
    (TS-4746) ParentRecord *secondary_parentsmalloc,but no place free,which 
will cause memery leak

commit 8fcfc0a060e42995318e9c0c7abac7981446eb46
Author: keith2008 <[email protected]>
Date:   2016-08-18T07:31:44Z

    Update ParentConsistentHash.cc

commit ef555fe77fc13bd613e83809b43b7cb5a5caa8fe
Author: keith2008 <[email protected]>
Date:   2016-08-18T07:35:59Z

    Update ParentSelection.cc

commit d8eee07022d50588d92f3faf252493b478810bb8
Author: keith2008 <[email protected]>
Date:   2016-08-18T07:49:45Z

    Update ParentConsistentHash.cc
    
    (TS-4743) parent use consistent_hash Strategy may cause crash while first 
parent is not set

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to