phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamestay...@apache.org
Subject phoenix git commit: PHOENIX-4727 Parameterize transaction tests with TRANSACTION_PROVIDER (addendum)
Date Tue, 08 May 2018 05:11:35 GMT
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.3 2f20b195d -> d0f98a020


PHOENIX-4727 Parameterize transaction tests with TRANSACTION_PROVIDER (addendum)


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

Branch: refs/heads/4.x-HBase-1.3
Commit: d0f98a0206bcc210c272b4fde95e0191b36c1338
Parents: 2f20b19
Author: James Taylor <jtaylor@salesforce.com>
Authored: Mon May 7 22:11:01 2018 -0700
Committer: James Taylor <jtaylor@salesforce.com>
Committed: Mon May 7 22:11:01 2018 -0700

----------------------------------------------------------------------
 .../src/it/java/org/apache/phoenix/tx/TransactionIT.java        | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/d0f98a02/phoenix-core/src/it/java/org/apache/phoenix/tx/TransactionIT.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/tx/TransactionIT.java b/phoenix-core/src/it/java/org/apache/phoenix/tx/TransactionIT.java
index 23c1480..c0ec6b8 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/tx/TransactionIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/tx/TransactionIT.java
@@ -45,6 +45,7 @@ import org.apache.phoenix.jdbc.PhoenixConnection;
 import org.apache.phoenix.jdbc.PhoenixDatabaseMetaData;
 import org.apache.phoenix.query.QueryConstants;
 import org.apache.phoenix.query.QueryServicesOptions;
+import org.apache.phoenix.schema.PTable;
 import org.apache.phoenix.schema.PTableKey;
 import org.apache.phoenix.transaction.PhoenixTransactionContext;
 import org.apache.phoenix.transaction.TransactionFactory;
@@ -151,6 +152,10 @@ public class TransactionIT  extends ParallelStatsDisabledIT {
             assertEquals("Transactional table was not marked as transactional in JDBC API.",
                 "true", rs.getString(PhoenixDatabaseMetaData.TRANSACTIONAL));
             assertEquals(txProvider, rs.getString(PhoenixDatabaseMetaData.TRANSACTION_PROVIDER));
+            
+            // Ensure round-trip-ability of TRANSACTION_PROVIDER
+            PTable table = PhoenixRuntime.getTableNoCache(conn, transactTableName);
+            assertEquals(txProvider, table.getTransactionProvider().name());
 
             String nonTransactTableName = generateUniqueName();
             Statement stmt2 = conn.createStatement();


Mime
View raw message