Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5169

Query logger is still initialized for each query when the log level is off

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.0
    • 5.1.0, 4.14.2, 5.0.1
    • None
    • None

    Description

      we will still invoke createQueryLogger in PhoenixStatement for each query when query logger level is OFF, which has significant throughput impacts under multiple threads.

      The below is jstack with the concurrent query:

       

      Attachments

        1. image-2019-02-28-10-05-00-518.png
          288 kB
          Jaanai Zhang
        2. PHOENIX-5169-master.patch
          7 kB
          Jaanai Zhang
        3. PHOENIX-5169-master-v2.patch
          8 kB
          Jaanai Zhang
        4. PHOENIX-5169-master-v3.patch
          6 kB
          Jaanai Zhang
        5. PHOENIX-5169-master-v4.patch
          4 kB
          Jaanai Zhang

        Activity

          People

            jaanai Jaanai Zhang
            jaanai Jaanai Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: