Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4743

Parent use consistent_hash Strategy may cause crash while first parent is not set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.0.0
    • None
    • None

    Description

      my parent.config
      eg :
      dest_domain=. secondary_parent="192.168.104.229:80|1.0; 192.168.104.182:80|1.0" round_robin=consistent_hash
      the crash place is :
      DEBUG: <ParentConsistentHash.cc:167 (selectParent)> (parent_select) wrap_around[PRIMARY]: 1, wrap_around[SECONDARY]: 0
      traffic_server: Segmentation fault (Address not mapped to object [0x10])

      ParentConsistentHash.cc:167 code:
      Debug("parent_select", "Selected parent %s is not available, looking up another parent.", pRec->hostname);

      Fix the code like
      Debug("parent_select", "Selected parent %s is not available, looking up another parent.", pRec ? pRec->hostname:"[NULL]");

      Attachments

        Activity

          People

            jrushford John Rushford
            keith2008 xiangdong chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m