trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lium...@apache.org
Subject [1/2] trafodion git commit: TRAFODION-3165 HDFS storage option not work well if table use namespace
Date Tue, 07 Aug 2018 00:41:03 GMT
Repository: trafodion
Updated Branches:
  refs/heads/master c8ffae3b4 -> 0d30493de


TRAFODION-3165 HDFS storage option not work well if table use namespace


Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/4ac689a6
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/4ac689a6
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/4ac689a6

Branch: refs/heads/master
Commit: 4ac689a67a80e3627e20a3146565513bd1e5a4ba
Parents: 20724db
Author: Liu Ming <ovis_poly@sina.com>
Authored: Thu Aug 2 14:51:28 2018 -0400
Committer: Liu Ming <ovis_poly@sina.com>
Committed: Thu Aug 2 14:51:28 2018 -0400

----------------------------------------------------------------------
 .../hadoop/hbase/client/transactional/TransactionManager.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/4ac689a6/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 1eceb71..a2e14e3 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
@@ -3285,7 +3285,7 @@ public class TransactionManager {
           String namespacestr="";
           String fullPath = hbaseRoot + "/data/" ;
           String fullPath2 = hbaseRoot + "/data/default/";
-          if(fs.exists(new Path(fullPath2)))
+          if(fs.exists(new Path(fullPath2)) && parts.length == 1)  // no namespace
in the path
             fullPath = fullPath2;
 
           if(parts.length >1) //have namespace


Mime
View raw message