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

Seeing a lot of "Error Closing query" when server restarts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • operations, server
    • None

    Description

      In our production setup, seeing a lot of "Error closing query" logs.

      Here is a snippet :

      21 May 2015 06:05:51,518 [main] INFO  org.glassfish.jersey.server.ApplicationHandler  - Initiating Jersey application, version Jersey: 2.3.1 2013-09-27 07:50:09...
      21 May 2015 06:05:51,546 [QueryPurger] INFO  org.apache.lens.server.query.QueryExecutionServiceImpl  - Purging: ff5a8c52-a5e9-4799-a570-46aa9070e4db
      21 May 2015 06:05:51,547 [QueryPurger] INFO  org.apache.lens.server.query.QueryExecutionServiceImpl  - Query purged: ff5a8c52-a5e9-4799-a570-46aa9070e4db
      21 May 2015 06:05:51,547 [QueryPurger] INFO  org.apache.lens.driver.hive.HiveDriver  - FetchResultSet: 2d1e18b9-6c39-4004-ad53-861a71acd9b9
      21 May 2015 06:05:51,547 [QueryPurger] ERROR org.apache.lens.server.query.QueryExecutionServiceImpl  - Error closing  query
      org.apache.lens.api.LensException: Query not found 2d1e18b9-6c39-4004-ad53-861a71acd9b9
              at org.apache.lens.driver.hive.HiveDriver.getHiveHandle(HiveDriver.java:909)
              at org.apache.lens.driver.hive.HiveDriver.createResultSet(HiveDriver.java:799)
              at org.apache.lens.driver.hive.HiveDriver.fetchResultSet(HiveDriver.java:657)
              at org.apache.lens.server.query.QueryExecutionServiceImpl.getResultset(QueryExecutionServiceImpl.java:1272)
              at org.apache.lens.server.query.QueryExecutionServiceImpl.access$2000(QueryExecutionServiceImpl.java:80)
              at org.apache.lens.server.query.QueryExecutionServiceImpl$QueryPurger.run(QueryExecutionServiceImpl.java:784)
              at java.lang.Thread.run(Thread.java:745)
      21 May 2015 06:05:51,547 [QueryPurger] ERROR org.apache.lens.server.query.QueryExecutionServiceImpl  - Error closing  query
      org.apache.lens.api.LensException: Query not found:3ee7fc59-fcf6-406e-b057-dba8669aefc3
              at org.apache.lens.driver.jdbc.JDBCDriver.getQueryContext(JDBCDriver.java:490)
              at org.apache.lens.driver.jdbc.JDBCDriver.fetchResultSet(JDBCDriver.java:949)
              at org.apache.lens.server.query.QueryExecutionServiceImpl.getResultset(QueryExecutionServiceImpl.java:1272)
              at org.apache.lens.server.query.QueryExecutionServiceImpl.access$2000(QueryExecutionServiceImpl.java:80)
              at org.apache.lens.server.query.QueryExecutionServiceImpl$QueryPurger.run(QueryExecutionServiceImpl.java:784)
              at java.lang.Thread.run(Thread.java:745)
      21 May 2015 06:05:51,547 [QueryPurger] INFO  org.apache.lens.driver.hive.HiveDriver  - FetchResultSet: bad8bf40-4d9f-4f4e-8233-c9e21fdfd405
      21 May 2015 06:05:51,547 [QueryPurger] ERROR org.apache.lens.server.query.QueryExecutionServiceImpl  - Error closing  query
      org.apache.lens.api.LensException: Query not found bad8bf40-4d9f-4f4e-8233-c9e21fdfd405
              at org.apache.lens.driver.hive.HiveDriver.getHiveHandle(HiveDriver.java:909)
              at org.apache.lens.driver.hive.HiveDriver.createResultSet(HiveDriver.java:799)
              at org.apache.lens.driver.hive.HiveDriver.fetchResultSet(HiveDriver.java:657)
              at org.apache.lens.server.query.QueryExecutionServiceImpl.getResultset(QueryExecutionServiceImpl.java:1272)
              at org.apache.lens.server.query.QueryExecutionServiceImpl.access$2000(QueryExecutionServiceImpl.java:80)
              at org.apache.lens.server.query.QueryExecutionServiceImpl$QueryPurger.run(QueryExecutionServiceImpl.java:784)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            amareshwari Amareshwari Sriramadasu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: