Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-576

Cannot retrieve query results on lens server restart

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None

      Description

      In the event of lens server restart, We can not obtain the query result by calling "/queryuiapi/queries/

      {queryHandle}

      /httpresultset" API as LensPersistentResult does not get created. This is because QueryOutputFormatter variable in QueryContext object is always null.This QueryOutputFormatter is important to create LensPersistedResultSet (see getResultset() method in QueryExecutionServiceImpl class) .

      Reason : One can see that QueryOutputFormatter variable in QueryContext class is not serialized. Therefore, on server restart, this variable is always null in QueryContext for all queries.

        Attachments

        1. LENS-576.3.patch
          21 kB
          Deepak Barr

          Activity

            People

            • Assignee:
              deepak.barr Deepak Barr
              Reporter:
              deepak.barr Deepak Barr
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: