Uploaded image for project: 'Hot Rod Native client'
  1. Hot Rod Native client
  2. HRCPP-73

TcpTransportFactory stores hash in shared_ptr

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 6.0.0.Final
    • None
    • None
    • None

    Description

      ConsistenHashFactory is implemented in such a way that on newConsistentHash(version) it returns preallocated instance of consistent hash.

      TcpTransportFactory stores this hash in shared_ptr. When updateHashFunction is called, the consistentHash is reset to the same instance which is illegal - the owned hash is destroyed and at this moment the ptr starts pointing to rubbish.

      Attachments

        Activity

          People

            vblagoje Vladimir Blagojevic (Inactive)
            rvansa1@redhat.com Radim Vansa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: