Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2019

ArithmeticException encountered when the cluster doesn't have any partitions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      When the cluster doesn't have any partitions it is still in the ACTIVE state!! and when it receives a request, the following exception is encountered:

      2017-07-31T02:49:28.801-07:00 INFO CBAS.translator.QueryTranslator [QueryTranslator] / by zero
      java.lang.ArithmeticException: / by zero
      	at org.apache.hyracks.algebricks.core.jobgen.impl.JobBuilder.<init>(JobBuilder.java:87) ~[algebricks-core-0.3.2-SNAPSHOT.jar:0.3.2-SNAPSHOT]
      	at org.apache.hyracks.algebricks.core.jobgen.impl.PlanCompiler.compilePlan(PlanCompiler.java:58) ~[algebricks-core-0.3.2-SNAPSHOT.jar:0.3.2-SNAPSHOT]
      	at org.apache.hyracks.algebricks.compiler.api.HeuristicCompilerFactoryBuilder$1$1.createJob(HeuristicCompilerFactoryBuilder.java:107) ~[algebricks-compiler-0.3.2-SNAPSHOT.jar:0.3.2-SNAPSHOT]
      	at org.apache.asterix.api.common.APIFramework.compileQuery(APIFramework.java:333) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.rewriteCompileQuery(QueryTranslator.java:1834) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.lambda$handleQuery$1(QueryTranslator.java:2307) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.createAndRunJob(QueryTranslator.java:2407) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.deliverResult(QueryTranslator.java:2347) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.handleQuery(QueryTranslator.java:2319) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.compileAndExecute(QueryTranslator.java:370) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.message.ExecuteStatementRequestMessage.lambda$handle$0(ExecuteStatementRequestMessage.java:127) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
      	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
      2017-07-31T02:49:28.802-07:00 ERRO CBAS.apache.asterix [QueryTranslator] Unexpected exception
      java.lang.ArithmeticException: / by zero
      	at org.apache.hyracks.algebricks.core.jobgen.impl.JobBuilder.<init>(JobBuilder.java:87) ~[algebricks-core-0.3.2-SNAPSHOT.jar:0.3.2-SNAPSHOT]
      	at org.apache.hyracks.algebricks.core.jobgen.impl.PlanCompiler.compilePlan(PlanCompiler.java:58) ~[algebricks-core-0.3.2-SNAPSHOT.jar:0.3.2-SNAPSHOT]
      	at org.apache.hyracks.algebricks.compiler.api.HeuristicCompilerFactoryBuilder$1$1.createJob(HeuristicCompilerFactoryBuilder.java:107) ~[algebricks-compiler-0.3.2-SNAPSHOT.jar:0.3.2-SNAPSHOT]
      	at org.apache.asterix.api.common.APIFramework.compileQuery(APIFramework.java:333) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.rewriteCompileQuery(QueryTranslator.java:1834) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.lambda$handleQuery$1(QueryTranslator.java:2307) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.createAndRunJob(QueryTranslator.java:2407) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.deliverResult(QueryTranslator.java:2347) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.handleQuery(QueryTranslator.java:2319) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.translator.QueryTranslator.compileAndExecute(QueryTranslator.java:370) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.message.ExecuteStatementRequestMessage.lambda$handle$0(ExecuteStatementRequestMessage.java:127) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
      	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
      2017-07-31T02:49:28.802-07:00 WARN CBAS.message.ExecuteStatementRequestMessage [QueryTranslator] java.lang.NullPointerException
      java.lang.NullPointerException: null
      	at org.apache.asterix.messaging.CCMessageBroker.sendApplicationMessageToNC(CCMessageBroker.java:72) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at org.apache.asterix.app.message.ExecuteStatementRequestMessage.lambda$handle$0(ExecuteStatementRequestMessage.java:144) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
      	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
      

      Attachments

        Activity

          People

            mhubail Murtadha Makki Al Hubail
            mhubail Murtadha Makki Al Hubail
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: