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

queries failing with Stack Overflow exception

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 2.0
    • None
    • None

    Description

      if a query spans over a lot of partitions, all the partitions individually get added to the where clause
      if the where clause becomes too long
      the query submitter fails with java.lang.StackOverflowError

      Error:-

      [QuerySubmitter] ERROR org.apache.lens.server.query.QueryExecutionServiceImpl  - Error launching query dc790a06-b8c3-4c4f-947b-3d54f8ac0e60
      org.apache.lens.api.LensException: Error executing async query
      	at org.apache.lens.driver.hive.HiveDriver.executeAsync(HiveDriver.java:437)
      	at org.apache.lens.server.query.QueryExecutionServiceImpl$QuerySubmitter.run(QueryExecutionServiceImpl.java:416)
      	at java.lang.Thread.run(Thread.java:701)
      Caused by: org.apache.hive.service.cli.HiveSQLException: java.lang.StackOverflowError
      	at org.apache.hive.service.cli.thrift.ThriftCLIServiceClient.checkStatus(ThriftCLIServiceClient.java:52)
      	at org.apache.hive.service.cli.thrift.ThriftCLIServiceClient.executeStatementInternal(ThriftCLIServiceClient.java:151)
      	at org.apache.hive.service.cli.thrift.ThriftCLIServiceClient.executeStatementAsync(ThriftCLIServiceClient.java:139)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:622)
      	at org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient.invokeInternal(RetryingThriftCLIServiceClient.java:301)
      	at org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient.invoke(RetryingThriftCLIServiceClient.java:329)
      	at com.sun.proxy.$Proxy52.executeStatementAsync(Unknown Source)
      	at org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient$CLIServiceClientWrapper.executeStatementAsync(RetryingThriftCLIServiceClient.java:118)
      	at org.apache.lens.driver.hive.HiveDriver.executeAsync(HiveDriver.java:428)
      	... 2 more
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              raghavendra.singh Raghavendra Singh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: