Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-16178

Cache hashCode for DefaultConsistentHash

XMLWordPrintable

      Every Hot Rod response from a clustered cache executes the hashCode for the DefaultConsistentHash to identify changes in the topology and notify the client [1].

      Since the consistent hash is immutable until a topology change, we can calculate the hashCode only once.

      [1] https://github.com/infinispan/infinispan/blob/d381c04aca064aa3940b61b8d0614cc437ebcf9e/server/hotrod/src/main/java/org/infinispan/server/hotrod/Encoder2x.java#L693

            rh-ee-jbolina Jose Bolina
            rh-ee-jbolina Jose Bolina
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: