asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murtadha Hubail (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ASTERIXDB-2019) ArithmeticException encountered when the cluster doesn't have any partitions
Date Fri, 04 Aug 2017 12:09:00 GMT
Murtadha Hubail created ASTERIXDB-2019:
------------------------------------------

             Summary: ArithmeticException encountered when the cluster doesn't have any partitions
                 Key: ASTERIXDB-2019
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2019
             Project: Apache AsterixDB
          Issue Type: Bug
            Reporter: Murtadha Hubail
            Assignee: Murtadha Hubail


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:


{code:java}
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]
{code}






--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message