Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-88210

The Abseil hash function fails to guarantee consistent hash values in the case of dynamic linking

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • ALL

      According to Abseil's documentation, the hash function cannot ensure consistent hash values in the case of dynamic linking:

      https://github.com/abseil/abseil-cpp/blob/master/absl/hash/hash.h#L43-L46

      // `absl::Hash` may also produce different values from different dynamically
      // loaded libraries. For this reason, `absl::Hash` values must never cross
      // boundaries in dynamically loaded libraries (including when used in types like
      // hash containers.)
      

      Even though we don't use dynamic linking for production builds we use it on some evergreen workflows.

      We need to understand if this is really a problem for us.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            alexander.ignatyev@mongodb.com Alexander Ignatyev
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: