You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by se...@apache.org on 2016/09/30 21:05:56 UTC
[09/12] incubator-trafodion git commit: Addressing review comments
Addressing review comments
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/66030b51
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/66030b51
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/66030b51
Branch: refs/heads/master
Commit: 66030b519c49b4abe66b8b49b9ddc63a9543d8fc
Parents: c1b22cf
Author: Sean Broeder <sb...@edev06.esgyn.local>
Authored: Thu Sep 29 18:55:39 2016 +0000
Committer: Sean Broeder <sb...@edev06.esgyn.local>
Committed: Thu Sep 29 18:55:39 2016 +0000
----------------------------------------------------------------------
.../hbase/client/transactional/TransactionManager.java | 8 ++++----
.../src/main/java/org/trafodion/dtm/HBaseTxClient.java | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/66030b51/core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/transactional/TransactionManager.java
----------------------------------------------------------------------
diff --git a/core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/transactional/TransactionManager.java b/core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/transactional/TransactionManager.java
index 86b93a1..863f21c 100644
--- a/core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/transactional/TransactionManager.java
+++ b/core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/transactional/TransactionManager.java
@@ -3010,12 +3010,12 @@ public class TransactionManager {
rresult = table.coprocessorService(TrxRegionService.class, startKey, endKey, callable);
}
catch (ServiceException se) {
- LOG.error("Service exception thrown when recoveryRequest: ", se);
- throw new IOException("Service exception thrown when recoveryRequest:", se);
+ LOG.error("Service exception thrown in recoveryRequest: ", se);
+ throw new IOException("Service exception thrown in recoveryRequest:", se);
}
catch (Throwable t) {
- LOG.error("Exception thrown when recoveryRequest: ", t);
- throw new IOException("Exception thrown when recoveryRequest: ", t);
+ LOG.error("Exception thrown in recoveryRequest: ", t);
+ throw new IOException("Exception thrown in recoveryRequest: ", t);
}
Collection<RecoveryRequestResponse> results = rresult.values();
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/66030b51/core/sqf/src/seatrans/tm/hbasetmlib2/src/main/java/org/trafodion/dtm/HBaseTxClient.java
----------------------------------------------------------------------
diff --git a/core/sqf/src/seatrans/tm/hbasetmlib2/src/main/java/org/trafodion/dtm/HBaseTxClient.java b/core/sqf/src/seatrans/tm/hbasetmlib2/src/main/java/org/trafodion/dtm/HBaseTxClient.java
index 217ed70..1cf3025 100644
--- a/core/sqf/src/seatrans/tm/hbasetmlib2/src/main/java/org/trafodion/dtm/HBaseTxClient.java
+++ b/core/sqf/src/seatrans/tm/hbasetmlib2/src/main/java/org/trafodion/dtm/HBaseTxClient.java
@@ -64,7 +64,7 @@ import org.apache.hadoop.hbase.HRegionLocation;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.NotServingRegionException;
import org.apache.hadoop.hbase.ServerName;
-import org.apache.hadoop.hbase.TableNotFoundException;
+import org.apache.hadoop.hbase.NotServingRegionException;
import org.apache.hadoop.hbase.util.Bytes;
import org.trafodion.dtm.HBaseTmZK;
import org.trafodion.dtm.TmAuditTlog;
@@ -1044,7 +1044,7 @@ public class HBaseTxClient {
zookeeper.deleteRegionEntry(regionEntry);
// In the case of NotServingRegionException we will repost the ZKNode after refreshing the table.
- if (e instanceof NotServingRegionException){
+ if ((e instanceof NotServingRegionException) || (e.getCause() instanceof NotServingRegionException)){
// Create a local HTable object using the regionInfo
HTable table = new HTable(config, HRegionInfo.parseFrom(regionBytes).getTable().getNameAsString());
// Repost a zookeeper entry for all current regions in the table