phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mujtaba Chohan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-2504) Exception while running query on transactional table
Date Thu, 10 Dec 2015 21:36:11 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15051690#comment-15051690
] 

Mujtaba Chohan commented on PHOENIX-2504:
-----------------------------------------

[~tdsilva] Looking more at it, the root cause was that transaction manager was down even though
tephra reports status as running on CLI. Transaction manager was not up as evident from Tephra
logs. I guess we need better way to bubble up this through Phoenix.

{code}
ERROR [nsactionServer-rpc-2] thrift.ProcessFunction - Internal error processing startShort
java.lang.IllegalStateException: Transaction Manager is not running.
	at com.google.common.base.Preconditions.checkState(Preconditions.java:149)
	at co.cask.tephra.TransactionManager.ensureAvailable(TransactionManager.java:707)
	at co.cask.tephra.TransactionManager.startTx(TransactionManager.java:766)
{code}


> Exception while running query on transactional table
> ----------------------------------------------------
>
>                 Key: PHOENIX-2504
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2504
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Mujtaba Chohan
>            Assignee: Thomas D'Silva
>
> Auto-commit was on and tephra status was running. On client while running any query:
> {code}
> java.lang.RuntimeException: java.lang.Exception: Thrift error for co.cask.tephra.distributed.TransactionServiceClient$2@44de0113:
Internal error processing startShort
> 	at com.google.common.base.Throwables.propagate(Throwables.java:160)
> 	at co.cask.tephra.distributed.TransactionServiceClient.startShort(TransactionServiceClient.java:269)
> 	at co.cask.tephra.TransactionContext.start(TransactionContext.java:89)
> 	at org.apache.phoenix.execute.MutationState.startTransaction(MutationState.java:310)
> 	at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:462)
> 	at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:404)
> 	at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:396)
> 	at org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:392)
> 	at org.apache.phoenix.compile.FromCompiler$BaseColumnResolver.createTableRef(FromCompiler.java:410)
> 	at org.apache.phoenix.compile.FromCompiler$SingleTableColumnResolver.<init>(FromCompiler.java:285)
> 	at org.apache.phoenix.compile.FromCompiler.getResolverForQuery(FromCompiler.java:186)
> 	at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:389)
> 	at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:370)
> 	at org.apache.phoenix.jdbc.PhoenixStatement$1.call(PhoenixStatement.java:263)
> 	at org.apache.phoenix.jdbc.PhoenixStatement$1.call(PhoenixStatement.java:258)
> 	at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
> 	at org.apache.phoenix.jdbc.PhoenixStatement.executeQuery(PhoenixStatement.java:257)
> 	at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1286)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message