Build failed in Jenkins: Phoenix-4.x-HBase-1.0 #466

2016-05-05 Thread Apache Jenkins Server
See 

Changes:

[jamestaylor] PHOENIX-2875 Fix isolation level returned by 
PhoenixDatabaseMetaData for

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on ubuntu-6 (docker Ubuntu ubuntu yahoo-not-h2) in workspace 

 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/phoenix.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/4.x-HBase-1.0^{commit} # timeout=10
Checking out Revision 96b026a2dedca56118f7edc297fa3c5cbb235598 
(origin/4.x-HBase-1.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 96b026a2dedca56118f7edc297fa3c5cbb235598
 > git rev-list 4900b0b3c929396fcf082387a35e67b803ade2ff # timeout=10
No emails were triggered.
[EnvInject] - Executing scripts and injecting environment variables after the 
SCM step.
[EnvInject] - Injecting as environment variables the properties content 
MAVEN_OPTS=-Xmx3G

[EnvInject] - Variables injected successfully.
[Phoenix-4.x-HBase-1.0] $ /bin/bash -xe /tmp/hudson3826648493795820852.sh
+ echo 'DELETING ~/.m2/repository/org/apache/htrace. See 
https://issues.apache.org/jira/browse/PHOENIX-1802'
DELETING ~/.m2/repository/org/apache/htrace. See 
https://issues.apache.org/jira/browse/PHOENIX-1802
+ echo 'CURRENT CONTENT:'
CURRENT CONTENT:
+ ls /home/jenkins/.m2/repository/org/apache/htrace
htrace
htrace-core
[Phoenix-4.x-HBase-1.0] $ /home/jenkins/tools/maven/apache-maven-3.0.4/bin/mvn 
-U clean install -Dcheckstyle.skip=true
[INFO] Scanning for projects...
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache Phoenix
[INFO] Phoenix Core
[INFO] Phoenix - Flume
[INFO] Phoenix - Pig
[INFO] Phoenix Query Server Client
[INFO] Phoenix Query Server
[INFO] Phoenix - Pherf
[INFO] Phoenix - Spark
[INFO] Phoenix - Hive
[INFO] Phoenix Assembly
[INFO] Phoenix - Tracing Web Application
[INFO] 
[INFO] 
[INFO] Building Apache Phoenix 4.8.0-HBase-1.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ phoenix ---
[INFO] Deleting 
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.13:check (validate) @ phoenix ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ phoenix ---
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ phoenix ---
[INFO] 
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ phoenix ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @ 
phoenix ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ phoenix ---
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.8.0-HBase-1.0-SNAPSHOT/phoenix-4.8.0-HBase-1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.8.0-HBase-1.0-SNAPSHOT/phoenix-4.8.0-HBase-1.0-SNAPSHOT-tests.jar
[INFO] 
[INFO] 
[INFO] Building Phoenix Core 4.8.0-HBase-1.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ phoenix-core ---
[INFO] Deleting 

[INFO] 
[INFO] --- maven-checkstyle-plugin:2.13:check (validate) @ phoenix-core ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.9.1:add-test-source (add-test-source) @ 
phoenix-core ---
[INFO] Test Source directory: 

 added.
[INFO] 
[INFO] --- build-helper-maven-plugin:1.9.1:add-test-resource 
(add-test-resource) @ phoenix-core ---
[INFO] 
[INFO] --- 

Build failed in Jenkins: Phoenix-4.x-HBase-1.1 #18

2016-05-05 Thread Apache Jenkins Server
See 

Changes:

[jamestaylor] PHOENIX-2875 Fix isolation level returned by 
PhoenixDatabaseMetaData for

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on ubuntu-4 (docker Ubuntu ubuntu4 ubuntu yahoo-not-h2) in 
workspace 
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/phoenix.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/4.x-HBase-1.1^{commit} # timeout=10
Checking out Revision 13a6b5c9703f5906dd04272cfa3e212caf3c764e 
(origin/4.x-HBase-1.1)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 13a6b5c9703f5906dd04272cfa3e212caf3c764e
 > git rev-list 588a9ae187eb37d93c916afe24ca6f3d8aa7dfeb # timeout=10
No emails were triggered.
[EnvInject] - Executing scripts and injecting environment variables after the 
SCM step.
[EnvInject] - Injecting as environment variables the properties content 
MAVEN_OPTS=-Xmx3G

[EnvInject] - Variables injected successfully.
[Phoenix-4.x-HBase-1.1] $ /bin/bash -xe /tmp/hudson8561903883210577635.sh
+ echo 'DELETING ~/.m2/repository/org/apache/htrace. See 
https://issues.apache.org/jira/browse/PHOENIX-1802'
DELETING ~/.m2/repository/org/apache/htrace. See 
https://issues.apache.org/jira/browse/PHOENIX-1802
+ echo 'CURRENT CONTENT:'
CURRENT CONTENT:
+ ls /home/jenkins/.m2/repository/org/apache/htrace
htrace
htrace-core
[Phoenix-4.x-HBase-1.1] $ /home/jenkins/tools/maven/apache-maven-3.0.4/bin/mvn 
-U clean install -Dcheckstyle.skip=true
[INFO] Scanning for projects...
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache Phoenix
[INFO] Phoenix Core
[INFO] Phoenix - Flume
[INFO] Phoenix - Pig
[INFO] Phoenix Query Server Client
[INFO] Phoenix Query Server
[INFO] Phoenix - Pherf
[INFO] Phoenix - Spark
[INFO] Phoenix - Hive
[INFO] Phoenix Assembly
[INFO] Phoenix - Tracing Web Application
[INFO] 
[INFO] 
[INFO] Building Apache Phoenix 4.8.0-HBase-1.1-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ phoenix ---
[INFO] Deleting 
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.13:check (validate) @ phoenix ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ phoenix ---
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ phoenix ---
[INFO] 
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ phoenix ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @ 
phoenix ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ phoenix ---
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.8.0-HBase-1.1-SNAPSHOT/phoenix-4.8.0-HBase-1.1-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.8.0-HBase-1.1-SNAPSHOT/phoenix-4.8.0-HBase-1.1-SNAPSHOT-tests.jar
[INFO] 
[INFO] 
[INFO] Building Phoenix Core 4.8.0-HBase-1.1-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ phoenix-core ---
[INFO] Deleting 

[INFO] 
[INFO] --- maven-checkstyle-plugin:2.13:check (validate) @ phoenix-core ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.9.1:add-test-source (add-test-source) @ 
phoenix-core ---
[INFO] Test Source directory: 

 added.
[INFO] 
[INFO] --- build-helper-maven-plugin:1.9.1:add-test-resource 
(add-test-resource) @ phoenix-core ---
[INFO] 
[INFO] --- 

phoenix git commit: PHOENIX-2875 Fix isolation level returned by PhoenixDatabaseMetaData for transactional tables

2016-05-05 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 966b0d539 -> 262078251


PHOENIX-2875 Fix isolation level returned by PhoenixDatabaseMetaData for 
transactional tables


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

Branch: refs/heads/4.x-HBase-0.98
Commit: 262078251f93b66c20f06df7ed8cf00923daf1c6
Parents: 966b0d5
Author: James Taylor 
Authored: Thu May 5 22:40:54 2016 -0700
Committer: James Taylor 
Committed: Thu May 5 22:45:25 2016 -0700

--
 .../org/apache/phoenix/exception/SQLExceptionCode.java|  2 +-
 .../java/org/apache/phoenix/jdbc/PhoenixConnection.java   |  9 +++--
 .../java/org/apache/phoenix/jdbc/PhoenixDriverTest.java   | 10 +++---
 3 files changed, 15 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/26207825/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java 
b/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
index 4d18cbb..5661098 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
@@ -282,7 +282,7 @@ public enum SQLExceptionCode {
 CANNOT_ALTER_TO_BE_TXN_WITH_ROW_TIMESTAMP(1081, "44A12", "Cannot alter 
table to be transactional table if transactions are disabled."),
 TX_MUST_BE_ENABLED_TO_SET_TX_CONTEXT(1082, "44A13", "Cannot set 
transaction context if transactions are disabled."),
 TX_MUST_BE_ENABLED_TO_SET_AUTO_FLUSH(1083, "44A14", "Cannot set auto flush 
if transactions are disabled."),
-TX_MUST_BE_ENABLED_TO_SET_ISOLATION_LEVEL(1084, "44A15", "Cannot set 
isolation level to TRANSACTION_READ_COMMITTED or TRANSACTION_SERIALIZABLE if 
transactions are disabled."),
+TX_MUST_BE_ENABLED_TO_SET_ISOLATION_LEVEL(1084, "44A15", "Cannot set 
isolation level to TRANSACTION_REPEATABLE_READ if transactions are disabled."),
 TX_UNABLE_TO_GET_WRITE_FENCE(1085, "44A16", "Unable to obtain write fence 
for DDL operation."),
 
 SEQUENCE_NOT_CASTABLE_TO_AUTO_PARTITION_ID_COLUMN(1086, "44A17", "Sequence 
Value not castable to auto-partition id column"),

http://git-wip-us.apache.org/repos/asf/phoenix/blob/26207825/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java 
b/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
index 08b300b..6fc8e10 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
@@ -112,6 +112,8 @@ import org.cloudera.htrace.Sampler;
 import org.cloudera.htrace.TraceScope;
 import org.apache.phoenix.util.SchemaUtil;
 
+import co.cask.tephra.TransactionContext;
+
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Objects;
 import com.google.common.base.Strings;
@@ -662,7 +664,7 @@ public class PhoenixConnection implements Connection, 
MetaDataMutated, SQLClosea
 boolean transactionsEnabled = 
getQueryServices().getProps().getBoolean(QueryServices.TRANSACTIONS_ENABLED, 
 QueryServicesOptions.DEFAULT_TRANSACTIONS_ENABLED);
 return  transactionsEnabled ?
-Connection.TRANSACTION_SERIALIZABLE : 
Connection.TRANSACTION_READ_COMMITTED;
+Connection.TRANSACTION_REPEATABLE_READ : 
Connection.TRANSACTION_READ_COMMITTED;
 }
 
 @Override
@@ -824,7 +826,10 @@ public class PhoenixConnection implements Connection, 
MetaDataMutated, SQLClosea
 public void setTransactionIsolation(int level) throws SQLException {
 boolean transactionsEnabled = 
getQueryServices().getProps().getBoolean(QueryServices.TRANSACTIONS_ENABLED, 
 QueryServicesOptions.DEFAULT_TRANSACTIONS_ENABLED);
-if (!transactionsEnabled && (level == 
Connection.TRANSACTION_REPEATABLE_READ || level == 
Connection.TRANSACTION_SERIALIZABLE)) {
+if (level == Connection.TRANSACTION_SERIALIZABLE) {
+throw new SQLFeatureNotSupportedException();
+}
+if (!transactionsEnabled && level == 
Connection.TRANSACTION_REPEATABLE_READ) {
 throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.TX_MUST_BE_ENABLED_TO_SET_ISOLATION_LEVEL)
   

phoenix git commit: PHOENIX-2875 Fix isolation level returned by PhoenixDatabaseMetaData for transactional tables

2016-05-05 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.0 4900b0b3c -> 96b026a2d


PHOENIX-2875 Fix isolation level returned by PhoenixDatabaseMetaData for 
transactional tables


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

Branch: refs/heads/4.x-HBase-1.0
Commit: 96b026a2dedca56118f7edc297fa3c5cbb235598
Parents: 4900b0b
Author: James Taylor 
Authored: Thu May 5 22:40:54 2016 -0700
Committer: James Taylor 
Committed: Thu May 5 22:43:31 2016 -0700

--
 .../org/apache/phoenix/exception/SQLExceptionCode.java   |  2 +-
 .../java/org/apache/phoenix/jdbc/PhoenixConnection.java  | 11 +++
 .../java/org/apache/phoenix/jdbc/PhoenixDriverTest.java  | 10 +++---
 3 files changed, 15 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/96b026a2/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java 
b/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
index 4d18cbb..5661098 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
@@ -282,7 +282,7 @@ public enum SQLExceptionCode {
 CANNOT_ALTER_TO_BE_TXN_WITH_ROW_TIMESTAMP(1081, "44A12", "Cannot alter 
table to be transactional table if transactions are disabled."),
 TX_MUST_BE_ENABLED_TO_SET_TX_CONTEXT(1082, "44A13", "Cannot set 
transaction context if transactions are disabled."),
 TX_MUST_BE_ENABLED_TO_SET_AUTO_FLUSH(1083, "44A14", "Cannot set auto flush 
if transactions are disabled."),
-TX_MUST_BE_ENABLED_TO_SET_ISOLATION_LEVEL(1084, "44A15", "Cannot set 
isolation level to TRANSACTION_READ_COMMITTED or TRANSACTION_SERIALIZABLE if 
transactions are disabled."),
+TX_MUST_BE_ENABLED_TO_SET_ISOLATION_LEVEL(1084, "44A15", "Cannot set 
isolation level to TRANSACTION_REPEATABLE_READ if transactions are disabled."),
 TX_UNABLE_TO_GET_WRITE_FENCE(1085, "44A16", "Unable to obtain write fence 
for DDL operation."),
 
 SEQUENCE_NOT_CASTABLE_TO_AUTO_PARTITION_ID_COLUMN(1086, "44A17", "Sequence 
Value not castable to auto-partition id column"),

http://git-wip-us.apache.org/repos/asf/phoenix/blob/96b026a2/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java 
b/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
index bef3bae..4ab0866 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
@@ -58,8 +58,6 @@ import java.util.concurrent.LinkedBlockingQueue;
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
-import co.cask.tephra.TransactionContext;
-
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.client.Consistency;
 import org.apache.htrace.Sampler;
@@ -115,6 +113,8 @@ import org.apache.phoenix.util.SQLCloseable;
 import org.apache.phoenix.util.SQLCloseables;
 import org.apache.phoenix.util.SchemaUtil;
 
+import co.cask.tephra.TransactionContext;
+
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Objects;
 import com.google.common.base.Strings;
@@ -670,7 +670,7 @@ public class PhoenixConnection implements Connection, 
MetaDataMutated, SQLClosea
 boolean transactionsEnabled = 
getQueryServices().getProps().getBoolean(QueryServices.TRANSACTIONS_ENABLED, 
 QueryServicesOptions.DEFAULT_TRANSACTIONS_ENABLED);
 return  transactionsEnabled ?
-Connection.TRANSACTION_SERIALIZABLE : 
Connection.TRANSACTION_READ_COMMITTED;
+Connection.TRANSACTION_REPEATABLE_READ : 
Connection.TRANSACTION_READ_COMMITTED;
 }
 
 @Override
@@ -836,7 +836,10 @@ public class PhoenixConnection implements Connection, 
MetaDataMutated, SQLClosea
 public void setTransactionIsolation(int level) throws SQLException {
 boolean transactionsEnabled = 
getQueryServices().getProps().getBoolean(QueryServices.TRANSACTIONS_ENABLED, 
 QueryServicesOptions.DEFAULT_TRANSACTIONS_ENABLED);
-if (!transactionsEnabled && (level == 
Connection.TRANSACTION_REPEATABLE_READ || level == 
Connection.TRANSACTION_SERIALIZABLE)) {
+   

phoenix git commit: PHOENIX-2875 Fix isolation level returned by PhoenixDatabaseMetaData for transactional tables

2016-05-05 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/master 491fc54d9 -> a8a3616fe


PHOENIX-2875 Fix isolation level returned by PhoenixDatabaseMetaData for 
transactional tables


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

Branch: refs/heads/master
Commit: a8a3616febaa51508e0c433c44e5b1a049a97925
Parents: 491fc54
Author: James Taylor 
Authored: Thu May 5 22:40:54 2016 -0700
Committer: James Taylor 
Committed: Thu May 5 22:40:54 2016 -0700

--
 .../org/apache/phoenix/exception/SQLExceptionCode.java   |  2 +-
 .../java/org/apache/phoenix/jdbc/PhoenixConnection.java  | 11 +++
 .../java/org/apache/phoenix/jdbc/PhoenixDriverTest.java  | 10 +++---
 3 files changed, 15 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/a8a3616f/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java 
b/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
index 4d18cbb..5661098 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
@@ -282,7 +282,7 @@ public enum SQLExceptionCode {
 CANNOT_ALTER_TO_BE_TXN_WITH_ROW_TIMESTAMP(1081, "44A12", "Cannot alter 
table to be transactional table if transactions are disabled."),
 TX_MUST_BE_ENABLED_TO_SET_TX_CONTEXT(1082, "44A13", "Cannot set 
transaction context if transactions are disabled."),
 TX_MUST_BE_ENABLED_TO_SET_AUTO_FLUSH(1083, "44A14", "Cannot set auto flush 
if transactions are disabled."),
-TX_MUST_BE_ENABLED_TO_SET_ISOLATION_LEVEL(1084, "44A15", "Cannot set 
isolation level to TRANSACTION_READ_COMMITTED or TRANSACTION_SERIALIZABLE if 
transactions are disabled."),
+TX_MUST_BE_ENABLED_TO_SET_ISOLATION_LEVEL(1084, "44A15", "Cannot set 
isolation level to TRANSACTION_REPEATABLE_READ if transactions are disabled."),
 TX_UNABLE_TO_GET_WRITE_FENCE(1085, "44A16", "Unable to obtain write fence 
for DDL operation."),
 
 SEQUENCE_NOT_CASTABLE_TO_AUTO_PARTITION_ID_COLUMN(1086, "44A17", "Sequence 
Value not castable to auto-partition id column"),

http://git-wip-us.apache.org/repos/asf/phoenix/blob/a8a3616f/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java 
b/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
index 0e69bb5..160b99c 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
@@ -58,8 +58,6 @@ import java.util.concurrent.LinkedBlockingQueue;
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
-import co.cask.tephra.TransactionContext;
-
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.client.Consistency;
 import org.apache.htrace.Sampler;
@@ -115,6 +113,8 @@ import org.apache.phoenix.util.SQLCloseable;
 import org.apache.phoenix.util.SQLCloseables;
 import org.apache.phoenix.util.SchemaUtil;
 
+import co.cask.tephra.TransactionContext;
+
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Objects;
 import com.google.common.base.Strings;
@@ -669,7 +669,7 @@ public class PhoenixConnection implements Connection, 
MetaDataMutated, SQLClosea
 boolean transactionsEnabled = 
getQueryServices().getProps().getBoolean(QueryServices.TRANSACTIONS_ENABLED, 
 QueryServicesOptions.DEFAULT_TRANSACTIONS_ENABLED);
 return  transactionsEnabled ?
-Connection.TRANSACTION_SERIALIZABLE : 
Connection.TRANSACTION_READ_COMMITTED;
+Connection.TRANSACTION_REPEATABLE_READ : 
Connection.TRANSACTION_READ_COMMITTED;
 }
 
 @Override
@@ -835,7 +835,10 @@ public class PhoenixConnection implements Connection, 
MetaDataMutated, SQLClosea
 public void setTransactionIsolation(int level) throws SQLException {
 boolean transactionsEnabled = 
getQueryServices().getProps().getBoolean(QueryServices.TRANSACTIONS_ENABLED, 
 QueryServicesOptions.DEFAULT_TRANSACTIONS_ENABLED);
-if (!transactionsEnabled && (level == 
Connection.TRANSACTION_REPEATABLE_READ || level == 
Connection.TRANSACTION_SERIALIZABLE)) {
+if 

[2/2] phoenix git commit: PHOENIX-2879 HivePhoenixStoreIT fails with timeout if JDK 1.7 used (Sergey Soldatov)

2016-05-05 Thread jamestaylor
PHOENIX-2879 HivePhoenixStoreIT fails with timeout if JDK 1.7 used (Sergey 
Soldatov)


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

Branch: refs/heads/4.x-HBase-0.98
Commit: 966b0d5399bb1918a8ef2f05e18b7b420899c240
Parents: effc1a9
Author: James Taylor 
Authored: Thu May 5 16:11:43 2016 -0700
Committer: James Taylor 
Committed: Thu May 5 17:25:35 2016 -0700

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/966b0d53/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 317ebed..d18c4a5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -311,7 +311,7 @@
  ${numForkedIT}
  alphabetical
  false
- -enableassertions -Xmx2000m -XX:MaxPermSize=128m 
-Djava.security.egd=file:/dev/./urandom 
"-Djava.library.path=${hadoop.library.path}${path.separator}${java.library.path}"
+ -enableassertions -Xmx2000m -XX:MaxPermSize=256m 
-Djava.security.egd=file:/dev/./urandom 
"-Djava.library.path=${hadoop.library.path}${path.separator}${java.library.path}"
  
${test.output.tofile}
  
${basedir}/src/it/java
  
org.apache.phoenix.end2end.NeedsOwnMiniClusterTest



[1/2] phoenix git commit: PHOENIX-2824 PhoenixTransactionalIndexer rollback doesn't work correctly

2016-05-05 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 032b186c5 -> 588a9ae18


PHOENIX-2824 PhoenixTransactionalIndexer rollback doesn't work correctly


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

Branch: refs/heads/4.x-HBase-1.1
Commit: d3f5e68f8d5715f5059bcb632a10352c1a6e83d4
Parents: 032b186
Author: James Taylor 
Authored: Thu May 5 15:58:02 2016 -0700
Committer: James Taylor 
Committed: Thu May 5 17:19:31 2016 -0700

--
 .../org/apache/phoenix/tx/TxCheckpointIT.java   | 22 +-
 .../index/PhoenixTransactionalIndexer.java  | 24 
 2 files changed, 30 insertions(+), 16 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/d3f5e68f/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
index c7fc053..11b587a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
@@ -37,7 +37,6 @@ import org.apache.phoenix.end2end.BaseHBaseManagedTimeIT;
 import org.apache.phoenix.end2end.Shadower;
 import org.apache.phoenix.execute.MutationState;
 import org.apache.phoenix.jdbc.PhoenixConnection;
-import org.apache.phoenix.query.BaseTest;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.ReadOnlyProps;
@@ -49,10 +48,10 @@ import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
 import org.junit.runners.Parameterized.Parameters;
 
-import com.google.common.collect.Maps;
-
 import co.cask.tephra.Transaction.VisibilityLevel;
 
+import com.google.common.collect.Maps;
+
 @RunWith(Parameterized.class)
 public class TxCheckpointIT extends BaseHBaseManagedTimeIT {

@@ -110,14 +109,25 @@ public class TxCheckpointIT extends 
BaseHBaseManagedTimeIT {
 }
 
 @Test
-public void testRollbackOfUncommittedDelete() throws Exception {
+public void testRollbackOfUncommittedDeleteSingleCol() throws Exception {
+String indexDDL = "CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1) INCLUDE(v2)";
+testRollbackOfUncommittedDelete(indexDDL);
+}
+
+@Test
+public void testRollbackOfUncommittedDeleteMultiCol() throws Exception {
+String indexDDL = "CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1, v2)";
+testRollbackOfUncommittedDelete(indexDDL);
+}
+
+private void testRollbackOfUncommittedDelete(String indexDDL) throws 
Exception {
 Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 Connection conn = DriverManager.getConnection(getUrl(), props);
 conn.setAutoCommit(false);
 try {
 Statement stmt = conn.createStatement();
 stmt.execute("CREATE TABLE " + fullTableName + "(k VARCHAR PRIMARY 
KEY, v1 VARCHAR, v2 VARCHAR)"+(!mutable? " IMMUTABLE_ROWS=true" : ""));
-stmt.execute("CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1) INCLUDE(v2)");
+stmt.execute(indexDDL);
 
 stmt.executeUpdate("upsert into " + fullTableName + " values('x1', 
'y1', 'a1')");
 stmt.executeUpdate("upsert into " + fullTableName + " values('x2', 
'y2', 'a2')");
@@ -182,7 +192,7 @@ public class TxCheckpointIT extends BaseHBaseManagedTimeIT {
 //assert two rows in index table
 rs = stmt.executeQuery("select k, v1, v2 from " + fullTableName + 
" ORDER BY v1");
 assertTrue(rs.next());
-assertEquals("x1", rs.getString(1));
+assertEquals("x1", rs.getString(1)); // fails here
 assertEquals("y1", rs.getString(2));
 assertEquals("a1", rs.getString(3));
 assertTrue(rs.next());

http://git-wip-us.apache.org/repos/asf/phoenix/blob/d3f5e68f/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
index e4c106e..d42e468 100644
--- 

[1/2] phoenix git commit: PHOENIX-2824 PhoenixTransactionalIndexer rollback doesn't work correctly

2016-05-05 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 a69ecfac1 -> 966b0d539


PHOENIX-2824 PhoenixTransactionalIndexer rollback doesn't work correctly


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

Branch: refs/heads/4.x-HBase-0.98
Commit: effc1a9a7f389d97d28788e905dd5977840bb0fa
Parents: a69ecfa
Author: James Taylor 
Authored: Thu May 5 15:58:02 2016 -0700
Committer: James Taylor 
Committed: Thu May 5 17:25:29 2016 -0700

--
 .../org/apache/phoenix/tx/TxCheckpointIT.java   | 22 +-
 .../index/PhoenixTransactionalIndexer.java  | 24 
 2 files changed, 30 insertions(+), 16 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/effc1a9a/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
index c7fc053..11b587a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
@@ -37,7 +37,6 @@ import org.apache.phoenix.end2end.BaseHBaseManagedTimeIT;
 import org.apache.phoenix.end2end.Shadower;
 import org.apache.phoenix.execute.MutationState;
 import org.apache.phoenix.jdbc.PhoenixConnection;
-import org.apache.phoenix.query.BaseTest;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.ReadOnlyProps;
@@ -49,10 +48,10 @@ import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
 import org.junit.runners.Parameterized.Parameters;
 
-import com.google.common.collect.Maps;
-
 import co.cask.tephra.Transaction.VisibilityLevel;
 
+import com.google.common.collect.Maps;
+
 @RunWith(Parameterized.class)
 public class TxCheckpointIT extends BaseHBaseManagedTimeIT {

@@ -110,14 +109,25 @@ public class TxCheckpointIT extends 
BaseHBaseManagedTimeIT {
 }
 
 @Test
-public void testRollbackOfUncommittedDelete() throws Exception {
+public void testRollbackOfUncommittedDeleteSingleCol() throws Exception {
+String indexDDL = "CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1) INCLUDE(v2)";
+testRollbackOfUncommittedDelete(indexDDL);
+}
+
+@Test
+public void testRollbackOfUncommittedDeleteMultiCol() throws Exception {
+String indexDDL = "CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1, v2)";
+testRollbackOfUncommittedDelete(indexDDL);
+}
+
+private void testRollbackOfUncommittedDelete(String indexDDL) throws 
Exception {
 Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 Connection conn = DriverManager.getConnection(getUrl(), props);
 conn.setAutoCommit(false);
 try {
 Statement stmt = conn.createStatement();
 stmt.execute("CREATE TABLE " + fullTableName + "(k VARCHAR PRIMARY 
KEY, v1 VARCHAR, v2 VARCHAR)"+(!mutable? " IMMUTABLE_ROWS=true" : ""));
-stmt.execute("CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1) INCLUDE(v2)");
+stmt.execute(indexDDL);
 
 stmt.executeUpdate("upsert into " + fullTableName + " values('x1', 
'y1', 'a1')");
 stmt.executeUpdate("upsert into " + fullTableName + " values('x2', 
'y2', 'a2')");
@@ -182,7 +192,7 @@ public class TxCheckpointIT extends BaseHBaseManagedTimeIT {
 //assert two rows in index table
 rs = stmt.executeQuery("select k, v1, v2 from " + fullTableName + 
" ORDER BY v1");
 assertTrue(rs.next());
-assertEquals("x1", rs.getString(1));
+assertEquals("x1", rs.getString(1)); // fails here
 assertEquals("y1", rs.getString(2));
 assertEquals("a1", rs.getString(3));
 assertTrue(rs.next());

http://git-wip-us.apache.org/repos/asf/phoenix/blob/effc1a9a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
index 32dc632..af184dd 100644
--- 

Build failed in Jenkins: Phoenix-4.x-HBase-1.1 #17

2016-05-05 Thread Apache Jenkins Server
See 

Changes:

[jamestaylor] PHOENIX-2824 PhoenixTransactionalIndexer rollback doesn't work 
correctly

[jamestaylor] PHOENIX-2879 HivePhoenixStoreIT fails with timeout if JDK 1.7 used

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on ubuntu-6 (docker Ubuntu ubuntu yahoo-not-h2) in workspace 

Cloning the remote Git repository
Cloning repository https://git-wip-us.apache.org/repos/asf/phoenix.git
 > git init  # 
 > timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/phoenix.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # 
 > timeout=10
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/phoenix.git
 > git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/4.x-HBase-1.1^{commit} # timeout=10
Checking out Revision 588a9ae187eb37d93c916afe24ca6f3d8aa7dfeb 
(origin/4.x-HBase-1.1)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 588a9ae187eb37d93c916afe24ca6f3d8aa7dfeb
 > git rev-list 032b186c59af9609e788819ff734d0b6b6cdd583 # timeout=10
No emails were triggered.
[EnvInject] - Executing scripts and injecting environment variables after the 
SCM step.
[EnvInject] - Injecting as environment variables the properties content 
MAVEN_OPTS=-Xmx3G

[EnvInject] - Variables injected successfully.
[Phoenix-4.x-HBase-1.1] $ /bin/bash -xe /tmp/hudson6519771065828147278.sh
+ echo 'DELETING ~/.m2/repository/org/apache/htrace. See 
https://issues.apache.org/jira/browse/PHOENIX-1802'
DELETING ~/.m2/repository/org/apache/htrace. See 
https://issues.apache.org/jira/browse/PHOENIX-1802
+ echo 'CURRENT CONTENT:'
CURRENT CONTENT:
+ ls /home/jenkins/.m2/repository/org/apache/htrace
htrace
htrace-core
[Phoenix-4.x-HBase-1.1] $ /home/jenkins/tools/maven/apache-maven-3.0.4/bin/mvn 
-U clean install -Dcheckstyle.skip=true
Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:714)
at java.lang.ref.Finalizer.(Finalizer.java:226)

Build step 'Invoke top-level Maven targets' marked build as failure
Archiving artifacts
No prior successful build to compare, so performing full copy of artifacts
Recording test results
ERROR: Step ?Publish JUnit test result report? failed: No test report files 
were found. Configuration error?



[1/3] phoenix git commit: PHOENIX-2824 PhoenixTransactionalIndexer rollback doesn't work correctly

2016-05-05 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.0 01cc2a02b -> 4900b0b3c


PHOENIX-2824 PhoenixTransactionalIndexer rollback doesn't work correctly


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

Branch: refs/heads/4.x-HBase-1.0
Commit: 0302e539f60f7267f39f77f36cff152a338b7e17
Parents: ac9f928
Author: James Taylor 
Authored: Thu May 5 15:58:02 2016 -0700
Committer: James Taylor 
Committed: Thu May 5 17:22:31 2016 -0700

--
 .../org/apache/phoenix/tx/TxCheckpointIT.java   | 22 +-
 .../index/PhoenixTransactionalIndexer.java  | 24 
 2 files changed, 30 insertions(+), 16 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/0302e539/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
index c7fc053..11b587a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
@@ -37,7 +37,6 @@ import org.apache.phoenix.end2end.BaseHBaseManagedTimeIT;
 import org.apache.phoenix.end2end.Shadower;
 import org.apache.phoenix.execute.MutationState;
 import org.apache.phoenix.jdbc.PhoenixConnection;
-import org.apache.phoenix.query.BaseTest;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.ReadOnlyProps;
@@ -49,10 +48,10 @@ import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
 import org.junit.runners.Parameterized.Parameters;
 
-import com.google.common.collect.Maps;
-
 import co.cask.tephra.Transaction.VisibilityLevel;
 
+import com.google.common.collect.Maps;
+
 @RunWith(Parameterized.class)
 public class TxCheckpointIT extends BaseHBaseManagedTimeIT {

@@ -110,14 +109,25 @@ public class TxCheckpointIT extends 
BaseHBaseManagedTimeIT {
 }
 
 @Test
-public void testRollbackOfUncommittedDelete() throws Exception {
+public void testRollbackOfUncommittedDeleteSingleCol() throws Exception {
+String indexDDL = "CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1) INCLUDE(v2)";
+testRollbackOfUncommittedDelete(indexDDL);
+}
+
+@Test
+public void testRollbackOfUncommittedDeleteMultiCol() throws Exception {
+String indexDDL = "CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1, v2)";
+testRollbackOfUncommittedDelete(indexDDL);
+}
+
+private void testRollbackOfUncommittedDelete(String indexDDL) throws 
Exception {
 Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 Connection conn = DriverManager.getConnection(getUrl(), props);
 conn.setAutoCommit(false);
 try {
 Statement stmt = conn.createStatement();
 stmt.execute("CREATE TABLE " + fullTableName + "(k VARCHAR PRIMARY 
KEY, v1 VARCHAR, v2 VARCHAR)"+(!mutable? " IMMUTABLE_ROWS=true" : ""));
-stmt.execute("CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1) INCLUDE(v2)");
+stmt.execute(indexDDL);
 
 stmt.executeUpdate("upsert into " + fullTableName + " values('x1', 
'y1', 'a1')");
 stmt.executeUpdate("upsert into " + fullTableName + " values('x2', 
'y2', 'a2')");
@@ -182,7 +192,7 @@ public class TxCheckpointIT extends BaseHBaseManagedTimeIT {
 //assert two rows in index table
 rs = stmt.executeQuery("select k, v1, v2 from " + fullTableName + 
" ORDER BY v1");
 assertTrue(rs.next());
-assertEquals("x1", rs.getString(1));
+assertEquals("x1", rs.getString(1)); // fails here
 assertEquals("y1", rs.getString(2));
 assertEquals("a1", rs.getString(3));
 assertTrue(rs.next());

http://git-wip-us.apache.org/repos/asf/phoenix/blob/0302e539/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
index 134c50c..b3606f6 100644
--- 

[3/3] phoenix git commit: Merge branch '4.x-HBase-1.0' of https://git-wip-us.apache.org/repos/asf/phoenix into 4.x-HBase-1.0

2016-05-05 Thread jamestaylor
Merge branch '4.x-HBase-1.0' of https://git-wip-us.apache.org/repos/asf/phoenix 
into 4.x-HBase-1.0


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

Branch: refs/heads/4.x-HBase-1.0
Commit: 4900b0b3c929396fcf082387a35e67b803ade2ff
Parents: 174fefd 01cc2a0
Author: James Taylor 
Authored: Thu May 5 17:24:32 2016 -0700
Committer: James Taylor 
Committed: Thu May 5 17:24:32 2016 -0700

--
 .gitignore  |   1 +
 examples/STOCK_SYMBOL.sql   |   1 -
 examples/WEB_STAT_QUERIES.sql   |   1 -
 .../org/apache/phoenix/end2end/ArrayIT.java |  55 -
 .../end2end/BaseClientManagedTimeIT.java|   2 +-
 .../phoenix/end2end/BaseHBaseManagedTimeIT.java |   2 +-
 .../BaseHBaseManagedTimeTableReuseIT.java   |  44 +++-
 .../BaseOwnClusterClientManagedTimeIT.java  |   2 +-
 .../BaseOwnClusterHBaseManagedTimeIT.java   |   2 +-
 .../apache/phoenix/end2end/CreateSchemaIT.java  |   2 +-
 .../org/apache/phoenix/end2end/DateTimeIT.java  |  39 +++
 .../apache/phoenix/end2end/DistinctCountIT.java |  76 ++---
 .../apache/phoenix/end2end/DropSchemaIT.java|  21 +++-
 .../apache/phoenix/end2end/DynamicColumnIT.java | 112 +--
 .../apache/phoenix/end2end/DynamicUpsertIT.java |  11 +-
 .../phoenix/end2end/InMemoryOrderByIT.java  |   6 +-
 .../org/apache/phoenix/end2end/OrderByIT.java   |  11 +-
 .../apache/phoenix/end2end/PercentileIT.java|  76 +++--
 .../phoenix/end2end/SpooledOrderByIT.java   |   4 +-
 .../phoenix/end2end/ToCharFunctionIT.java   |  28 ++---
 .../apache/phoenix/end2end/UpsertValuesIT.java  |   1 +
 .../phoenix/compile/StatementContext.java   |   5 +-
 .../phoenix/coprocessor/MetaDataProtocol.java   |   2 +-
 .../query/ConnectionQueryServicesImpl.java  |   6 +-
 .../java/org/apache/phoenix/util/DateUtil.java  |  16 ++-
 .../java/org/apache/phoenix/query/BaseTest.java |  84 +-
 .../org/apache/phoenix/util/DateUtilTest.java   |  25 +
 .../phoenix/end2end/QueryServerBasicsIT.java|  41 ---
 28 files changed, 424 insertions(+), 252 deletions(-)
--




Build failed in Jenkins: Phoenix | Master #1218

2016-05-05 Thread Apache Jenkins Server
See 

Changes:

[jamestaylor] PHOENIX-2824 PhoenixTransactionalIndexer rollback doesn't work 
correctly

[jamestaylor] PHOENIX-2879 HivePhoenixStoreIT fails with timeout if JDK 1.7 used

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on ubuntu-6 (docker Ubuntu ubuntu yahoo-not-h2) in workspace 

 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/phoenix.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 491fc54d92496f5ed512f52edaed981a656cff57 (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 491fc54d92496f5ed512f52edaed981a656cff57
 > git rev-list 596726089a530e261aee27b7680466942a0d1b4c # timeout=10
No emails were triggered.
[EnvInject] - Executing scripts and injecting environment variables after the 
SCM step.
[EnvInject] - Injecting as environment variables the properties content 
MAVEN_OPTS=-Xmx3G

[EnvInject] - Variables injected successfully.
[Phoenix-master] $ /bin/bash -xe /tmp/hudson3391386549888537289.sh
+ ls /home/jenkins/.m2/repository/org/apache/htrace
htrace
htrace-core
+ ls /home/jenkins/.m2/repository/org/apache/hbase
hbase
hbase-annotations
hbase-archetype-builder
hbase-archetypes
hbase-assembly
hbase-checkstyle
hbase-client
hbase-client-project
hbase-client-project-archetype
hbase-common
hbase-examples
hbase-external-blockcache
hbase-hadoop1-compat
hbase-hadoop2-compat
hbase-hadoop-compat
hbase-it
hbase-prefix-tree
hbase-procedure
hbase-protocol
hbase-resource-bundle
hbase-rest
hbase-rsgroup
hbase-server
hbase-shaded
hbase-shaded-client
hbase-shaded-client-project
hbase-shaded-client-project-archetype
hbase-shaded-server
hbase-shell
hbase-spark
hbase-testing-util
hbase-thrift
[Phoenix-master] $ /home/jenkins/tools/maven/apache-maven-3.0.4/bin/mvn -U 
clean install -Dcheckstyle.skip=true
[WARNING] 
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Failed to use environment variables for interpolation: Cannot run 
program "env": error=11, Resource temporarily unavailable @ 
[WARNING] 
[INFO] Scanning for projects...
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache Phoenix
[INFO] Phoenix Core
[INFO] Phoenix - Flume
[INFO] Phoenix - Pig
[INFO] Phoenix Query Server Client
[INFO] Phoenix Query Server
[INFO] Phoenix - Pherf
[INFO] Phoenix - Spark
[INFO] Phoenix - Hive
[INFO] Phoenix Assembly
[INFO] Phoenix - Tracing Web Application
[INFO] 
[INFO] 
[INFO] Building Apache Phoenix 4.8.0-HBase-1.2-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ phoenix ---
[INFO] Deleting 
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.13:check (validate) @ phoenix ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ phoenix ---
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ phoenix ---
[INFO] 
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ phoenix ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @ 
phoenix ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ phoenix ---
[INFO] Installing  to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.8.0-HBase-1.2-SNAPSHOT/phoenix-4.8.0-HBase-1.2-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.8.0-HBase-1.2-SNAPSHOT/phoenix-4.8.0-HBase-1.2-SNAPSHOT-tests.jar
[INFO] 
[INFO] 
[INFO] Building Phoenix Core 4.8.0-HBase-1.2-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- 

[2/3] phoenix git commit: PHOENIX-2879 HivePhoenixStoreIT fails with timeout if JDK 1.7 used (Sergey Soldatov)

2016-05-05 Thread jamestaylor
PHOENIX-2879 HivePhoenixStoreIT fails with timeout if JDK 1.7 used (Sergey 
Soldatov)


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

Branch: refs/heads/4.x-HBase-1.0
Commit: 174fefd7e4be864c07cbfd9319048f97050f07f4
Parents: 0302e53
Author: James Taylor 
Authored: Thu May 5 16:11:43 2016 -0700
Committer: James Taylor 
Committed: Thu May 5 17:22:34 2016 -0700

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/174fefd7/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 8f52433..8fb48f8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -310,7 +310,7 @@
  ${numForkedIT}
  alphabetical
  false
- -enableassertions -Xmx2000m -XX:MaxPermSize=128m 
-Djava.security.egd=file:/dev/./urandom 
"-Djava.library.path=${hadoop.library.path}${path.separator}${java.library.path}"
+ -enableassertions -Xmx2000m -XX:MaxPermSize=256m 
-Djava.security.egd=file:/dev/./urandom 
"-Djava.library.path=${hadoop.library.path}${path.separator}${java.library.path}"
  
${test.output.tofile}
  
${basedir}/src/it/java
  
org.apache.phoenix.end2end.NeedsOwnMiniClusterTest



[2/2] phoenix git commit: PHOENIX-2879 HivePhoenixStoreIT fails with timeout if JDK 1.7 used (Sergey Soldatov)

2016-05-05 Thread jamestaylor
PHOENIX-2879 HivePhoenixStoreIT fails with timeout if JDK 1.7 used (Sergey 
Soldatov)


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

Branch: refs/heads/4.x-HBase-1.1
Commit: 588a9ae187eb37d93c916afe24ca6f3d8aa7dfeb
Parents: d3f5e68
Author: James Taylor 
Authored: Thu May 5 16:11:43 2016 -0700
Committer: James Taylor 
Committed: Thu May 5 17:19:52 2016 -0700

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/588a9ae1/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 647c6e1..b966de2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -310,7 +310,7 @@
  ${numForkedIT}
  alphabetical
  false
- -enableassertions -Xmx2000m -XX:MaxPermSize=128m 
-Djava.security.egd=file:/dev/./urandom 
"-Djava.library.path=${hadoop.library.path}${path.separator}${java.library.path}"
+ -enableassertions -Xmx2000m -XX:MaxPermSize=256m 
-Djava.security.egd=file:/dev/./urandom 
"-Djava.library.path=${hadoop.library.path}${path.separator}${java.library.path}"
  
${test.output.tofile}
  
${basedir}/src/it/java
  
org.apache.phoenix.end2end.NeedsOwnMiniClusterTest



[1/2] phoenix git commit: PHOENIX-2824 PhoenixTransactionalIndexer rollback doesn't work correctly

2016-05-05 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/master 596726089 -> 491fc54d9


PHOENIX-2824 PhoenixTransactionalIndexer rollback doesn't work correctly


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

Branch: refs/heads/master
Commit: f4897fd941749dfb22cf449dcda9943984850dca
Parents: 5967260
Author: James Taylor 
Authored: Thu May 5 15:58:02 2016 -0700
Committer: James Taylor 
Committed: Thu May 5 15:58:02 2016 -0700

--
 .../org/apache/phoenix/tx/TxCheckpointIT.java   | 22 +-
 .../index/PhoenixTransactionalIndexer.java  | 24 
 2 files changed, 30 insertions(+), 16 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f4897fd9/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
index c7fc053..11b587a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/tx/TxCheckpointIT.java
@@ -37,7 +37,6 @@ import org.apache.phoenix.end2end.BaseHBaseManagedTimeIT;
 import org.apache.phoenix.end2end.Shadower;
 import org.apache.phoenix.execute.MutationState;
 import org.apache.phoenix.jdbc.PhoenixConnection;
-import org.apache.phoenix.query.BaseTest;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.ReadOnlyProps;
@@ -49,10 +48,10 @@ import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
 import org.junit.runners.Parameterized.Parameters;
 
-import com.google.common.collect.Maps;
-
 import co.cask.tephra.Transaction.VisibilityLevel;
 
+import com.google.common.collect.Maps;
+
 @RunWith(Parameterized.class)
 public class TxCheckpointIT extends BaseHBaseManagedTimeIT {

@@ -110,14 +109,25 @@ public class TxCheckpointIT extends 
BaseHBaseManagedTimeIT {
 }
 
 @Test
-public void testRollbackOfUncommittedDelete() throws Exception {
+public void testRollbackOfUncommittedDeleteSingleCol() throws Exception {
+String indexDDL = "CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1) INCLUDE(v2)";
+testRollbackOfUncommittedDelete(indexDDL);
+}
+
+@Test
+public void testRollbackOfUncommittedDeleteMultiCol() throws Exception {
+String indexDDL = "CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1, v2)";
+testRollbackOfUncommittedDelete(indexDDL);
+}
+
+private void testRollbackOfUncommittedDelete(String indexDDL) throws 
Exception {
 Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 Connection conn = DriverManager.getConnection(getUrl(), props);
 conn.setAutoCommit(false);
 try {
 Statement stmt = conn.createStatement();
 stmt.execute("CREATE TABLE " + fullTableName + "(k VARCHAR PRIMARY 
KEY, v1 VARCHAR, v2 VARCHAR)"+(!mutable? " IMMUTABLE_ROWS=true" : ""));
-stmt.execute("CREATE "+(localIndex? "LOCAL " : "")+"INDEX " + 
indexName + " ON " + fullTableName + " (v1) INCLUDE(v2)");
+stmt.execute(indexDDL);
 
 stmt.executeUpdate("upsert into " + fullTableName + " values('x1', 
'y1', 'a1')");
 stmt.executeUpdate("upsert into " + fullTableName + " values('x2', 
'y2', 'a2')");
@@ -182,7 +192,7 @@ public class TxCheckpointIT extends BaseHBaseManagedTimeIT {
 //assert two rows in index table
 rs = stmt.executeQuery("select k, v1, v2 from " + fullTableName + 
" ORDER BY v1");
 assertTrue(rs.next());
-assertEquals("x1", rs.getString(1));
+assertEquals("x1", rs.getString(1)); // fails here
 assertEquals("y1", rs.getString(2));
 assertEquals("a1", rs.getString(3));
 assertTrue(rs.next());

http://git-wip-us.apache.org/repos/asf/phoenix/blob/f4897fd9/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java
index e4c106e..d42e468 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixTransactionalIndexer.java

Jenkins build is back to normal : Phoenix | Master #1217

2016-05-05 Thread Apache Jenkins Server
See 



phoenix git commit: Add PreparedStatement tests

2016-05-05 Thread maryannxue
Repository: phoenix
Updated Branches:
  refs/heads/calcite 7c662fd35 -> d3b227a18


Add PreparedStatement tests


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

Branch: refs/heads/calcite
Commit: d3b227a18e3df797e8866aa771719f28aa7b17db
Parents: 7c662fd
Author: maryannxue 
Authored: Thu May 5 12:00:24 2016 -0400
Committer: maryannxue 
Committed: Thu May 5 12:00:24 2016 -0400

--
 .../apache/phoenix/calcite/BaseCalciteIT.java   |  4 
 .../apache/phoenix/calcite/CalciteDMLIT.java| 24 
 2 files changed, 28 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/d3b227a1/phoenix-core/src/it/java/org/apache/phoenix/calcite/BaseCalciteIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/calcite/BaseCalciteIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/calcite/BaseCalciteIT.java
index dc21809..9ec77c5 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/calcite/BaseCalciteIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/calcite/BaseCalciteIT.java
@@ -185,6 +185,10 @@ public class BaseCalciteIT extends BaseClientManagedTimeIT 
{
 statement.close();
 return this;
 }
+
+public PreparedStatement prepareStatement() throws SQLException {
+return start.getConnection().prepareStatement(sql);
+}
 
 public void close() {
 start.close();

http://git-wip-us.apache.org/repos/asf/phoenix/blob/d3b227a1/phoenix-core/src/it/java/org/apache/phoenix/calcite/CalciteDMLIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/calcite/CalciteDMLIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/calcite/CalciteDMLIT.java
index 4354fd5..01cadf1 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/calcite/CalciteDMLIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/calcite/CalciteDMLIT.java
@@ -1,10 +1,16 @@
 package org.apache.phoenix.calcite;
 
 import static org.apache.phoenix.util.TestUtil.ATABLE_NAME;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
 import java.util.Properties;
 
 import org.junit.Before;
+import org.junit.Ignore;
 import org.junit.Test;
 
 public class CalciteDMLIT extends BaseCalciteIT {
@@ -28,6 +34,14 @@ public class CalciteDMLIT extends BaseCalciteIT {
 start(false, 1L).sql("select organization_id, entity_id from aTable")
 .resultIs(0, new Object[][] {{"1  ", "1  
"}})
 .close();
+final Sql sql = start(PROPS).sql("select * from atable where 
organization_id = ?");
+PreparedStatement stmt = sql.prepareStatement();
+stmt.setString(1, "1");
+ResultSet rs = stmt.executeQuery();
+assertTrue(rs.next());
+assertEquals("1  ", rs.getString(2));
+assertFalse(rs.next());
+sql.close();
 }
 
 @Test
@@ -56,4 +70,14 @@ public class CalciteDMLIT extends BaseCalciteIT {
 {3, 30, "00300", null, "03000"}})
 .close();
 }
+
+@Ignore
+@Test public void testUpsertWithPreparedStatement() throws Exception {
+final Sql sql = start(PROPS).sql("upsert into atable(organization_id, 
entity_id) values(?, ?)");
+PreparedStatement stmt = sql.prepareStatement();
+stmt.setString(1, "x");
+stmt.setString(2, "x");
+stmt.execute();
+sql.close();
+}
 }



phoenix git commit: PHOENIX-2878 CURRENT_TIME fails to provide correct time when projected table is using

2016-05-05 Thread maryannxue
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 ffb481040 -> 032b186c5


PHOENIX-2878 CURRENT_TIME fails to provide correct time when projected table is 
using


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

Branch: refs/heads/4.x-HBase-1.1
Commit: 032b186c59af9609e788819ff734d0b6b6cdd583
Parents: ffb4810
Author: maryannxue 
Authored: Thu May 5 11:32:33 2016 -0400
Committer: maryannxue 
Committed: Thu May 5 11:32:33 2016 -0400

--
 .../org/apache/phoenix/end2end/DateTimeIT.java | 17 +
 .../apache/phoenix/compile/StatementContext.java   |  5 -
 2 files changed, 21 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/032b186c/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
index 7e407bc..461816a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
@@ -715,4 +715,21 @@ public class DateTimeIT extends BaseHBaseManagedTimeIT {
 assertEquals(3, rs.getTimestamp(2).getNanos());
 assertFalse(rs.next());
 }
+
+@Test
+public void testCurrentTimeWithProjectedTable () throws Exception {
+String ddl = "CREATE TABLE T1 ( ID integer primary key)";
+conn.createStatement().execute(ddl);
+ddl = "CREATE TABLE T2 ( ID integer primary key)";
+conn.createStatement().execute(ddl);
+String ups = "UPSERT INTO T1 VALUES (1)";
+conn.createStatement().execute(ups);
+ups = "UPSERT INTO T2 VALUES (1)";
+conn.createStatement().execute(ups);
+conn.commit();
+ResultSet rs = conn.createStatement().executeQuery("select /*+ 
USE_SORT_MERGE_JOIN */ op" +
+".id, current_time() from t1 op where op.id in (select id from 
t2)");
+assertTrue(rs.next());
+assertEquals(new 
java.util.Date().getYear(),rs.getTimestamp(2).getYear());
+}
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/032b186c/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
index 9f4562a..8ced589 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
@@ -39,6 +39,7 @@ import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.schema.MetaDataClient;
 import org.apache.phoenix.schema.PColumn;
 import org.apache.phoenix.schema.PTable;
+import org.apache.phoenix.schema.PTableType;
 import org.apache.phoenix.schema.TableRef;
 import org.apache.phoenix.util.DateUtil;
 import org.apache.phoenix.util.NumberUtil;
@@ -253,7 +254,9 @@ public class StatementContext {
 public long getCurrentTime() throws SQLException {
 long ts = this.getCurrentTable().getTimeStamp();
 // if the table is transactional then it is only resolved once per 
query, so we can't use the table timestamp
-if (!this.getCurrentTable().getTable().isTransactional() && ts != 
QueryConstants.UNSET_TIMESTAMP) {
+if (this.getCurrentTable().getTable().getType() != 
PTableType.PROJECTED && !this
+.getCurrentTable().getTable().isTransactional() && ts != 
QueryConstants
+.UNSET_TIMESTAMP) {
 return ts;
 }
 if (currentTime != QueryConstants.UNSET_TIMESTAMP) {



phoenix git commit: PHOENIX-2878 CURRENT_TIME fails to provide correct time when projected table is using

2016-05-05 Thread maryannxue
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.0 2f114d2b2 -> 01cc2a02b


PHOENIX-2878 CURRENT_TIME fails to provide correct time when projected table is 
using


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

Branch: refs/heads/4.x-HBase-1.0
Commit: 01cc2a02b8bca652b592a4455f378a8a1be11ad6
Parents: 2f114d2
Author: maryannxue 
Authored: Thu May 5 10:49:42 2016 -0400
Committer: maryannxue 
Committed: Thu May 5 10:49:42 2016 -0400

--
 .../org/apache/phoenix/end2end/DateTimeIT.java | 17 +
 .../apache/phoenix/compile/StatementContext.java   |  5 -
 2 files changed, 21 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/01cc2a02/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
index 7e407bc..461816a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
@@ -715,4 +715,21 @@ public class DateTimeIT extends BaseHBaseManagedTimeIT {
 assertEquals(3, rs.getTimestamp(2).getNanos());
 assertFalse(rs.next());
 }
+
+@Test
+public void testCurrentTimeWithProjectedTable () throws Exception {
+String ddl = "CREATE TABLE T1 ( ID integer primary key)";
+conn.createStatement().execute(ddl);
+ddl = "CREATE TABLE T2 ( ID integer primary key)";
+conn.createStatement().execute(ddl);
+String ups = "UPSERT INTO T1 VALUES (1)";
+conn.createStatement().execute(ups);
+ups = "UPSERT INTO T2 VALUES (1)";
+conn.createStatement().execute(ups);
+conn.commit();
+ResultSet rs = conn.createStatement().executeQuery("select /*+ 
USE_SORT_MERGE_JOIN */ op" +
+".id, current_time() from t1 op where op.id in (select id from 
t2)");
+assertTrue(rs.next());
+assertEquals(new 
java.util.Date().getYear(),rs.getTimestamp(2).getYear());
+}
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/01cc2a02/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
index 9f4562a..8ced589 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
@@ -39,6 +39,7 @@ import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.schema.MetaDataClient;
 import org.apache.phoenix.schema.PColumn;
 import org.apache.phoenix.schema.PTable;
+import org.apache.phoenix.schema.PTableType;
 import org.apache.phoenix.schema.TableRef;
 import org.apache.phoenix.util.DateUtil;
 import org.apache.phoenix.util.NumberUtil;
@@ -253,7 +254,9 @@ public class StatementContext {
 public long getCurrentTime() throws SQLException {
 long ts = this.getCurrentTable().getTimeStamp();
 // if the table is transactional then it is only resolved once per 
query, so we can't use the table timestamp
-if (!this.getCurrentTable().getTable().isTransactional() && ts != 
QueryConstants.UNSET_TIMESTAMP) {
+if (this.getCurrentTable().getTable().getType() != 
PTableType.PROJECTED && !this
+.getCurrentTable().getTable().isTransactional() && ts != 
QueryConstants
+.UNSET_TIMESTAMP) {
 return ts;
 }
 if (currentTime != QueryConstants.UNSET_TIMESTAMP) {



phoenix git commit: PHOENIX-2878 CURRENT_TIME fails to provide correct time when projected table is using

2016-05-05 Thread maryannxue
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 5cd74454b -> a69ecfac1


PHOENIX-2878 CURRENT_TIME fails to provide correct time when projected table is 
using


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

Branch: refs/heads/4.x-HBase-0.98
Commit: a69ecfac18061a4117e2f1300a2bf85dd94a57be
Parents: 5cd7445
Author: maryannxue 
Authored: Thu May 5 10:53:32 2016 -0400
Committer: maryannxue 
Committed: Thu May 5 10:53:32 2016 -0400

--
 .../org/apache/phoenix/end2end/DateTimeIT.java | 17 +
 .../apache/phoenix/compile/StatementContext.java   |  5 -
 2 files changed, 21 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/a69ecfac/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
index 7e407bc..461816a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
@@ -715,4 +715,21 @@ public class DateTimeIT extends BaseHBaseManagedTimeIT {
 assertEquals(3, rs.getTimestamp(2).getNanos());
 assertFalse(rs.next());
 }
+
+@Test
+public void testCurrentTimeWithProjectedTable () throws Exception {
+String ddl = "CREATE TABLE T1 ( ID integer primary key)";
+conn.createStatement().execute(ddl);
+ddl = "CREATE TABLE T2 ( ID integer primary key)";
+conn.createStatement().execute(ddl);
+String ups = "UPSERT INTO T1 VALUES (1)";
+conn.createStatement().execute(ups);
+ups = "UPSERT INTO T2 VALUES (1)";
+conn.createStatement().execute(ups);
+conn.commit();
+ResultSet rs = conn.createStatement().executeQuery("select /*+ 
USE_SORT_MERGE_JOIN */ op" +
+".id, current_time() from t1 op where op.id in (select id from 
t2)");
+assertTrue(rs.next());
+assertEquals(new 
java.util.Date().getYear(),rs.getTimestamp(2).getYear());
+}
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/a69ecfac/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
index 9f4562a..8ced589 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
@@ -39,6 +39,7 @@ import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.schema.MetaDataClient;
 import org.apache.phoenix.schema.PColumn;
 import org.apache.phoenix.schema.PTable;
+import org.apache.phoenix.schema.PTableType;
 import org.apache.phoenix.schema.TableRef;
 import org.apache.phoenix.util.DateUtil;
 import org.apache.phoenix.util.NumberUtil;
@@ -253,7 +254,9 @@ public class StatementContext {
 public long getCurrentTime() throws SQLException {
 long ts = this.getCurrentTable().getTimeStamp();
 // if the table is transactional then it is only resolved once per 
query, so we can't use the table timestamp
-if (!this.getCurrentTable().getTable().isTransactional() && ts != 
QueryConstants.UNSET_TIMESTAMP) {
+if (this.getCurrentTable().getTable().getType() != 
PTableType.PROJECTED && !this
+.getCurrentTable().getTable().isTransactional() && ts != 
QueryConstants
+.UNSET_TIMESTAMP) {
 return ts;
 }
 if (currentTime != QueryConstants.UNSET_TIMESTAMP) {



phoenix git commit: PHOENIX-2878 CURRENT_TIME fails to provide correct time when projected table is using

2016-05-05 Thread maryannxue
Repository: phoenix
Updated Branches:
  refs/heads/master 32cf841c4 -> 596726089


PHOENIX-2878 CURRENT_TIME fails to provide correct time when projected table is 
using


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

Branch: refs/heads/master
Commit: 596726089a530e261aee27b7680466942a0d1b4c
Parents: 32cf841
Author: maryannxue 
Authored: Thu May 5 10:45:02 2016 -0400
Committer: maryannxue 
Committed: Thu May 5 10:45:02 2016 -0400

--
 .../org/apache/phoenix/end2end/DateTimeIT.java | 17 +
 .../apache/phoenix/compile/StatementContext.java   |  5 -
 2 files changed, 21 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/59672608/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
index 7e407bc..461816a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
@@ -715,4 +715,21 @@ public class DateTimeIT extends BaseHBaseManagedTimeIT {
 assertEquals(3, rs.getTimestamp(2).getNanos());
 assertFalse(rs.next());
 }
+
+@Test
+public void testCurrentTimeWithProjectedTable () throws Exception {
+String ddl = "CREATE TABLE T1 ( ID integer primary key)";
+conn.createStatement().execute(ddl);
+ddl = "CREATE TABLE T2 ( ID integer primary key)";
+conn.createStatement().execute(ddl);
+String ups = "UPSERT INTO T1 VALUES (1)";
+conn.createStatement().execute(ups);
+ups = "UPSERT INTO T2 VALUES (1)";
+conn.createStatement().execute(ups);
+conn.commit();
+ResultSet rs = conn.createStatement().executeQuery("select /*+ 
USE_SORT_MERGE_JOIN */ op" +
+".id, current_time() from t1 op where op.id in (select id from 
t2)");
+assertTrue(rs.next());
+assertEquals(new 
java.util.Date().getYear(),rs.getTimestamp(2).getYear());
+}
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/59672608/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
index 9f4562a..8ced589 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/StatementContext.java
@@ -39,6 +39,7 @@ import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.schema.MetaDataClient;
 import org.apache.phoenix.schema.PColumn;
 import org.apache.phoenix.schema.PTable;
+import org.apache.phoenix.schema.PTableType;
 import org.apache.phoenix.schema.TableRef;
 import org.apache.phoenix.util.DateUtil;
 import org.apache.phoenix.util.NumberUtil;
@@ -253,7 +254,9 @@ public class StatementContext {
 public long getCurrentTime() throws SQLException {
 long ts = this.getCurrentTable().getTimeStamp();
 // if the table is transactional then it is only resolved once per 
query, so we can't use the table timestamp
-if (!this.getCurrentTable().getTable().isTransactional() && ts != 
QueryConstants.UNSET_TIMESTAMP) {
+if (this.getCurrentTable().getTable().getType() != 
PTableType.PROJECTED && !this
+.getCurrentTable().getTable().isTransactional() && ts != 
QueryConstants
+.UNSET_TIMESTAMP) {
 return ts;
 }
 if (currentTime != QueryConstants.UNSET_TIMESTAMP) {



phoenix git commit: Add transaction related code for query and DML (PHOENIX-2197 Support DML in Phoenix/Calcite integration)

2016-05-05 Thread maryannxue
Repository: phoenix
Updated Branches:
  refs/heads/calcite 739b68cf2 -> 7c662fd35


Add transaction related code for query and DML (PHOENIX-2197 Support DML in 
Phoenix/Calcite integration)


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

Branch: refs/heads/calcite
Commit: 7c662fd35d8095c1f1096a2fd74eb0bcb58659ab
Parents: 739b68c
Author: maryannxue 
Authored: Thu May 5 10:41:47 2016 -0400
Committer: maryannxue 
Committed: Thu May 5 10:41:47 2016 -0400

--
 .../apache/phoenix/calcite/BaseCalciteIT.java   |   1 +
 .../apache/phoenix/calcite/CalciteRuntime.java  |  46 -
 .../phoenix/calcite/rel/PhoenixTableModify.java | 200 ++-
 3 files changed, 147 insertions(+), 100 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/7c662fd3/phoenix-core/src/it/java/org/apache/phoenix/calcite/BaseCalciteIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/calcite/BaseCalciteIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/calcite/BaseCalciteIT.java
index cb7d01d..dc21809 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/calcite/BaseCalciteIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/calcite/BaseCalciteIT.java
@@ -122,6 +122,7 @@ public class BaseCalciteIT extends BaseClientManagedTimeIT {
 public void close() {
 if (connection != null) {
 try {
+connection.commit();
 connection.close();
 } catch (SQLException e) {
 throw new RuntimeException(e);

http://git-wip-us.apache.org/repos/asf/phoenix/blob/7c662fd3/phoenix-core/src/main/java/org/apache/phoenix/calcite/CalciteRuntime.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/calcite/CalciteRuntime.java 
b/phoenix-core/src/main/java/org/apache/phoenix/calcite/CalciteRuntime.java
index a3feffa..df036a9 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/calcite/CalciteRuntime.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/calcite/CalciteRuntime.java
@@ -8,9 +8,12 @@ import org.apache.phoenix.compile.ColumnProjector;
 import org.apache.phoenix.compile.MutationPlan;
 import org.apache.phoenix.compile.QueryPlan;
 import org.apache.phoenix.compile.RowProjector;
+import org.apache.phoenix.compile.StatementContext;
 import org.apache.phoenix.compile.StatementPlan;
 import org.apache.phoenix.execute.MutationState;
 import org.apache.phoenix.iterate.ResultIterator;
+import org.apache.phoenix.jdbc.PhoenixConnection;
+import org.apache.phoenix.schema.TableRef;
 import org.apache.phoenix.schema.tuple.Tuple;
 import org.apache.phoenix.schema.types.PDataType;
 import org.apache.phoenix.schema.types.PDate;
@@ -34,6 +37,7 @@ import org.apache.phoenix.schema.types.PhoenixArray;
 
 import java.sql.SQLException;
 import java.sql.Timestamp;
+import java.util.Iterator;
 
 /**
  * Methods used by code generated by Calcite.
@@ -60,13 +64,26 @@ public class CalciteRuntime {
 };
 }
 
-public static Enumerator toEnumerator(QueryPlan plan) throws 
SQLException {
-final ResultIterator iterator = plan.iterator();
+public static Enumerator toEnumerator(final QueryPlan plan) throws 
SQLException {
 final RowProjector rowProjector = plan.getProjector();
 final int count = rowProjector.getColumnCount();
 return new Enumerator() {
+ResultIterator iterator = null;
 Object current;
-private final ImmutableBytesWritable ptr = new 
ImmutableBytesWritable();
+final ImmutableBytesWritable ptr = new ImmutableBytesWritable();
+
+void init() throws SQLException {
+final StatementContext context = plan.getContext();
+final PhoenixConnection connection = context.getConnection();
+Iterator tableRefs = plan.getSourceRefs().iterator();
+connection.getMutationState().sendUncommitted(tableRefs);
+iterator = plan.iterator();
+context.getOverallQueryMetrics().startQuery();
+if (connection.getAutoCommit()) {
+connection.commit();
+}
+connection.incrementStatementExecutionCounter();   
 
+}
 
 @Override
 public Object current() {
@@ -76,6 +93,9 @@ public class CalciteRuntime {
 @Override
 public boolean moveNext() {
 

Build failed in Jenkins: Phoenix | Master #1216

2016-05-05 Thread Apache Jenkins Server
See 

Changes:

[ankitsinghal59] PHOENIX-2845 Timestamp ignores nanos in literal 
expressions(Sergey

--
[...truncated 1803 lines...]
[INFO] Copying guice-assistedinject-3.0.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/guice-assistedinject-3.0.jar
[INFO] Copying guice-servlet-3.0.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/guice-servlet-3.0.jar
[INFO] Copying protobuf-java-2.5.0.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/protobuf-java-2.5.0.jar
[INFO] Copying java-xmlbuilder-0.4.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/java-xmlbuilder-0.4.jar
[INFO] Copying jsch-0.1.42.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/jsch-0.1.42.jar
[INFO] Copying bonecp-0.8.0.RELEASE.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/bonecp-0.8.0.RELEASE.jar
[INFO] Copying disruptor-3.3.0.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/disruptor-3.3.0.jar
[INFO] Copying jersey-client-1.9.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/jersey-client-1.9.jar
[INFO] Copying jersey-core-1.9.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/jersey-core-1.9.jar
[INFO] Copying jersey-json-1.9.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/jersey-json-1.9.jar
[INFO] Copying jersey-server-1.9.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/jersey-server-1.9.jar
[INFO] Copying jersey-guice-1.9.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/jersey-guice-1.9.jar
[INFO] Copying jaxb-impl-2.2.3-1.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/jaxb-impl-2.2.3-1.jar
[INFO] Copying paranamer-2.3.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/paranamer-2.3.jar
[INFO] Copying parquet-hadoop-bundle-1.6.0.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/parquet-hadoop-bundle-1.6.0.jar
[INFO] Copying metrics-core-2.2.0.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/metrics-core-2.2.0.jar
[INFO] Copying commons-beanutils-1.7.0.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-beanutils-1.7.0.jar
[INFO] Copying commons-beanutils-core-1.8.0.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-beanutils-core-1.8.0.jar
[INFO] Copying commons-cli-1.2.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-cli-1.2.jar
[INFO] Copying commons-codec-1.7.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-codec-1.7.jar
[INFO] Copying commons-collections-3.2.2.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-collections-3.2.2.jar
[INFO] Copying commons-configuration-1.6.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-configuration-1.6.jar
[INFO] Copying commons-daemon-1.0.13.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-daemon-1.0.13.jar
[INFO] Copying commons-dbcp-1.4.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-dbcp-1.4.jar
[INFO] Copying commons-digester-1.8.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-digester-1.8.jar
[INFO] Copying commons-el-1.0.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-el-1.0.jar
[INFO] Copying commons-fileupload-1.2.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-fileupload-1.2.jar
[INFO] Copying commons-httpclient-3.0.1.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-httpclient-3.0.1.jar
[INFO] Copying commons-io-2.4.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-io-2.4.jar
[INFO] Copying commons-lang-2.6.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-lang-2.6.jar
[INFO] Copying commons-logging-1.2.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-logging-1.2.jar
[INFO] Copying commons-net-3.1.jar to 
/x1/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-hive/target/dependency/commons-net-3.1.jar
[INFO] Copying 

svn commit: r1742379 - /phoenix/site/publish/team.html

2016-05-05 Thread ankit
Author: ankit
Date: Thu May  5 08:52:22 2016
New Revision: 1742379

URL: http://svn.apache.org/viewvc?rev=1742379=rev
Log:
Added Ankit Singhal as PMC

Modified:
phoenix/site/publish/team.html

Modified: phoenix/site/publish/team.html
URL: 
http://svn.apache.org/viewvc/phoenix/site/publish/team.html?rev=1742379=1742378=1742379=diff
==
--- phoenix/site/publish/team.html (original)
+++ phoenix/site/publish/team.html Thu May  5 08:52:22 2016
@@ -1,7 +1,7 @@
 
 
 
 
@@ -164,137 +164,137 @@
PMC 


+   Ankit Singhal  
+   Hortonworks  
+   mailto:an...@apache.org;>an...@apache.org  
+   PMC 
+   
+   
Anoop Sam John  
Intel  
mailto:anoopsamj...@apache.org;>anoopsamj...@apache.org  
PMC 

-   
+   
Devaraj Das  
Hortonworks  
mailto:d...@apache.org;>d...@apache.org  
PMC 

-   
+   
Eli Levine  
Salesforce  
mailto:elilev...@apache.org;>elilev...@apache.org  
PMC 

-   
+   
Enis Soztutar  
Hortonworks  
mailto:e...@apache.org;>e...@apache.org  
PMC 

-   
+   
Gabriel Reid  
NGDATA  
mailto:gr...@apache.org;>gr...@apache.org  
PMC 

-   
+   
James Taylor  
Salesforce  
mailto:jamestay...@apache.org;>jamestay...@apache.org  
PMC 

-   
+   
Jeffrey Zhong  
Elementum  
mailto:jeffr...@apache.org;>jeffr...@apache.org  
PMC 

-   
+   
Jesse Yates  
Fineo  
mailto:jya...@apache.org;>jya...@apache.org  
PMC 

-   
+   
Josh Mahonin  
Interset  
mailto:jmaho...@apache.org;>jmaho...@apache.org  
PMC 

-   
+   
Lars Hofhansl  
Salesforce  
mailto:la...@apache.org;>la...@apache.org  
PMC 

-   
+   
Maryann Xue  
Intel  
mailto:maryann...@apache.org;>maryann...@apache.org  
PMC 

-   
+   
Michael Stack  
Cloudera  
mailto:st...@apache.org;>st...@apache.org  
PMC 

-   
+   
Mujtaba Chohan  
Salesforce  
mailto:mujt...@apache.org;>mujt...@apache.org  
PMC 

-   
+   
Nick Dimiduk  
Icebrg  
mailto:ndimi...@apache.org;>ndimi...@apache.org  
PMC 

-   
+   
Rajeshbabu Chintaguntla  
Hortonworks  
mailto:rajeshb...@apache.org;>rajeshb...@apache.org  
PMC 

-   
+   
Ramkrishna Vasudevan  
Intel  
mailto:ramkris...@apache.org;>ramkris...@apache.org  
PMC 

-   
+   
Ravi Magham  
Bazaarvoice  
mailto:ravimag...@apache.org;>ravimag...@apache.org  
PMC 

-   
+   
Samarth Jain  
Salesforce  
mailto:sama...@apache.org;>sama...@apache.org  
PMC 

-   
+   
Simon Toens  
Salesforce  
mailto:sto...@apache.org;>sto...@apache.org  
PMC 

-   
+   
Steven Noels  
NGDATA  
mailto:stev...@apache.org;>stev...@apache.org  
PMC 

-   
+   
Thomas D’Silva  
Salesforce  
mailto:tdsi...@apache.org;>tdsi...@apache.org  
PMC 

-   
-   Ankit Singhal  
-   Hortonworks  
-   mailto:an...@apache.org;>an...@apache.org  
-   Committer 
-   

Cody Marcel  
Salesforce  




phoenix git commit: PHOENIX-2845 Addendum Timestamp ignores nanos in literal expressions

2016-05-05 Thread ankit
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.0 3507a9458 -> 2f114d2b2


PHOENIX-2845 Addendum Timestamp ignores nanos in literal expressions


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

Branch: refs/heads/4.x-HBase-1.0
Commit: 2f114d2b2dbf06df2bbe740ad011874924c12079
Parents: 3507a94
Author: Ankit Singhal 
Authored: Thu May 5 13:23:28 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 13:23:28 2016 +0530

--
 phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java | 1 -
 1 file changed, 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/2f114d2b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
--
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java 
b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
index 557d8ed..5032c38 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
@@ -32,7 +32,6 @@ import java.util.List;
 import java.util.TimeZone;
 
 import org.apache.commons.lang.time.FastDateFormat;
-import org.apache.hadoop.hbase.exceptions.IllegalArgumentIOException;
 import org.apache.phoenix.schema.IllegalDataException;
 import org.apache.phoenix.schema.types.PDataType;
 import org.joda.time.DateTimeZone;



phoenix git commit: PHOENIX-2845 Addendum Timestamp ignores nanos in literal expressions

2016-05-05 Thread ankit
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 f887f4175 -> 5cd74454b


PHOENIX-2845 Addendum Timestamp ignores nanos in literal expressions


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

Branch: refs/heads/4.x-HBase-0.98
Commit: 5cd74454bf2983684ec6e9d4f9c200919f20fb8f
Parents: f887f41
Author: Ankit Singhal 
Authored: Thu May 5 13:10:22 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 13:10:22 2016 +0530

--
 phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java | 1 -
 1 file changed, 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/5cd74454/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
--
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java 
b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
index 557d8ed..5032c38 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
@@ -32,7 +32,6 @@ import java.util.List;
 import java.util.TimeZone;
 
 import org.apache.commons.lang.time.FastDateFormat;
-import org.apache.hadoop.hbase.exceptions.IllegalArgumentIOException;
 import org.apache.phoenix.schema.IllegalDataException;
 import org.apache.phoenix.schema.types.PDataType;
 import org.joda.time.DateTimeZone;



Build failed in Jenkins: Phoenix-4.x-HBase-1.0 #461

2016-05-05 Thread Apache Jenkins Server
See 

Changes:

[ankitsinghal59] PHOENIX-2874 Delete schemas also during clean up after test

[ankitsinghal59] PHOENIX-2863 Let's roll up minor version to 8 (4.8.0) because 
of

--
[...truncated 738 lines...]
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.282 sec - in 
org.apache.phoenix.end2end.MD5FunctionIT
Running org.apache.phoenix.end2end.PrimitiveTypeIT
Running org.apache.phoenix.end2end.PowerFunctionEnd2EndIT
Running org.apache.phoenix.end2end.QueryMoreIT
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.307 sec - in 
org.apache.phoenix.end2end.PrimitiveTypeIT
Running org.apache.phoenix.end2end.RTrimFunctionIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.997 sec - in 
org.apache.phoenix.end2end.PowerFunctionEnd2EndIT
Running org.apache.phoenix.end2end.ReadOnlyIT
Tests run: 26, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 25.835 sec - 
in org.apache.phoenix.end2end.ArithmeticQueryIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.553 sec - in 
org.apache.phoenix.end2end.RTrimFunctionIT
Running org.apache.phoenix.end2end.ReverseFunctionIT
Running org.apache.phoenix.end2end.RegexpSplitFunctionIT
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.482 sec - in 
org.apache.phoenix.end2end.RegexpSplitFunctionIT
Running org.apache.phoenix.end2end.RoundFloorCeilFunctionsEnd2EndIT
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.961 sec - in 
org.apache.phoenix.end2end.ReverseFunctionIT
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.764 sec - in 
org.apache.phoenix.end2end.NthValueFunctionIT
Running org.apache.phoenix.end2end.SerialIteratorsIT
Running org.apache.phoenix.end2end.ServerExceptionIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.912 sec - in 
org.apache.phoenix.end2end.ServerExceptionIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7 sec - in 
org.apache.phoenix.end2end.ReadOnlyIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.987 sec - in 
org.apache.phoenix.end2end.SerialIteratorsIT
Running org.apache.phoenix.end2end.SortOrderIT
Running org.apache.phoenix.end2end.StatementHintsIT
Running org.apache.phoenix.end2end.SignFunctionEnd2EndIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.072 sec - in 
org.apache.phoenix.end2end.StatementHintsIT
Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.009 sec - in 
org.apache.phoenix.end2end.RoundFloorCeilFunctionsEnd2EndIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.662 sec - in 
org.apache.phoenix.end2end.SignFunctionEnd2EndIT
Running org.apache.phoenix.end2end.TimezoneOffsetFunctionIT
Running org.apache.phoenix.end2end.StringToArrayFunctionIT
Running org.apache.phoenix.end2end.StoreNullsIT
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.087 sec - in 
org.apache.phoenix.end2end.TimezoneOffsetFunctionIT
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.517 sec - in 
org.apache.phoenix.end2end.QueryMoreIT
Running org.apache.phoenix.end2end.ToCharFunctionIT
Running org.apache.phoenix.end2end.UpsertSelectAutoCommitIT
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.4 sec - in 
org.apache.phoenix.end2end.StringToArrayFunctionIT
Running org.apache.phoenix.end2end.salted.SaltedTableUpsertSelectIT
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.22 sec - in 
org.apache.phoenix.end2end.UpsertSelectAutoCommitIT
Running org.apache.phoenix.end2end.salted.SaltedTableVarLengthRowKeyIT
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.527 sec - in 
org.apache.phoenix.end2end.StoreNullsIT
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.456 sec - in 
org.apache.phoenix.end2end.salted.SaltedTableVarLengthRowKeyIT
Running org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.182 sec - in 
org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.409 sec - 
in org.apache.phoenix.end2end.ToCharFunctionIT
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.434 sec - in 
org.apache.phoenix.end2end.salted.SaltedTableUpsertSelectIT
Tests run: 45, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.523 sec - 
in org.apache.phoenix.end2end.SortOrderIT

Results :

Tests run: 335, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-failsafe-plugin:2.19.1:integration-test 
(NeedTheirOwnClusterTests) @ phoenix-core ---

---
 T E S T S
---
Running 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndUncompressedWALInHBase_094_9_IT
Running 

Build failed in Jenkins: Phoenix | 4.x-HBase-0.98 #1138

2016-05-05 Thread Apache Jenkins Server
See 

Changes:

[ankitsinghal59] PHOENIX-2874 Delete schemas also during clean up after test

[ankitsinghal59] PHOENIX-2863 Let's roll up minor version to 8 (4.8.0) because 
of

[ankitsinghal59] PHOENIX-2845 Timestamp ignores nanos in literal 
expressions(Sergey

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on ubuntu-6 (docker Ubuntu ubuntu yahoo-not-h2) in workspace 

 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/phoenix.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/phoenix.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/4.x-HBase-0.98^{commit} # timeout=10
Checking out Revision f887f41755891633200d4e51b42034cb9f88948e 
(origin/4.x-HBase-0.98)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f f887f41755891633200d4e51b42034cb9f88948e
 > git rev-list dab088faeaf6eb5ddb716cdc831c97455e9c1c9f # timeout=10
No emails were triggered.
[EnvInject] - Executing scripts and injecting environment variables after the 
SCM step.
[EnvInject] - Injecting as environment variables the properties content 
MAVEN_OPTS=-Xmx3G

[EnvInject] - Variables injected successfully.
[Phoenix-4.x-HBase-0.98] $ /bin/bash -xe /tmp/hudson3995058301241374977.sh
+ echo 'DELETING ~/.m2/repository/org/apache/htrace. See 
https://issues.apache.org/jira/browse/PHOENIX-1802'
DELETING ~/.m2/repository/org/apache/htrace. See 
https://issues.apache.org/jira/browse/PHOENIX-1802
+ echo 'CURRENT CONTENT:'
CURRENT CONTENT:
+ ls /home/jenkins/.m2/repository/org/apache/htrace
htrace
htrace-core
[Phoenix-4.x-HBase-0.98] $ /home/jenkins/tools/maven/apache-maven-3.0.4/bin/mvn 
-U clean install -Dcheckstyle.skip=true
[INFO] Scanning for projects...
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache Phoenix
[INFO] Phoenix Core
[INFO] Phoenix - Flume
[INFO] Phoenix - Pig
[INFO] Phoenix Query Server Client
[INFO] Phoenix Query Server
[INFO] Phoenix - Pherf
[INFO] Phoenix - Spark
[INFO] Phoenix - Hive
[INFO] Phoenix Assembly
[INFO] Phoenix - Tracing Web Application
[INFO] 
[INFO] 
[INFO] Building Apache Phoenix 4.8.0-HBase-0.98-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ phoenix ---
[INFO] Deleting 
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.13:check (validate) @ phoenix ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ phoenix ---
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ phoenix ---
[INFO] 
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ phoenix ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @ 
phoenix ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ phoenix ---
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.8.0-HBase-0.98-SNAPSHOT/phoenix-4.8.0-HBase-0.98-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.8.0-HBase-0.98-SNAPSHOT/phoenix-4.8.0-HBase-0.98-SNAPSHOT-tests.jar
[INFO] 
[INFO] 
[INFO] Building Phoenix Core 4.8.0-HBase-0.98-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ phoenix-core ---
[INFO] Deleting 

[INFO] 
[INFO] --- maven-checkstyle-plugin:2.13:check (validate) @ phoenix-core ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.9.1:add-test-source (add-test-source) @ 
phoenix-core ---
[INFO] Test Source directory: 

Build failed in Jenkins: Phoenix | Master #1215

2016-05-05 Thread Apache Jenkins Server
See 

Changes:

[ankitsinghal59] PHOENIX-2874 Delete schemas also during clean up after test

[ankitsinghal59] PHOENIX-2863 Let's roll up minor version to 8 (4.8.0) because 
of

--
[...truncated 9792 lines...]
  
SaltedTableVarLengthRowKeyIT>BaseHBaseManagedTimeTableReuseIT.doSetup:35->BaseTest.setUpTestDriver:630->BaseTest.setUpTestDriver:634->BaseTest.checkClusterInitialized:565->BaseTest.setUpTestCluster:578->BaseTest.initMiniCluster:687
 » Runtime
  
PhoenixQueryTimeoutIT>BaseHBaseManagedTimeTableReuseIT.doSetup:35->BaseTest.setUpTestDriver:630->BaseTest.setUpTestDriver:634->BaseTest.checkClusterInitialized:565->BaseTest.setUpTestCluster:578->BaseTest.initMiniCluster:687
 » Runtime

Tests run: 40, Failures: 0, Errors: 40, Skipped: 0

[INFO] 
[INFO] --- maven-failsafe-plugin:2.19.1:integration-test 
(NeedTheirOwnClusterTests) @ phoenix-core ---

---
 T E S T S
---
Running 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
Running 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndUncompressedWALInHBase_094_9_IT
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.441 sec <<< 
FAILURE! - in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndUncompressedWALInHBase_094_9_IT
testReplayEditsWrittenViaHRegion(org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndUncompressedWALInHBase_094_9_IT)
  Time elapsed: 11.439 sec  <<< ERROR!
java.lang.OutOfMemoryError: unable to create new native thread

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create GC thread. Out of system resources.
# An error report file with more information is saved as:
# 

Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 13.138 sec <<< 
FAILURE! - in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
testReplayEditsWrittenViaHRegion(org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT)
  Time elapsed: 13.117 sec  <<< ERROR!
java.lang.OutOfMemoryError: unable to create new native thread
at 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT.startCluster(WALReplayWithIndexWritesAndCompressedWALIT.java:138)
at 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT.setupCluster(WALReplayWithIndexWritesAndCompressedWALIT.java:111)
at 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT.setUp(WALReplayWithIndexWritesAndCompressedWALIT.java:100)

Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread
Running org.apache.phoenix.coprocessor.StatisticsCollectionRunTrackerIT
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.008 sec <<< 
FAILURE! - in org.apache.phoenix.coprocessor.StatisticsCollectionRunTrackerIT
org.apache.phoenix.coprocessor.StatisticsCollectionRunTrackerIT  Time elapsed: 
0.006 sec  <<< ERROR!
java.lang.RuntimeException: java.io.IOException: Shutting down
at 
org.apache.phoenix.coprocessor.StatisticsCollectionRunTrackerIT.doSetup(StatisticsCollectionRunTrackerIT.java:56)
Caused by: java.io.IOException: Shutting down
at 
org.apache.phoenix.coprocessor.StatisticsCollectionRunTrackerIT.doSetup(StatisticsCollectionRunTrackerIT.java:56)
Caused by: java.lang.RuntimeException: Failed construction of Master: class 
org.apache.hadoop.hbase.master.HMaster
at 
org.apache.phoenix.coprocessor.StatisticsCollectionRunTrackerIT.doSetup(StatisticsCollectionRunTrackerIT.java:56)
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
at 
org.apache.phoenix.coprocessor.StatisticsCollectionRunTrackerIT.doSetup(StatisticsCollectionRunTrackerIT.java:56)

org.apache.phoenix.coprocessor.StatisticsCollectionRunTrackerIT  Time elapsed: 
0.008 sec  <<< ERROR!
java.lang.OutOfMemoryError: unable to create new native thread

Running org.apache.phoenix.end2end.AlterTableIT
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.006 sec <<< 
FAILURE! - in org.apache.phoenix.end2end.AlterTableIT
org.apache.phoenix.end2end.AlterTableIT  Time elapsed: 0.006 sec  <<< ERROR!
java.lang.RuntimeException: java.io.IOException: Timed out waiting for Mini 
HDFS Cluster to start
at org.apache.phoenix.end2end.AlterTableIT.doSetup(AlterTableIT.java:90)
Caused by: java.io.IOException: Timed out waiting for Mini HDFS Cluster to start
at org.apache.phoenix.end2end.AlterTableIT.doSetup(AlterTableIT.java:90)

Running 

phoenix git commit: PHOENIX-2845 Timestamp ignores nanos in literal expressions(Sergey Soldatov)

2016-05-05 Thread ankit
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 7b1db0516 -> ffb481040


PHOENIX-2845 Timestamp ignores nanos in literal expressions(Sergey Soldatov)


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

Branch: refs/heads/4.x-HBase-1.1
Commit: ffb481040132af39d0690df17cf7990ad01cfdd4
Parents: 7b1db05
Author: Ankit Singhal 
Authored: Thu May 5 11:47:37 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 11:47:37 2016 +0530

--
 .../org/apache/phoenix/end2end/DateTimeIT.java  | 22 +
 .../apache/phoenix/end2end/UpsertValuesIT.java  |  1 +
 .../java/org/apache/phoenix/util/DateUtil.java  | 17 -
 .../org/apache/phoenix/util/DateUtilTest.java   | 25 
 4 files changed, 64 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/ffb48104/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
index af8f0c1..7e407bc 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
@@ -693,4 +693,26 @@ public class DateTimeIT extends BaseHBaseManagedTimeIT {
 long actualTime = rs.getDate(1).getTime();
 assertTrue(Math.abs(actualTime - expectedTime) < MILLIS_IN_DAY);
 }
+@Test
+public void testSelectBetweenNanos() throws Exception {
+String ddl =
+"CREATE TABLE IF NOT EXISTS N1 (k1 INTEGER NOT NULL PRIMARY 
KEY, ts " +
+"TIMESTAMP(3))";
+conn.createStatement().execute(ddl);
+String dml = "UPSERT INTO N1 VALUES (1, TIMESTAMP'2015-01-01 
00:00:00.1')";
+conn.createStatement().execute(dml);
+dml = "UPSERT INTO N1 VALUES (2, TIMESTAMP'2015-01-01 
00:00:00.5')";
+conn.createStatement().execute(dml);
+dml = "UPSERT INTO N1 VALUES (3, TIMESTAMP'2015-01-01 
00:00:00.3')";
+conn.createStatement().execute(dml);
+conn.commit();
+
+ResultSet rs = conn.createStatement().executeQuery("SELECT k1,ts from 
N1 where ts between" +
+" TIMESTAMP'2015-01-01 00:00:00.2' AND 
TIMESTAMP'2015-01-01 00:00:00" +
+".4'");
+assertTrue(rs.next());
+assertEquals(3, rs.getInt(1));
+assertEquals(3, rs.getTimestamp(2).getNanos());
+assertFalse(rs.next());
+}
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/ffb48104/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
index a7e70c1..5cefd7d 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
@@ -632,6 +632,7 @@ public class UpsertValuesIT extends BaseClientManagedTimeIT 
{
 
 Date date = toDate(dateStr);
 Timestamp timeStamp = new Timestamp(toDate(timeStampStr).getTime());
+timeStamp.setNanos(Timestamp.valueOf(timeStampStr).getNanos());
 Time time = new Time(toDate(timeStr).getTime());
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts 
+ 4));
 try {

http://git-wip-us.apache.org/repos/asf/phoenix/blob/ffb48104/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
--
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java 
b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
index 4d7c27c..557d8ed 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
@@ -32,6 +32,7 @@ import java.util.List;
 import java.util.TimeZone;
 
 import org.apache.commons.lang.time.FastDateFormat;
+import org.apache.hadoop.hbase.exceptions.IllegalArgumentIOException;
 import org.apache.phoenix.schema.IllegalDataException;
 import org.apache.phoenix.schema.types.PDataType;
 import org.joda.time.DateTimeZone;
@@ -172,7 +173,21 @@ public class DateUtil {
 }
 
 public static Timestamp parseTimestamp(String 

phoenix git commit: PHOENIX-2845 Timestamp ignores nanos in literal expressions(Sergey Soldatov)

2016-05-05 Thread ankit
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 b4590f866 -> f887f4175


PHOENIX-2845 Timestamp ignores nanos in literal expressions(Sergey Soldatov)


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

Branch: refs/heads/4.x-HBase-0.98
Commit: f887f41755891633200d4e51b42034cb9f88948e
Parents: b4590f8
Author: Ankit Singhal 
Authored: Thu May 5 11:46:38 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 11:46:38 2016 +0530

--
 .../org/apache/phoenix/end2end/DateTimeIT.java  | 22 +
 .../apache/phoenix/end2end/UpsertValuesIT.java  |  1 +
 .../java/org/apache/phoenix/util/DateUtil.java  | 17 -
 .../org/apache/phoenix/util/DateUtilTest.java   | 25 
 4 files changed, 64 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f887f417/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
index af8f0c1..7e407bc 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
@@ -693,4 +693,26 @@ public class DateTimeIT extends BaseHBaseManagedTimeIT {
 long actualTime = rs.getDate(1).getTime();
 assertTrue(Math.abs(actualTime - expectedTime) < MILLIS_IN_DAY);
 }
+@Test
+public void testSelectBetweenNanos() throws Exception {
+String ddl =
+"CREATE TABLE IF NOT EXISTS N1 (k1 INTEGER NOT NULL PRIMARY 
KEY, ts " +
+"TIMESTAMP(3))";
+conn.createStatement().execute(ddl);
+String dml = "UPSERT INTO N1 VALUES (1, TIMESTAMP'2015-01-01 
00:00:00.1')";
+conn.createStatement().execute(dml);
+dml = "UPSERT INTO N1 VALUES (2, TIMESTAMP'2015-01-01 
00:00:00.5')";
+conn.createStatement().execute(dml);
+dml = "UPSERT INTO N1 VALUES (3, TIMESTAMP'2015-01-01 
00:00:00.3')";
+conn.createStatement().execute(dml);
+conn.commit();
+
+ResultSet rs = conn.createStatement().executeQuery("SELECT k1,ts from 
N1 where ts between" +
+" TIMESTAMP'2015-01-01 00:00:00.2' AND 
TIMESTAMP'2015-01-01 00:00:00" +
+".4'");
+assertTrue(rs.next());
+assertEquals(3, rs.getInt(1));
+assertEquals(3, rs.getTimestamp(2).getNanos());
+assertFalse(rs.next());
+}
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/f887f417/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
index a7e70c1..5cefd7d 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
@@ -632,6 +632,7 @@ public class UpsertValuesIT extends BaseClientManagedTimeIT 
{
 
 Date date = toDate(dateStr);
 Timestamp timeStamp = new Timestamp(toDate(timeStampStr).getTime());
+timeStamp.setNanos(Timestamp.valueOf(timeStampStr).getNanos());
 Time time = new Time(toDate(timeStr).getTime());
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts 
+ 4));
 try {

http://git-wip-us.apache.org/repos/asf/phoenix/blob/f887f417/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
--
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java 
b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
index 4d7c27c..557d8ed 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
@@ -32,6 +32,7 @@ import java.util.List;
 import java.util.TimeZone;
 
 import org.apache.commons.lang.time.FastDateFormat;
+import org.apache.hadoop.hbase.exceptions.IllegalArgumentIOException;
 import org.apache.phoenix.schema.IllegalDataException;
 import org.apache.phoenix.schema.types.PDataType;
 import org.joda.time.DateTimeZone;
@@ -172,7 +173,21 @@ public class DateUtil {
 }
 
 public static Timestamp parseTimestamp(String 

phoenix git commit: PHOENIX-2845 Timestamp ignores nanos in literal expressions(Sergey Soldatov)

2016-05-05 Thread ankit
Repository: phoenix
Updated Branches:
  refs/heads/master 4616e98e4 -> 32cf841c4


PHOENIX-2845 Timestamp ignores nanos in literal expressions(Sergey Soldatov)


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

Branch: refs/heads/master
Commit: 32cf841c467a18ffcc35e5c25c2cd87978b26918
Parents: 4616e98
Author: Ankit Singhal 
Authored: Thu May 5 11:46:06 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 11:46:06 2016 +0530

--
 .../org/apache/phoenix/end2end/DateTimeIT.java  | 22 +
 .../apache/phoenix/end2end/UpsertValuesIT.java  |  1 +
 .../java/org/apache/phoenix/util/DateUtil.java  | 17 -
 .../org/apache/phoenix/util/DateUtilTest.java   | 25 
 4 files changed, 64 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/32cf841c/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
index af8f0c1..7e407bc 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DateTimeIT.java
@@ -693,4 +693,26 @@ public class DateTimeIT extends BaseHBaseManagedTimeIT {
 long actualTime = rs.getDate(1).getTime();
 assertTrue(Math.abs(actualTime - expectedTime) < MILLIS_IN_DAY);
 }
+@Test
+public void testSelectBetweenNanos() throws Exception {
+String ddl =
+"CREATE TABLE IF NOT EXISTS N1 (k1 INTEGER NOT NULL PRIMARY 
KEY, ts " +
+"TIMESTAMP(3))";
+conn.createStatement().execute(ddl);
+String dml = "UPSERT INTO N1 VALUES (1, TIMESTAMP'2015-01-01 
00:00:00.1')";
+conn.createStatement().execute(dml);
+dml = "UPSERT INTO N1 VALUES (2, TIMESTAMP'2015-01-01 
00:00:00.5')";
+conn.createStatement().execute(dml);
+dml = "UPSERT INTO N1 VALUES (3, TIMESTAMP'2015-01-01 
00:00:00.3')";
+conn.createStatement().execute(dml);
+conn.commit();
+
+ResultSet rs = conn.createStatement().executeQuery("SELECT k1,ts from 
N1 where ts between" +
+" TIMESTAMP'2015-01-01 00:00:00.2' AND 
TIMESTAMP'2015-01-01 00:00:00" +
+".4'");
+assertTrue(rs.next());
+assertEquals(3, rs.getInt(1));
+assertEquals(3, rs.getTimestamp(2).getNanos());
+assertFalse(rs.next());
+}
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/32cf841c/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
index a7e70c1..5cefd7d 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertValuesIT.java
@@ -632,6 +632,7 @@ public class UpsertValuesIT extends BaseClientManagedTimeIT 
{
 
 Date date = toDate(dateStr);
 Timestamp timeStamp = new Timestamp(toDate(timeStampStr).getTime());
+timeStamp.setNanos(Timestamp.valueOf(timeStampStr).getNanos());
 Time time = new Time(toDate(timeStr).getTime());
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts 
+ 4));
 try {

http://git-wip-us.apache.org/repos/asf/phoenix/blob/32cf841c/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
--
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java 
b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
index 4d7c27c..557d8ed 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/DateUtil.java
@@ -32,6 +32,7 @@ import java.util.List;
 import java.util.TimeZone;
 
 import org.apache.commons.lang.time.FastDateFormat;
+import org.apache.hadoop.hbase.exceptions.IllegalArgumentIOException;
 import org.apache.phoenix.schema.IllegalDataException;
 import org.apache.phoenix.schema.types.PDataType;
 import org.joda.time.DateTimeZone;
@@ -172,7 +173,21 @@ public class DateUtil {
 }
 
 public static Timestamp parseTimestamp(String timestampValue) {
-  

[1/2] phoenix git commit: PHOENIX-2874 Delete schemas also during clean up after test

2016-05-05 Thread ankit
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 c7150ff8b -> 7b1db0516


PHOENIX-2874 Delete schemas also during clean up after test


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

Branch: refs/heads/4.x-HBase-1.1
Commit: 0e1d1eb4e19a913b4ac669c653ecda2d1eb470a9
Parents: c7150ff
Author: Ankit Singhal 
Authored: Thu May 5 11:35:57 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 11:35:57 2016 +0530

--
 .../end2end/BaseClientManagedTimeIT.java|  2 +-
 .../phoenix/end2end/BaseHBaseManagedTimeIT.java |  2 +-
 .../BaseOwnClusterClientManagedTimeIT.java  |  2 +-
 .../BaseOwnClusterHBaseManagedTimeIT.java   |  2 +-
 .../apache/phoenix/end2end/CreateSchemaIT.java  |  2 +-
 .../apache/phoenix/end2end/DropSchemaIT.java| 21 +--
 .../query/ConnectionQueryServicesImpl.java  |  6 +-
 .../java/org/apache/phoenix/query/BaseTest.java | 66 ++--
 8 files changed, 87 insertions(+), 16 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/0e1d1eb4/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
index 1acd5b3..dee7200 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
@@ -56,7 +56,7 @@ public abstract class BaseClientManagedTimeIT extends 
BaseTest {
 @After
 public void cleanUpAfterTest() throws Exception {
 long ts = nextTimestamp();
-deletePriorTables(ts - 1, getUrl());
+deletePriorMetaData(ts - 1, getUrl());
 }
 
 public static Map getDefaultProps() {

http://git-wip-us.apache.org/repos/asf/phoenix/blob/0e1d1eb4/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
index 3a811a8..7439b1d 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
@@ -64,6 +64,6 @@ public abstract class BaseHBaseManagedTimeIT extends BaseTest 
{
 
 @After
 public void cleanUpAfterTest() throws Exception {
-deletePriorTables(HConstants.LATEST_TIMESTAMP, getUrl());
+deletePriorMetaData(HConstants.LATEST_TIMESTAMP, getUrl());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/0e1d1eb4/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
index 01d8538..47f0bdd 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
@@ -26,6 +26,6 @@ public class BaseOwnClusterClientManagedTimeIT extends 
BaseOwnClusterIT {
 @After
 public void cleanUpAfterTest() throws Exception {
 long ts = nextTimestamp();
-deletePriorTables(ts - 1, getUrl());
+deletePriorMetaData(ts - 1, getUrl());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/0e1d1eb4/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
index d4096f9..cbb40a1 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
@@ -26,6 +26,6 @@ import org.junit.After;
 public class BaseOwnClusterHBaseManagedTimeIT extends BaseOwnClusterIT {
 @After
 public void cleanUpAfterTest() 

[2/2] phoenix git commit: PHOENIX-2863 Let's roll up minor version to 8 (4.8.0) because of namespace compatibility checks

2016-05-05 Thread ankit
PHOENIX-2863 Let's roll up minor version to 8 (4.8.0) because of namespace 
compatibility checks


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

Branch: refs/heads/4.x-HBase-1.1
Commit: 7b1db0516786fc80b799e9382d8f16d23c75dbfa
Parents: 0e1d1eb
Author: Ankit Singhal 
Authored: Thu May 5 11:36:06 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 11:36:06 2016 +0530

--
 .../main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/7b1db051/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
index 8c86b56..f847b97 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
@@ -60,7 +60,7 @@ import com.google.protobuf.ByteString;
  */
 public abstract class MetaDataProtocol extends MetaDataService {
 public static final int PHOENIX_MAJOR_VERSION = 4;
-public static final int PHOENIX_MINOR_VERSION = 7;
+public static final int PHOENIX_MINOR_VERSION = 8;
 public static final int PHOENIX_PATCH_NUMBER = 0;
 public static final int PHOENIX_VERSION =
 VersionUtil.encodeVersion(PHOENIX_MAJOR_VERSION, 
PHOENIX_MINOR_VERSION, PHOENIX_PATCH_NUMBER);



[1/2] phoenix git commit: PHOENIX-2874 Delete schemas also during clean up after test

2016-05-05 Thread ankit
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 dab088fae -> b4590f866


PHOENIX-2874 Delete schemas also during clean up after test


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

Branch: refs/heads/4.x-HBase-0.98
Commit: 41bcb7ff13b26f975270ffbeeebb859950e6e0b2
Parents: dab088f
Author: Ankit Singhal 
Authored: Thu May 5 11:35:19 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 11:35:19 2016 +0530

--
 .../end2end/BaseClientManagedTimeIT.java|  2 +-
 .../phoenix/end2end/BaseHBaseManagedTimeIT.java |  2 +-
 .../BaseOwnClusterClientManagedTimeIT.java  |  2 +-
 .../BaseOwnClusterHBaseManagedTimeIT.java   |  2 +-
 .../apache/phoenix/end2end/CreateSchemaIT.java  |  2 +-
 .../apache/phoenix/end2end/DropSchemaIT.java| 21 +--
 .../query/ConnectionQueryServicesImpl.java  |  6 +-
 .../java/org/apache/phoenix/query/BaseTest.java | 66 ++--
 8 files changed, 87 insertions(+), 16 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/41bcb7ff/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
index 1acd5b3..dee7200 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
@@ -56,7 +56,7 @@ public abstract class BaseClientManagedTimeIT extends 
BaseTest {
 @After
 public void cleanUpAfterTest() throws Exception {
 long ts = nextTimestamp();
-deletePriorTables(ts - 1, getUrl());
+deletePriorMetaData(ts - 1, getUrl());
 }
 
 public static Map getDefaultProps() {

http://git-wip-us.apache.org/repos/asf/phoenix/blob/41bcb7ff/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
index 3a811a8..7439b1d 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
@@ -64,6 +64,6 @@ public abstract class BaseHBaseManagedTimeIT extends BaseTest 
{
 
 @After
 public void cleanUpAfterTest() throws Exception {
-deletePriorTables(HConstants.LATEST_TIMESTAMP, getUrl());
+deletePriorMetaData(HConstants.LATEST_TIMESTAMP, getUrl());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/41bcb7ff/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
index 01d8538..47f0bdd 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
@@ -26,6 +26,6 @@ public class BaseOwnClusterClientManagedTimeIT extends 
BaseOwnClusterIT {
 @After
 public void cleanUpAfterTest() throws Exception {
 long ts = nextTimestamp();
-deletePriorTables(ts - 1, getUrl());
+deletePriorMetaData(ts - 1, getUrl());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/41bcb7ff/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
index d4096f9..cbb40a1 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
@@ -26,6 +26,6 @@ import org.junit.After;
 public class BaseOwnClusterHBaseManagedTimeIT extends BaseOwnClusterIT {
 @After
 public void 

[2/2] phoenix git commit: PHOENIX-2863 Let's roll up minor version to 8 (4.8.0) because of namespace compatibility checks

2016-05-05 Thread ankit
PHOENIX-2863 Let's roll up minor version to 8 (4.8.0) because of namespace 
compatibility checks


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

Branch: refs/heads/4.x-HBase-0.98
Commit: b4590f866c2e21b18a1b559678ce80ef42bdb914
Parents: 41bcb7f
Author: Ankit Singhal 
Authored: Thu May 5 11:35:23 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 11:35:23 2016 +0530

--
 .../main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/b4590f86/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
index 8c86b56..f847b97 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
@@ -60,7 +60,7 @@ import com.google.protobuf.ByteString;
  */
 public abstract class MetaDataProtocol extends MetaDataService {
 public static final int PHOENIX_MAJOR_VERSION = 4;
-public static final int PHOENIX_MINOR_VERSION = 7;
+public static final int PHOENIX_MINOR_VERSION = 8;
 public static final int PHOENIX_PATCH_NUMBER = 0;
 public static final int PHOENIX_VERSION =
 VersionUtil.encodeVersion(PHOENIX_MAJOR_VERSION, 
PHOENIX_MINOR_VERSION, PHOENIX_PATCH_NUMBER);



[1/2] phoenix git commit: PHOENIX-2874 Delete schemas also during clean up after test

2016-05-05 Thread ankit
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.0 f98cf03d3 -> baa599461


PHOENIX-2874 Delete schemas also during clean up after test


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

Branch: refs/heads/4.x-HBase-1.0
Commit: f57d75e90eaf69481a20534b5da2df6248ff8bb3
Parents: f98cf03
Author: Ankit Singhal 
Authored: Thu May 5 11:34:12 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 11:34:12 2016 +0530

--
 .../end2end/BaseClientManagedTimeIT.java|  2 +-
 .../phoenix/end2end/BaseHBaseManagedTimeIT.java |  2 +-
 .../BaseOwnClusterClientManagedTimeIT.java  |  2 +-
 .../BaseOwnClusterHBaseManagedTimeIT.java   |  2 +-
 .../apache/phoenix/end2end/CreateSchemaIT.java  |  2 +-
 .../apache/phoenix/end2end/DropSchemaIT.java| 21 +--
 .../query/ConnectionQueryServicesImpl.java  |  6 +-
 .../java/org/apache/phoenix/query/BaseTest.java | 66 ++--
 8 files changed, 87 insertions(+), 16 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f57d75e9/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
index 1acd5b3..dee7200 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
@@ -56,7 +56,7 @@ public abstract class BaseClientManagedTimeIT extends 
BaseTest {
 @After
 public void cleanUpAfterTest() throws Exception {
 long ts = nextTimestamp();
-deletePriorTables(ts - 1, getUrl());
+deletePriorMetaData(ts - 1, getUrl());
 }
 
 public static Map getDefaultProps() {

http://git-wip-us.apache.org/repos/asf/phoenix/blob/f57d75e9/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
index 3a811a8..7439b1d 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
@@ -64,6 +64,6 @@ public abstract class BaseHBaseManagedTimeIT extends BaseTest 
{
 
 @After
 public void cleanUpAfterTest() throws Exception {
-deletePriorTables(HConstants.LATEST_TIMESTAMP, getUrl());
+deletePriorMetaData(HConstants.LATEST_TIMESTAMP, getUrl());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/f57d75e9/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
index 01d8538..47f0bdd 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
@@ -26,6 +26,6 @@ public class BaseOwnClusterClientManagedTimeIT extends 
BaseOwnClusterIT {
 @After
 public void cleanUpAfterTest() throws Exception {
 long ts = nextTimestamp();
-deletePriorTables(ts - 1, getUrl());
+deletePriorMetaData(ts - 1, getUrl());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/f57d75e9/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
index d4096f9..cbb40a1 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
@@ -26,6 +26,6 @@ import org.junit.After;
 public class BaseOwnClusterHBaseManagedTimeIT extends BaseOwnClusterIT {
 @After
 public void cleanUpAfterTest() 

[2/2] phoenix git commit: PHOENIX-2863 Let's roll up minor version to 8 (4.8.0) because of namespace compatibility checks

2016-05-05 Thread ankit
PHOENIX-2863 Let's roll up minor version to 8 (4.8.0) because of namespace 
compatibility checks


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

Branch: refs/heads/4.x-HBase-1.0
Commit: baa599461efbb4e8435a068d25556727d2977b03
Parents: f57d75e
Author: Ankit Singhal 
Authored: Thu May 5 11:34:30 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 11:34:30 2016 +0530

--
 .../main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/baa59946/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
index 8c86b56..f847b97 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
@@ -60,7 +60,7 @@ import com.google.protobuf.ByteString;
  */
 public abstract class MetaDataProtocol extends MetaDataService {
 public static final int PHOENIX_MAJOR_VERSION = 4;
-public static final int PHOENIX_MINOR_VERSION = 7;
+public static final int PHOENIX_MINOR_VERSION = 8;
 public static final int PHOENIX_PATCH_NUMBER = 0;
 public static final int PHOENIX_VERSION =
 VersionUtil.encodeVersion(PHOENIX_MAJOR_VERSION, 
PHOENIX_MINOR_VERSION, PHOENIX_PATCH_NUMBER);



[2/2] phoenix git commit: PHOENIX-2863 Let's roll up minor version to 8 (4.8.0) because of namespace compatibility checks

2016-05-05 Thread ankit
PHOENIX-2863 Let's roll up minor version to 8 (4.8.0) because of namespace 
compatibility checks


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

Branch: refs/heads/master
Commit: 4616e98e45289289bca849db0fc3790345dbf937
Parents: 4f5961b
Author: Ankit Singhal 
Authored: Thu May 5 11:33:06 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 11:33:06 2016 +0530

--
 .../main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/4616e98e/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
index 8c86b56..f847b97 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java
@@ -60,7 +60,7 @@ import com.google.protobuf.ByteString;
  */
 public abstract class MetaDataProtocol extends MetaDataService {
 public static final int PHOENIX_MAJOR_VERSION = 4;
-public static final int PHOENIX_MINOR_VERSION = 7;
+public static final int PHOENIX_MINOR_VERSION = 8;
 public static final int PHOENIX_PATCH_NUMBER = 0;
 public static final int PHOENIX_VERSION =
 VersionUtil.encodeVersion(PHOENIX_MAJOR_VERSION, 
PHOENIX_MINOR_VERSION, PHOENIX_PATCH_NUMBER);



[1/2] phoenix git commit: PHOENIX-2874 Delete schemas also during clean up after test

2016-05-05 Thread ankit
Repository: phoenix
Updated Branches:
  refs/heads/master d700c1f03 -> 4616e98e4


PHOENIX-2874 Delete schemas also during clean up after test


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

Branch: refs/heads/master
Commit: 4f5961b1474f8a8edb25fca2a48055b3a61d6ce7
Parents: d700c1f
Author: Ankit Singhal 
Authored: Thu May 5 11:31:55 2016 +0530
Committer: Ankit Singhal 
Committed: Thu May 5 11:31:55 2016 +0530

--
 .../end2end/BaseClientManagedTimeIT.java|  2 +-
 .../phoenix/end2end/BaseHBaseManagedTimeIT.java |  2 +-
 .../BaseOwnClusterClientManagedTimeIT.java  |  2 +-
 .../BaseOwnClusterHBaseManagedTimeIT.java   |  2 +-
 .../apache/phoenix/end2end/CreateSchemaIT.java  |  2 +-
 .../apache/phoenix/end2end/DropSchemaIT.java| 21 +--
 .../query/ConnectionQueryServicesImpl.java  |  6 +-
 .../java/org/apache/phoenix/query/BaseTest.java | 66 ++--
 8 files changed, 87 insertions(+), 16 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/4f5961b1/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
index 1acd5b3..dee7200 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseClientManagedTimeIT.java
@@ -56,7 +56,7 @@ public abstract class BaseClientManagedTimeIT extends 
BaseTest {
 @After
 public void cleanUpAfterTest() throws Exception {
 long ts = nextTimestamp();
-deletePriorTables(ts - 1, getUrl());
+deletePriorMetaData(ts - 1, getUrl());
 }
 
 public static Map getDefaultProps() {

http://git-wip-us.apache.org/repos/asf/phoenix/blob/4f5961b1/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
index 3a811a8..7439b1d 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseHBaseManagedTimeIT.java
@@ -64,6 +64,6 @@ public abstract class BaseHBaseManagedTimeIT extends BaseTest 
{
 
 @After
 public void cleanUpAfterTest() throws Exception {
-deletePriorTables(HConstants.LATEST_TIMESTAMP, getUrl());
+deletePriorMetaData(HConstants.LATEST_TIMESTAMP, getUrl());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/4f5961b1/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
index 01d8538..47f0bdd 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterClientManagedTimeIT.java
@@ -26,6 +26,6 @@ public class BaseOwnClusterClientManagedTimeIT extends 
BaseOwnClusterIT {
 @After
 public void cleanUpAfterTest() throws Exception {
 long ts = nextTimestamp();
-deletePriorTables(ts - 1, getUrl());
+deletePriorMetaData(ts - 1, getUrl());
 }
 }

http://git-wip-us.apache.org/repos/asf/phoenix/blob/4f5961b1/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
index d4096f9..cbb40a1 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/BaseOwnClusterHBaseManagedTimeIT.java
@@ -26,6 +26,6 @@ import org.junit.After;
 public class BaseOwnClusterHBaseManagedTimeIT extends BaseOwnClusterIT {
 @After
 public void cleanUpAfterTest() throws