Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18513 Query results caching
  3. HIVE-19127

Concurrency fixes in QueryResultsCache

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      A few fixes around concurrent access in the results cache

      • Take a lock on the cache entry when in the process of setting the cache entry from PENDING state to VALID state, so that other threads cannot invalidate the entry
      • The write lock on the cache was not being taken when removing an entry from the cache.
      • synchronize access when iterating through the lru keyset

        Attachments

        1. HIVE-19127.2.patch
          6 kB
          Jason Dere
        2. HIVE-19127.1.patch
          6 kB
          Jason Dere

          Activity

            People

            • Assignee:
              jdere Jason Dere
              Reporter:
              jdere Jason Dere
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: