You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by td...@apache.org on 2015/04/10 20:18:08 UTC

phoenix git commit: Set QueryServices.DROP_METADATA_ATTRIB in TransactionIT

Repository: phoenix
Updated Branches:
  refs/heads/txn fb489debb -> e0494673c


Set QueryServices.DROP_METADATA_ATTRIB in TransactionIT


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

Branch: refs/heads/txn
Commit: e0494673c123c604d7a223d1f56be517aef60553
Parents: fb489de
Author: Thomas D'Silva <tw...@gmail.com>
Authored: Fri Apr 10 11:18:01 2015 -0700
Committer: Thomas D'Silva <tw...@gmail.com>
Committed: Fri Apr 10 11:18:01 2015 -0700

----------------------------------------------------------------------
 .../apache/phoenix/transactions/TransactionIT.java  | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/e0494673/phoenix-core/src/it/java/org/apache/phoenix/transactions/TransactionIT.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/transactions/TransactionIT.java b/phoenix-core/src/it/java/org/apache/phoenix/transactions/TransactionIT.java
index c3b9c2e..4f81dae 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/transactions/TransactionIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/transactions/TransactionIT.java
@@ -23,15 +23,23 @@ import java.sql.DriverManager;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLException;
+import java.util.Map;
 
 import org.apache.phoenix.end2end.BaseHBaseManagedTimeIT;
+import org.apache.phoenix.end2end.Shadower;
+import org.apache.phoenix.end2end.index.BaseMutableIndexIT;
 import org.apache.phoenix.exception.SQLExceptionCode;
 import org.apache.phoenix.query.QueryConstants;
+import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.DateUtil;
+import org.apache.phoenix.util.ReadOnlyProps;
 import org.apache.phoenix.util.TestUtil;
 import org.junit.Before;
+import org.junit.BeforeClass;
 import org.junit.Test;
 
+import com.google.common.collect.Maps;
+
 public class TransactionIT extends BaseHBaseManagedTimeIT {
 	
 	private static final String FULL_TABLE_NAME = INDEX_DATA_SCHEMA + QueryConstants.NAME_SEPARATOR + TRANSACTIONAL_DATA_TABLE;
@@ -41,6 +49,14 @@ public class TransactionIT extends BaseHBaseManagedTimeIT {
 		ensureTableCreated(getUrl(), TRANSACTIONAL_DATA_TABLE);
     }
 	
+	@BeforeClass
+    @Shadower(classBeingShadowed = BaseHBaseManagedTimeIT.class)
+    public static void doSetup() throws Exception {
+        Map<String,String> props = Maps.newHashMapWithExpectedSize(3);
+        props.put(QueryServices.DROP_METADATA_ATTRIB, Boolean.toString(true));
+        setUpTestDriver(new ReadOnlyProps(props.entrySet().iterator()));
+    }
+	
 	private void setRowKeyColumns(PreparedStatement stmt, int i) throws SQLException {
         // insert row
         stmt.setString(1, "varchar" + String.valueOf(i));