[
https://issues.apache.org/jira/browse/TEPHRA-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15456889#comment-15456889
]
Poorna Chandra commented on TEPHRA-153:
---------------------------------------
The status call hits the {{TransactionServiceThriftHandler}} class just like a
{{startShort}} would do. The thrift handler then checks [ 1] the same method
that transaction manager uses to check [ 2] whether it is running. No new
transaction gets created during the status call check though.
[ 1] -
https://github.com/apache/incubator-tephra/blob/master/tephra-core/src/main/java/org/apache/tephra/distributed/TransactionServiceThriftHandler.java#L140
[ 2] -
https://github.com/apache/incubator-tephra/blob/master/tephra-core/src/main/java/org/apache/tephra/TransactionManager.java#L708
> Status for transaction manager reports as running through CLI when down
> -----------------------------------------------------------------------
>
> Key: TEPHRA-153
> URL: https://issues.apache.org/jira/browse/TEPHRA-153
> Project: Tephra
> Issue Type: Bug
> Reporter: James Taylor
> Assignee: Poorna Chandra
> Labels: phoenix
>
> Using the {{tephra status}} command reports the service as running even when
> its not as evident from logs:
> {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}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)