[ISSUE] (TEPHRA-153) Status for transaction manager reports as running through CLI when down

7 views
Skip to first unread message

James Taylor (JIRA)

unread,
Dec 10, 2015, 8:36:22 PM12/10/15
to tephr...@googlegroups.com
James Taylor created an issue
 
Tephra / Bug TEPHRA-153
Status for transaction manager reports as running through CLI when down
Issue Type: Bug Bug
Assignee: Poorna Chandra
Created: 10/Dec/15 5:35 PM
Priority: Major Major
Reporter: James Taylor

Using the tephra status command reports the service as running even when its not as evident from logs:

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)
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.1.5#6160-sha1:a61a0fc)
Atlassian logo

James Taylor (JIRA)

unread,
Dec 10, 2015, 8:36:23 PM12/10/15
to tephr...@googlegroups.com

James Taylor (JIRA)

unread,
Mar 7, 2016, 1:15:22 PM3/7/16
to tephr...@googlegroups.com
James Taylor commented on an issue
 
Re: Status for transaction manager reports as running through CLI when down

More info here: https://issues.apache.org/jira/browse/PHOENIX-2504

TLDR; We need a reliable way of knowing that the transaction manager is up. Is there some workaround today? Starting a tx is probably not ideal as it increases the number of inflight transactions, but maybe that's the best we can do for now? I suppose if we only ping 1/min or 1/5mins it wouldn't matter.

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)
...

Poorna Chandra (JIRA)

unread,
Mar 7, 2016, 8:09:22 PM3/7/16
to tephr...@googlegroups.com
Poorna Chandra commented on an issue

James Taylor I'm assuming you are talking about the status method on TransactionSystemClient. Is there a CLI interface from where you can make this call?

status method on TransactionSystemClient checks whether transaction manager's state is "running" using the thrift interface. So, it basically does the same state check that is failing in the stack trace above.

Is this status check happening every now and then? If so, is it possible that transaction manager failed after the last status check?

James Taylor (JIRA)

unread,
Mar 7, 2016, 8:38:22 PM3/7/16
to tephr...@googlegroups.com
James Taylor commented on an issue

Yes (details are in the Phoenix JIRA), but we're using tephra status as our CLI to monitor that the transaction manager.

James Taylor (JIRA)

unread,
Mar 7, 2016, 8:38:23 PM3/7/16
to tephr...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages