liu ming created TRAFODION-2011:
-----------------------------------

             Summary: better logging or exception messaging for getScanner 
issue due to lease timeout
                 Key: TRAFODION-2011
                 URL: https://issues.apache.org/jira/browse/TRAFODION-2011
             Project: Apache Trafodion
          Issue Type: Improvement
            Reporter: liu ming


When an active transaction is too long, its lease will timeout. And the 
transaction will be retired internally, however, the client doesn't know and 
still issue new get/put operations, and will get strange exception, which is 
hard to understand.
It will be better to enhance the error message or logging to help identify the 
issue.

Reproduce:
simulate a long transaction, 
>begin;
wait for 2 hours, or change the hbase.transaction.lease.timeout to shorter 
timeout.
>do an update;
some error like this, it is confusing:
*** ERROR[8448] Unable to access Hbase interface. Call to 
ExpHbaseInterface::nextRow returned error HBASE_ACCESS_ERROR(-706). Cause:
java.util.concurrent.ExecutionException: java.io.IOException: PerformScan error 
on coprocessor call, scannerID: 1 java.io.IOException: performScan encountered 
Exception txID: 25769804282 Exception: 
org.apache.hadoop.hbase.UnknownScannerException: TrxRegionEndpoint getScanner - 
scanner id 1, already closed?
java.util.concurrent.FutureTask.report(FutureTask.java:122)
java.util.concurrent.FutureTask.get(FutureTask.java:188)
org.trafodion.sql.HTableClient.fetchRows(HTableClient.java:1251)
 




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

Reply via email to