Build failed in Jenkins: Phoenix | Master #1175

2016-03-19 Thread Apache Jenkins Server
See 

Changes:

[rajeshbabu] PHOENIX-2746 Delete on the table with immutable rows may fail with

--
[...truncated 9585 lines...]
at 
org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:52193)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2117)
... 4 more

at 
org.apache.phoenix.rpc.PhoenixClientRpcIT.doSetup(PhoenixClientRpcIT.java:47)
Caused by: org.apache.hadoop.hbase.ipc.RemoteWithExtrasException: 
org.apache.hadoop.hbase.DoNotRetryIOException: java.lang.NoSuchMethodError: 
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.getResult(J)Lorg/apache/hadoop/hbase/procedure2/ProcedureResult;
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2156)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:104)
at 
org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: 
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.getResult(J)Lorg/apache/hadoop/hbase/procedure2/ProcedureResult;
at 
org.apache.hadoop.hbase.master.procedure.ProcedureSyncWait.waitForProcedureToComplete(ProcedureSyncWait.java:81)
at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:1955)
at 
org.apache.hadoop.hbase.master.MasterRpcServices.modifyTable(MasterRpcServices.java:1098)
at 
org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:52193)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2117)
... 4 more

at 
org.apache.phoenix.rpc.PhoenixClientRpcIT.doSetup(PhoenixClientRpcIT.java:47)

Running org.apache.phoenix.rpc.PhoenixServerRpcIT
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.04 sec <<< 
FAILURE! - in org.apache.phoenix.rpc.PhoenixServerRpcIT
org.apache.phoenix.rpc.PhoenixServerRpcIT  Time elapsed: 0.037 sec  <<< ERROR!
org.apache.phoenix.exception.PhoenixIOException: 
org.apache.hadoop.hbase.DoNotRetryIOException: java.lang.NoSuchMethodError: 
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.getResult(J)Lorg/apache/hadoop/hbase/procedure2/ProcedureResult;
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2156)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:104)
at 
org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: 
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.getResult(J)Lorg/apache/hadoop/hbase/procedure2/ProcedureResult;
at 
org.apache.hadoop.hbase.master.procedure.ProcedureSyncWait.waitForProcedureToComplete(ProcedureSyncWait.java:81)
at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:1955)
at 
org.apache.hadoop.hbase.master.MasterRpcServices.modifyTable(MasterRpcServices.java:1098)
at 
org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:52193)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2117)
... 4 more

at 
org.apache.phoenix.rpc.PhoenixServerRpcIT.doSetup(PhoenixServerRpcIT.java:72)
Caused by: org.apache.hadoop.hbase.DoNotRetryIOException: 
org.apache.hadoop.hbase.DoNotRetryIOException: java.lang.NoSuchMethodError: 
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.getResult(J)Lorg/apache/hadoop/hbase/procedure2/ProcedureResult;
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2156)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:104)
at 
org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: 
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.getResult(J)Lorg/apache/hadoop/hbase/procedure2/ProcedureResult;
at 
org.apache.hadoop.hbase.master.procedure.ProcedureSyncWait.waitForProcedureToComplete(ProcedureSyncWait.java:81)
at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:1955)
at 
org.apache.hadoop.hbase.master.MasterRpcServices.modifyTable(MasterRpcServices.java:1098)
at 
org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:52193)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2117)
... 4 more

at 

phoenix git commit: PHOENIX-2746 Delete on the table with immutable rows may fail with INVALID_FILTER_ON_IMMUTABLE_ROWS error code.(Rajeshbabu)

2016-03-19 Thread rajeshbabu
Repository: phoenix
Updated Branches:
  refs/heads/master e7bcfe4f2 -> cd8e86ca7


PHOENIX-2746 Delete on the table with immutable rows may fail with 
INVALID_FILTER_ON_IMMUTABLE_ROWS error code.(Rajeshbabu)


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

Branch: refs/heads/master
Commit: cd8e86ca7170876a30771fcc16c027f8dc8dd386
Parents: e7bcfe4
Author: Rajeshbabu Chintaguntla 
Authored: Fri Mar 18 01:28:53 2016 +0530
Committer: Rajeshbabu Chintaguntla 
Committed: Fri Mar 18 01:28:53 2016 +0530

--
 .../org/apache/phoenix/end2end/DeleteIT.java| 12 +
 .../apache/phoenix/compile/DeleteCompiler.java  | 28 +++-
 .../apache/phoenix/optimize/QueryOptimizer.java | 14 ++
 .../org/apache/phoenix/schema/PTableImpl.java   |  2 +-
 4 files changed, 37 insertions(+), 19 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/cd8e86ca/phoenix-core/src/it/java/org/apache/phoenix/end2end/DeleteIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DeleteIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DeleteIT.java
index 6b4eead..10152e3 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DeleteIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DeleteIT.java
@@ -19,6 +19,7 @@ package org.apache.phoenix.end2end;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 
 import java.sql.Connection;
 import java.sql.Date;
@@ -370,6 +371,7 @@ public class DeleteIT extends BaseHBaseManagedTimeIT {
 "STATS.ACTIVE_VISITOR INTEGER " +
 "CONSTRAINT PK PRIMARY KEY (HOST, DOMAIN, FEATURE, DATE)) 
IMMUTABLE_ROWS=true");
 stm.execute("CREATE " + (localIndex ? "LOCAL" : "") + " INDEX 
web_stats_idx ON web_stats (DATE, FEATURE)");
+stm.execute("CREATE " + (localIndex ? "LOCAL" : "") + " INDEX 
web_stats_idx2 ON web_stats (DATE, FEATURE, USAGE.DB)");
 stm.close();
 
 Date date = new Date(0);
@@ -406,6 +408,16 @@ public class DeleteIT extends BaseHBaseManagedTimeIT {
 assertTrue(rs.next());
 assertEquals(0, rs.getLong(1));
 
+stm.execute("DROP INDEX web_stats_idx ON web_stats");
+stm.execute("DROP INDEX web_stats_idx2 ON web_stats");
+
+stm.execute("CREATE " + (localIndex ? "LOCAL" : "") + " INDEX 
web_stats_idx ON web_stats (USAGE.DB)");
+stm.execute("CREATE " + (localIndex ? "LOCAL" : "") + " INDEX 
web_stats_idx2 ON web_stats (USAGE.DB, DATE)");
+try{
+psInsert = con.prepareStatement("DELETE FROM web_stats WHERE  
USAGE.DB=2");
+} catch(Exception e) {
+fail("There should not be any exception while deleting row");
+}
 } finally {
 try {
 con.close();

http://git-wip-us.apache.org/repos/asf/phoenix/blob/cd8e86ca/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java 
b/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
index 8e9e1de..24a2add 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
@@ -22,6 +22,7 @@ import java.sql.ParameterMetaData;
 import java.sql.SQLException;
 import java.util.Arrays;
 import java.util.Collections;
+import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
@@ -233,18 +234,18 @@ public class DeleteCompiler {
 
 }
 
-private Set getNonDisabledImmutableIndexes(TableRef tableRef) {
+private Map getNonDisabledImmutableIndexes(TableRef 
tableRef) {
 PTable table = tableRef.getTable();
 if (table.isImmutableRows() && !table.getIndexes().isEmpty()) {
-Set nonDisabledIndexes = 
Sets.newHashSetWithExpectedSize(table.getIndexes().size());
+Map nonDisabledIndexes = new HashMap(table.getIndexes().size());
 for (PTable index : table.getIndexes()) {
 if (index.getIndexState() != PIndexState.DISABLE) {
-nonDisabledIndexes.add(index);
+nonDisabledIndexes.put(index.getKey(), 

Apache-Phoenix | 4.x-HBase-0.98 | Build Successful

2016-03-19 Thread Apache Jenkins Server
4.x-HBase-0.98 branch build status Successful

Source repository https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=shortlog;h=refs/heads/4.x-HBase-0.98

Compiled Artifacts https://builds.apache.org/job/Phoenix-4.x-HBase-0.98/lastSuccessfulBuild/artifact/

Test Report https://builds.apache.org/job/Phoenix-4.x-HBase-0.98/lastCompletedBuild/testReport/

Changes
[rajeshbabu] PHOENIX-2746 Delete on the table with immutable rows may fail with



Build times for last couple of runsLatest build time is the right most | Legend blue: normal, red: test failure, gray: timeout