Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18920

CBO: Initialize the Janino providers ahead of 1st query

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Component/s: CBO
    • Labels:
      None

      Description

      Hive Calcite metadata providers are compiled when the 1st query comes in.

      If a second query arrives before the 1st one has built a metadata provider, it will also try to do the same thing, because the cache is not populated yet.

      With 1024 concurrent users, it takes 6 minutes for the 1st query to finish fighting all the other queries which are trying to load that cache.

        Attachments

        1. HIVE-18920.01.patch
          72 kB
          Jesus Camacho Rodriguez
        2. HIVE-18920.02.patch
          15 kB
          Jesus Camacho Rodriguez
        3. HIVE-18920.patch
          72 kB
          Jesus Camacho Rodriguez

          Issue Links

            Activity

              People

              • Assignee:
                jcamachorodriguez Jesus Camacho Rodriguez
                Reporter:
                gopalv Gopal Vijayaraghavan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: