[phoenix] branch master updated: PHOENIX-5125 Some tests fail after PHOENIX-4009

2019-02-07 Thread karanmehta93
This is an automated email from the ASF dual-hosted git repository.

karanmehta93 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/master by this push:
 new 08c4496  PHOENIX-5125 Some tests fail after PHOENIX-4009
08c4496 is described below

commit 08c4496addd6417f6d3c3965fd3114f791e9fd44
Author: Karan Mehta 
AuthorDate: Wed Feb 6 05:28:53 2019 -0800

PHOENIX-5125 Some tests fail after PHOENIX-4009
---
 .../java/org/apache/phoenix/end2end/SpillableGroupByIT.java   | 11 ++-
 .../org/apache/phoenix/schema/stats/NoOpStatsCollectorIT.java |  4 
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/SpillableGroupByIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/SpillableGroupByIT.java
index 3ed09c6..340760b 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/SpillableGroupByIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/SpillableGroupByIT.java
@@ -38,6 +38,7 @@ import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.QueryUtil;
 import org.apache.phoenix.util.ReadOnlyProps;
+import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
@@ -174,7 +175,15 @@ public class SpillableGroupByIT extends BaseOwnClusterIT {
 stmt.execute("UPSERT INTO " + tableName + " VALUES (2, 'NAME2')");
 stmt.execute("UPSERT INTO " + tableName + " VALUES (3, 'NAME3')");
 conn.commit();
-stmt.execute("UPDATE STATISTICS " + tableName);
+try {
+stmt.execute("UPDATE STATISTICS " + tableName);
+Assert.fail("Update Statistics SQL should have failed");
+} catch (SQLException e) {
+Assert.assertEquals("StatsCollectionDisabledOnServerException 
expected",
+1401, e.getErrorCode());
+Assert.assertEquals("StatsCollectionDisabledOnServerException 
expected",
+"STS01", e.getSQLState());
+}
 ResultSet rs = stmt.executeQuery("SELECT * FROM \"SYSTEM\".STATS");
 assertFalse(rs.next());
 rs.close();
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/NoOpStatsCollectorIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/NoOpStatsCollectorIT.java
index 04f4143..87f58d7 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/NoOpStatsCollectorIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/NoOpStatsCollectorIT.java
@@ -20,6 +20,7 @@ package org.apache.phoenix.schema.stats;
 import com.google.common.collect.Maps;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest;
 import org.apache.phoenix.end2end.ParallelStatsDisabledIT;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.PropertiesUtil;
@@ -30,6 +31,7 @@ import org.junit.Assert;
 import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Test;
+import org.junit.experimental.categories.Category;
 
 import java.sql.Array;
 import java.sql.Connection;
@@ -47,6 +49,7 @@ import static 
org.apache.phoenix.util.TestUtil.TEST_PROPERTIES;
  * Tests the behavior of stats collection code when stats are disabled on 
server side
  * explicitly using QueryServices#STATS_COLLECTION_ENABLED property
  */
+@Category(NeedsOwnMiniClusterTest.class)
 public class NoOpStatsCollectorIT extends ParallelStatsDisabledIT {
 
 private static final Log LOG = 
LogFactory.getLog(NoOpStatsCollectorIT.class);
@@ -90,6 +93,7 @@ public class NoOpStatsCollectorIT extends 
ParallelStatsDisabledIT {
 Statement stmt = conn.createStatement();
 try {
 stmt.execute(updateStatisticsSql);
+Assert.fail("Update Statistics SQL should have failed");
 } catch (SQLException e) {
 Assert.assertEquals("StatsCollectionDisabledOnServerException 
expected",
 1401, e.getErrorCode());



[phoenix] branch 4.x-HBase-1.4 updated: PHOENIX-5125 Some tests fail after PHOENIX-4009

2019-02-07 Thread karanmehta93
This is an automated email from the ASF dual-hosted git repository.

karanmehta93 pushed a commit to branch 4.x-HBase-1.4
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.4 by this push:
 new 7def85e  PHOENIX-5125 Some tests fail after PHOENIX-4009
7def85e is described below

commit 7def85e469d514e0d2d80d168e3ced486fbede69
Author: Karan Mehta 
AuthorDate: Wed Feb 6 05:28:53 2019 -0800

PHOENIX-5125 Some tests fail after PHOENIX-4009
---
 .../java/org/apache/phoenix/end2end/SpillableGroupByIT.java   | 11 ++-
 .../org/apache/phoenix/schema/stats/NoOpStatsCollectorIT.java |  4 
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/SpillableGroupByIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/SpillableGroupByIT.java
index 3ed09c6..340760b 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/SpillableGroupByIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/SpillableGroupByIT.java
@@ -38,6 +38,7 @@ import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.QueryUtil;
 import org.apache.phoenix.util.ReadOnlyProps;
+import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
@@ -174,7 +175,15 @@ public class SpillableGroupByIT extends BaseOwnClusterIT {
 stmt.execute("UPSERT INTO " + tableName + " VALUES (2, 'NAME2')");
 stmt.execute("UPSERT INTO " + tableName + " VALUES (3, 'NAME3')");
 conn.commit();
-stmt.execute("UPDATE STATISTICS " + tableName);
+try {
+stmt.execute("UPDATE STATISTICS " + tableName);
+Assert.fail("Update Statistics SQL should have failed");
+} catch (SQLException e) {
+Assert.assertEquals("StatsCollectionDisabledOnServerException 
expected",
+1401, e.getErrorCode());
+Assert.assertEquals("StatsCollectionDisabledOnServerException 
expected",
+"STS01", e.getSQLState());
+}
 ResultSet rs = stmt.executeQuery("SELECT * FROM \"SYSTEM\".STATS");
 assertFalse(rs.next());
 rs.close();
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/NoOpStatsCollectorIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/NoOpStatsCollectorIT.java
index 04f4143..87f58d7 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/NoOpStatsCollectorIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/NoOpStatsCollectorIT.java
@@ -20,6 +20,7 @@ package org.apache.phoenix.schema.stats;
 import com.google.common.collect.Maps;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest;
 import org.apache.phoenix.end2end.ParallelStatsDisabledIT;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.PropertiesUtil;
@@ -30,6 +31,7 @@ import org.junit.Assert;
 import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Test;
+import org.junit.experimental.categories.Category;
 
 import java.sql.Array;
 import java.sql.Connection;
@@ -47,6 +49,7 @@ import static 
org.apache.phoenix.util.TestUtil.TEST_PROPERTIES;
  * Tests the behavior of stats collection code when stats are disabled on 
server side
  * explicitly using QueryServices#STATS_COLLECTION_ENABLED property
  */
+@Category(NeedsOwnMiniClusterTest.class)
 public class NoOpStatsCollectorIT extends ParallelStatsDisabledIT {
 
 private static final Log LOG = 
LogFactory.getLog(NoOpStatsCollectorIT.class);
@@ -90,6 +93,7 @@ public class NoOpStatsCollectorIT extends 
ParallelStatsDisabledIT {
 Statement stmt = conn.createStatement();
 try {
 stmt.execute(updateStatisticsSql);
+Assert.fail("Update Statistics SQL should have failed");
 } catch (SQLException e) {
 Assert.assertEquals("StatsCollectionDisabledOnServerException 
expected",
 1401, e.getErrorCode());



Build failed in Jenkins: Phoenix-4.x-HBase-1.4 #67

2019-02-07 Thread Apache Jenkins Server
See 


Changes:

[tdsilva] PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase

--
[...truncated 103.78 KB...]
[INFO] Tests run: 78, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 724.066 
s - in org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   NoOpStatsCollectorIT.testStatsCollectionDuringMajorCompaction:119 
Stats collection is disabled, hence row counts should not match
[ERROR]   PhoenixTracingEndToEndIT.testCustomAnnotationTracing:360 Get expected 
updates to trace table
[ERROR]   PhoenixTracingEndToEndIT.testScanTracing:252 Get expected updates to 
trace table
[ERROR]   PhoenixTracingEndToEndIT.testScanTracingOnServer:304 Didn't get 
expected updates to trace table
[INFO] 
[ERROR] Tests run: 3633, Failures: 4, Errors: 0, Skipped: 1
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test (HBaseManagedTimeTests) 
@ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test 
(NeedTheirOwnClusterTests) @ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running org.apache.phoenix.end2end.ChangePermissionsIT
[INFO] Running org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 44.512 s 
- in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.228 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Running org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.595 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.836 s 
- in org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 52.791 s 
- in org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.DropSchemaIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Running org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.611 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 120.859 
s - in org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.418 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Running 
org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running org.apache.phoenix.end2end.IndexToolIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.987 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Tests run: 32, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 190.609 
s - in org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 191.36 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[INFO] Running org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[INFO] Running org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.594 s 
- in org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[INFO] Running org.apache.phoenix.end2end.PhoenixDriverIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 453.238 
s - in org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 92.805 s 
- in org.apache.phoenix.end2end.PhoenixDriverIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 455.094 
s - in org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Running org.apache.p

Build failed in Jenkins: Phoenix-4.x-HBase-1.2 #610

2019-02-07 Thread Apache Jenkins Server
See 


Changes:

[tdsilva] PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase

--
[...truncated 101.05 KB...]
at 
org.apache.phoenix.trace.PhoenixTracingEndToEndIT.testScanTracingOnServer(PhoenixTracingEndToEndIT.java:304)

[ERROR] testScanTracing(org.apache.phoenix.trace.PhoenixTracingEndToEndIT)  
Time elapsed: 206.937 s  <<< FAILURE!
java.lang.AssertionError: Get expected updates to trace table
at 
org.apache.phoenix.trace.PhoenixTracingEndToEndIT.testScanTracing(PhoenixTracingEndToEndIT.java:252)

[ERROR] 
testCustomAnnotationTracing(org.apache.phoenix.trace.PhoenixTracingEndToEndIT)  
Time elapsed: 207.161 s  <<< FAILURE!
java.lang.AssertionError: Get expected updates to trace table
at 
org.apache.phoenix.trace.PhoenixTracingEndToEndIT.testCustomAnnotationTracing(PhoenixTracingEndToEndIT.java:360)

[INFO] Tests run: 50, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 488.329 
s - in org.apache.phoenix.tx.TxCheckpointIT
[INFO] Tests run: 78, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 777.139 
s - in org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   PhoenixTracingEndToEndIT.testCustomAnnotationTracing:360 Get expected 
updates to trace table
[ERROR]   PhoenixTracingEndToEndIT.testScanTracing:252 Get expected updates to 
trace table
[ERROR]   PhoenixTracingEndToEndIT.testScanTracingOnServer:304 Didn't get 
expected updates to trace table
[INFO] 
[ERROR] Tests run: 3631, Failures: 3, Errors: 0, Skipped: 1
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test (HBaseManagedTimeTests) 
@ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test 
(NeedTheirOwnClusterTests) @ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running org.apache.phoenix.end2end.ChangePermissionsIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 44.52 s 
- in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.001 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.865 s 
- in org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.967 s 
- in org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Running org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.791 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
187.6 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
191.919 s - in 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
193.691 s - in org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
189.234 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.DropSchemaIT
[INFO] Running org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 38.524 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 145.69

Build failed in Jenkins: Phoenix | Master #2302

2019-02-07 Thread Apache Jenkins Server
See 


Changes:

[tdsilva] PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase

--
[...truncated 137.67 KB...]
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:513)
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:498)
at 
org.apache.phoenix.end2end.IndexToolIT.testSplitIndex(IndexToolIT.java:424)

[ERROR] 
testSplitIndex[transactionProvider=TEPHRA,mutable=false,localIndex=false,directApi=true,useSnapshot=true](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 16.687 s  <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<-1>
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:513)
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:498)
at 
org.apache.phoenix.end2end.IndexToolIT.testSplitIndex(IndexToolIT.java:424)

[ERROR] 
testSplitIndex[transactionProvider=TEPHRA,mutable=true,localIndex=false,directApi=false,useSnapshot=false](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 14.5 s  <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<-1>
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:513)
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:498)
at 
org.apache.phoenix.end2end.IndexToolIT.testSplitIndex(IndexToolIT.java:424)

[ERROR] 
testSplitIndex[transactionProvider=TEPHRA,mutable=true,localIndex=false,directApi=false,useSnapshot=true](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 16.241 s  <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<-1>
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:513)
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:498)
at 
org.apache.phoenix.end2end.IndexToolIT.testSplitIndex(IndexToolIT.java:424)

[ERROR] 
testSplitIndex[transactionProvider=TEPHRA,mutable=true,localIndex=false,directApi=true,useSnapshot=false](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 12.585 s  <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<-1>
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:513)
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:498)
at 
org.apache.phoenix.end2end.IndexToolIT.testSplitIndex(IndexToolIT.java:424)

[ERROR] 
testSplitIndex[transactionProvider=TEPHRA,mutable=true,localIndex=false,directApi=true,useSnapshot=true](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 13.265 s  <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<-1>
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:513)
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:498)
at 
org.apache.phoenix.end2end.IndexToolIT.testSplitIndex(IndexToolIT.java:424)

[ERROR] 
testSplitIndex[transactionProvider=OMID,mutable=false,localIndex=false,directApi=false,useSnapshot=false](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 14.273 s  <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<-1>
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:513)
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:498)
at 
org.apache.phoenix.end2end.IndexToolIT.testSplitIndex(IndexToolIT.java:424)

[ERROR] 
testSplitIndex[transactionProvider=OMID,mutable=false,localIndex=false,directApi=false,useSnapshot=true](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 17.413 s  <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<-1>
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:513)
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:498)
at 
org.apache.phoenix.end2end.IndexToolIT.testSplitIndex(IndexToolIT.java:424)

[ERROR] 
testSplitIndex[transactionProvider=OMID,mutable=false,localIndex=false,directApi=true,useSnapshot=false](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 16.816 s  <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<-1>
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:513)
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:498)
at 
org.apache.phoenix.end2end.IndexToolIT.testSplitIndex(IndexToolIT.java:424)

[ERROR] 
testSplitIndex[transactionProvider=OMID,mutable=false,localIndex=false,directApi=true,useSnapshot=true](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 15.16 s  <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<-1>
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:513)
at 
org.apache.phoenix.end2end.IndexToolIT.runIndexTool(IndexToolIT.java:498)
at 
org.apach

[phoenix] branch master updated: PHOENIX-5126 RegionScanner leak leading to store files not getting cleared

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/master by this push:
 new b4d2745  PHOENIX-5126 RegionScanner leak leading to store files not 
getting cleared
b4d2745 is described below

commit b4d27456a271054fb7e56e61b53aa78a222b31f4
Author: Abhishek Singh Chouhan 
AuthorDate: Thu Feb 7 13:51:15 2019 -0800

PHOENIX-5126 RegionScanner leak leading to store files not getting cleared
---
 .../phoenix/hbase/index/covered/data/LocalTable.java  | 15 ---
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
index 85c54ce..402620f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
@@ -70,14 +70,15 @@ public class LocalTable implements LocalHBaseState {
 s.setTimeRange(0,ts);
 }
 Region region = this.env.getRegion();
-RegionScanner scanner = region.getScanner(s);
-List kvs = new ArrayList(1);
-boolean more = scanner.next(kvs);
-assert !more : "Got more than one result when scanning" + " a single row 
in the primary table!";
+try (RegionScanner scanner = region.getScanner(s)) {
+  List kvs = new ArrayList(1);
+  boolean more = scanner.next(kvs);
+  assert !more : "Got more than one result when scanning"
+  + " a single row in the primary table!";
 
-Result r = Result.create(kvs);
-scanner.close();
-return r;
+  Result r = Result.create(kvs);
+  return r;
+}
   }
 
 // Returns the smallest timestamp in the given cell lists.



[phoenix] branch 4.x-HBase-1.4 updated: PHOENIX-5126 RegionScanner leak leading to store files not getting cleared

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.x-HBase-1.4
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.4 by this push:
 new 8cf2c9e  PHOENIX-5126 RegionScanner leak leading to store files not 
getting cleared
8cf2c9e is described below

commit 8cf2c9ea504750adf349e411a6fd9071a7e50a02
Author: Abhishek Singh Chouhan 
AuthorDate: Thu Feb 7 13:51:15 2019 -0800

PHOENIX-5126 RegionScanner leak leading to store files not getting cleared
---
 .../phoenix/hbase/index/covered/data/LocalTable.java  | 15 ---
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
index 85c54ce..402620f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
@@ -70,14 +70,15 @@ public class LocalTable implements LocalHBaseState {
 s.setTimeRange(0,ts);
 }
 Region region = this.env.getRegion();
-RegionScanner scanner = region.getScanner(s);
-List kvs = new ArrayList(1);
-boolean more = scanner.next(kvs);
-assert !more : "Got more than one result when scanning" + " a single row 
in the primary table!";
+try (RegionScanner scanner = region.getScanner(s)) {
+  List kvs = new ArrayList(1);
+  boolean more = scanner.next(kvs);
+  assert !more : "Got more than one result when scanning"
+  + " a single row in the primary table!";
 
-Result r = Result.create(kvs);
-scanner.close();
-return r;
+  Result r = Result.create(kvs);
+  return r;
+}
   }
 
 // Returns the smallest timestamp in the given cell lists.



[phoenix] branch 4.x-HBase-1.3 updated: PHOENIX-5126 RegionScanner leak leading to store files not getting cleared

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.x-HBase-1.3
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.3 by this push:
 new fc3bf8e  PHOENIX-5126 RegionScanner leak leading to store files not 
getting cleared
fc3bf8e is described below

commit fc3bf8ea29b6a0e13ec1a974e0e520b94fbae3bb
Author: Abhishek Singh Chouhan 
AuthorDate: Thu Feb 7 13:51:15 2019 -0800

PHOENIX-5126 RegionScanner leak leading to store files not getting cleared
---
 .../phoenix/hbase/index/covered/data/LocalTable.java  | 15 ---
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
index 85c54ce..402620f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
@@ -70,14 +70,15 @@ public class LocalTable implements LocalHBaseState {
 s.setTimeRange(0,ts);
 }
 Region region = this.env.getRegion();
-RegionScanner scanner = region.getScanner(s);
-List kvs = new ArrayList(1);
-boolean more = scanner.next(kvs);
-assert !more : "Got more than one result when scanning" + " a single row 
in the primary table!";
+try (RegionScanner scanner = region.getScanner(s)) {
+  List kvs = new ArrayList(1);
+  boolean more = scanner.next(kvs);
+  assert !more : "Got more than one result when scanning"
+  + " a single row in the primary table!";
 
-Result r = Result.create(kvs);
-scanner.close();
-return r;
+  Result r = Result.create(kvs);
+  return r;
+}
   }
 
 // Returns the smallest timestamp in the given cell lists.



[phoenix] branch 4.x-HBase-1.2 updated: PHOENIX-5126 RegionScanner leak leading to store files not getting cleared

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.x-HBase-1.2
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.2 by this push:
 new f7c8485  PHOENIX-5126 RegionScanner leak leading to store files not 
getting cleared
f7c8485 is described below

commit f7c848510b019b018dfa34bc8360ea573af6b052
Author: Abhishek Singh Chouhan 
AuthorDate: Thu Feb 7 13:51:15 2019 -0800

PHOENIX-5126 RegionScanner leak leading to store files not getting cleared
---
 .../phoenix/hbase/index/covered/data/LocalTable.java  | 15 ---
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
index 85c54ce..402620f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
@@ -70,14 +70,15 @@ public class LocalTable implements LocalHBaseState {
 s.setTimeRange(0,ts);
 }
 Region region = this.env.getRegion();
-RegionScanner scanner = region.getScanner(s);
-List kvs = new ArrayList(1);
-boolean more = scanner.next(kvs);
-assert !more : "Got more than one result when scanning" + " a single row 
in the primary table!";
+try (RegionScanner scanner = region.getScanner(s)) {
+  List kvs = new ArrayList(1);
+  boolean more = scanner.next(kvs);
+  assert !more : "Got more than one result when scanning"
+  + " a single row in the primary table!";
 
-Result r = Result.create(kvs);
-scanner.close();
-return r;
+  Result r = Result.create(kvs);
+  return r;
+}
   }
 
 // Returns the smallest timestamp in the given cell lists.



[phoenix] branch 4.14-HBase-1.3 updated: PHOENIX-5126 RegionScanner leak leading to store files not getting cleared

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.14-HBase-1.3
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.14-HBase-1.3 by this push:
 new 72cdf3a  PHOENIX-5126 RegionScanner leak leading to store files not 
getting cleared
72cdf3a is described below

commit 72cdf3ae116ac067c03ceed603958fe938008fe1
Author: Abhishek Singh Chouhan 
AuthorDate: Thu Feb 7 13:51:15 2019 -0800

PHOENIX-5126 RegionScanner leak leading to store files not getting cleared
---
 .../phoenix/hbase/index/covered/data/LocalTable.java  | 15 ---
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
index 85c54ce..402620f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
@@ -70,14 +70,15 @@ public class LocalTable implements LocalHBaseState {
 s.setTimeRange(0,ts);
 }
 Region region = this.env.getRegion();
-RegionScanner scanner = region.getScanner(s);
-List kvs = new ArrayList(1);
-boolean more = scanner.next(kvs);
-assert !more : "Got more than one result when scanning" + " a single row 
in the primary table!";
+try (RegionScanner scanner = region.getScanner(s)) {
+  List kvs = new ArrayList(1);
+  boolean more = scanner.next(kvs);
+  assert !more : "Got more than one result when scanning"
+  + " a single row in the primary table!";
 
-Result r = Result.create(kvs);
-scanner.close();
-return r;
+  Result r = Result.create(kvs);
+  return r;
+}
   }
 
 // Returns the smallest timestamp in the given cell lists.



[phoenix] branch 4.14-HBase-1.2 updated: PHOENIX-5126 RegionScanner leak leading to store files not getting cleared

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.14-HBase-1.2
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.14-HBase-1.2 by this push:
 new 32ed771  PHOENIX-5126 RegionScanner leak leading to store files not 
getting cleared
32ed771 is described below

commit 32ed7711b97b5b98cc1e7fdaaedfce966c7c26b1
Author: Abhishek Singh Chouhan 
AuthorDate: Thu Feb 7 13:51:15 2019 -0800

PHOENIX-5126 RegionScanner leak leading to store files not getting cleared
---
 .../phoenix/hbase/index/covered/data/LocalTable.java  | 15 ---
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
index 85c54ce..402620f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
@@ -70,14 +70,15 @@ public class LocalTable implements LocalHBaseState {
 s.setTimeRange(0,ts);
 }
 Region region = this.env.getRegion();
-RegionScanner scanner = region.getScanner(s);
-List kvs = new ArrayList(1);
-boolean more = scanner.next(kvs);
-assert !more : "Got more than one result when scanning" + " a single row 
in the primary table!";
+try (RegionScanner scanner = region.getScanner(s)) {
+  List kvs = new ArrayList(1);
+  boolean more = scanner.next(kvs);
+  assert !more : "Got more than one result when scanning"
+  + " a single row in the primary table!";
 
-Result r = Result.create(kvs);
-scanner.close();
-return r;
+  Result r = Result.create(kvs);
+  return r;
+}
   }
 
 // Returns the smallest timestamp in the given cell lists.



[phoenix] branch 4.14-HBase-1.4 updated: PHOENIX-5126 RegionScanner leak leading to store files not getting cleared

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.14-HBase-1.4
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.14-HBase-1.4 by this push:
 new 393d972  PHOENIX-5126 RegionScanner leak leading to store files not 
getting cleared
393d972 is described below

commit 393d972eddc860fc2fec0b7da5a4fa80be905f2c
Author: Abhishek Singh Chouhan 
AuthorDate: Thu Feb 7 13:51:15 2019 -0800

PHOENIX-5126 RegionScanner leak leading to store files not getting cleared
---
 .../phoenix/hbase/index/covered/data/LocalTable.java  | 15 ---
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
index 85c54ce..402620f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/covered/data/LocalTable.java
@@ -70,14 +70,15 @@ public class LocalTable implements LocalHBaseState {
 s.setTimeRange(0,ts);
 }
 Region region = this.env.getRegion();
-RegionScanner scanner = region.getScanner(s);
-List kvs = new ArrayList(1);
-boolean more = scanner.next(kvs);
-assert !more : "Got more than one result when scanning" + " a single row 
in the primary table!";
+try (RegionScanner scanner = region.getScanner(s)) {
+  List kvs = new ArrayList(1);
+  boolean more = scanner.next(kvs);
+  assert !more : "Got more than one result when scanning"
+  + " a single row in the primary table!";
 
-Result r = Result.create(kvs);
-scanner.close();
-return r;
+  Result r = Result.create(kvs);
+  return r;
+}
   }
 
 // Returns the smallest timestamp in the given cell lists.



Build failed in Jenkins: Phoenix-4.x-HBase-1.4 #66

2019-02-07 Thread Apache Jenkins Server
See 


Changes:

[tdsilva] PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase

--
[...truncated 103.25 KB...]
[ERROR]   PhoenixTracingEndToEndIT.testScanTracing:252 Get expected updates to 
trace table
[ERROR]   PhoenixTracingEndToEndIT.testScanTracingOnServer:304 Didn't get 
expected updates to trace table
[INFO] 
[ERROR] Tests run: 3633, Failures: 3, Errors: 0, Skipped: 1
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test (HBaseManagedTimeTests) 
@ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test 
(NeedTheirOwnClusterTests) @ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running org.apache.phoenix.end2end.ChangePermissionsIT
[INFO] Running org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 44.23 s 
- in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.014 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Running org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.628 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 50.679 s 
- in org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.969 s 
- in org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Running org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.DropSchemaIT
[INFO] Running org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 27.662 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 119.787 
s - in org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.305 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Running 
org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running org.apache.phoenix.end2end.IndexToolIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.029 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Tests run: 32, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 195.172 
s - in org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 206.806 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[INFO] Running org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[INFO] Running org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 61.142 s 
- in org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[INFO] Running org.apache.phoenix.end2end.PhoenixDriverIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 461.529 
s - in org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 86.658 s 
- in org.apache.phoenix.end2end.PhoenixDriverIT
[INFO] Running org.apache.phoenix.end2end.QueryLoggerIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 478.754 
s - in org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Running org.apache.phoenix.end2end.QueryTimeoutIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.446 s 
- in org.apache.phoenix.end2end.QueryTimeoutIT
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 63.368 s 
- in org.apache.phoenix.end2end.QueryLoggerIT
[INFO] Running org.apache.phoenix.end2end.QueryWithLimitIT
[INFO] Tests run: 2, Failures: 0, 

Build failed in Jenkins: Phoenix-4.x-HBase-1.3 #324

2019-02-07 Thread Apache Jenkins Server
See 


Changes:

[tdsilva] PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase

--
[...truncated 105.86 KB...]
[INFO] Running org.apache.phoenix.end2end.ChangePermissionsIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 43.772 s 
- in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.034 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.684 s 
- in org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.882 s 
- in org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Running org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.703 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
193.08 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
190.46 s - in 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
197.058 s - in org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
197.992 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.DropSchemaIT
[INFO] Running org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 34.632 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 122.383 
s - in org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.564 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Running 
org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.18 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running org.apache.phoenix.end2end.IndexToolIT
[INFO] Tests run: 32, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 197.237 
s - in org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 199.753 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[INFO] Running org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Running 
org.apache.phoenix.end2end.NonColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 483.776 
s - in org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running 
org.apache.phoenix.end2end.NonColumnEncodedImmutableTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
184.962 s - in 
org.apache.phoenix.end2end.NonColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 469.004 
s - in org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Running org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[INFO] Running org.apache.phoenix.end2end.PhoenixDriverIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.516 s 
- in org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 96.986 s 
- in org.apache.phoenix.end2end.PhoenixDriverIT
[INFO] Running org.apache.phoenix.end2end.QueryLoggerIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 462.7

Build failed in Jenkins: Phoenix-4.x-HBase-1.2 #609

2019-02-07 Thread Apache Jenkins Server
See 


Changes:

[tdsilva] PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase

--
[...truncated 99.60 KB...]
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 37.881 s 
- in org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Running org.apache.phoenix.util.IndexScrutinyIT
[INFO] Running org.apache.phoenix.tx.TransactionIT
[INFO] Running org.apache.phoenix.tx.TxCheckpointIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 27.75 s 
- in org.apache.phoenix.util.IndexScrutinyIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 833.992 
s - in org.apache.phoenix.end2end.join.SortMergeJoinLocalIndexIT
[INFO] Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 190.671 
s - in org.apache.phoenix.tx.TransactionIT
[INFO] Tests run: 117, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1,415.17 s - in org.apache.phoenix.end2end.index.MutableIndexIT
[ERROR] Tests run: 8, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 541.076 
s <<< FAILURE! - in org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[ERROR] 
testScanTracingOnServer(org.apache.phoenix.trace.PhoenixTracingEndToEndIT)  
Time elapsed: 68.689 s  <<< FAILURE!
java.lang.AssertionError: Didn't get expected updates to trace table
at 
org.apache.phoenix.trace.PhoenixTracingEndToEndIT.testScanTracingOnServer(PhoenixTracingEndToEndIT.java:304)

[ERROR] testScanTracing(org.apache.phoenix.trace.PhoenixTracingEndToEndIT)  
Time elapsed: 206.83 s  <<< FAILURE!
java.lang.AssertionError: Get expected updates to trace table
at 
org.apache.phoenix.trace.PhoenixTracingEndToEndIT.testScanTracing(PhoenixTracingEndToEndIT.java:252)

[ERROR] 
testCustomAnnotationTracing(org.apache.phoenix.trace.PhoenixTracingEndToEndIT)  
Time elapsed: 208.75 s  <<< FAILURE!
java.lang.AssertionError: Get expected updates to trace table
at 
org.apache.phoenix.trace.PhoenixTracingEndToEndIT.testCustomAnnotationTracing(PhoenixTracingEndToEndIT.java:360)

[INFO] Tests run: 50, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 489.785 
s - in org.apache.phoenix.tx.TxCheckpointIT
[INFO] Tests run: 78, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 800.921 
s - in org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   PhoenixTracingEndToEndIT.testCustomAnnotationTracing:360 Get expected 
updates to trace table
[ERROR]   PhoenixTracingEndToEndIT.testScanTracing:252 Get expected updates to 
trace table
[ERROR]   PhoenixTracingEndToEndIT.testScanTracingOnServer:304 Didn't get 
expected updates to trace table
[INFO] 
[ERROR] Tests run: 3631, Failures: 3, Errors: 0, Skipped: 1
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test (HBaseManagedTimeTests) 
@ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test 
(NeedTheirOwnClusterTests) @ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running org.apache.phoenix.end2end.ChangePermissionsIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 40.492 s 
- in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.844 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.665 s 
- in org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.922 s 
- in org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Running org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.693 s 
- in org.apache.phoenix.end2end.CountD

Build failed in Jenkins: Phoenix | Master #2301

2019-02-07 Thread Apache Jenkins Server
See 


Changes:

[tdsilva] PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase

--
[...truncated 331.38 KB...]
[ERROR]   IndexToolIT.testSecondaryIndex:157 » IllegalArgument No network 
'en*'/'eth*' i...
[ERROR]   IndexToolIT.testSecondaryIndex:157 » IllegalArgument No network 
'en*'/'eth*' i...
[ERROR]   IndexToolIT.testSecondaryIndex:157 » IllegalArgument No network 
'en*'/'eth*' i...
[ERROR]   IndexToolIT.testSecondaryIndex:157 » IllegalArgument No network 
'en*'/'eth*' i...
[ERROR]   IndexToolIT.testSecondaryIndex:157 » IllegalArgument No network 
'en*'/'eth*' i...
[ERROR]   IndexToolIT.testSecondaryIndex:157 » IllegalArgument No network 
'en*'/'eth*' i...
[ERROR]   IndexToolIT.testSecondaryIndex:157 » IllegalArgument No network 
'en*'/'eth*' i...
[ERROR]   IndexToolIT.testSecondaryIndex:157 » IllegalArgument No network 
'en*'/'eth*' i...
[ERROR]   IndexToolIT.testSecondaryIndex:157 » IllegalArgument No network 
'en*'/'eth*' i...
[ERROR]   SpillableGroupByIT.testStatisticsAreNotWritten:177 » SQL ERROR 1401 
(STS01): S...
[ERROR]   
StatsEnabledSplitSystemCatalogIT.testNonSaltedUpdatableViewWithIndex:118->testUpdatableViewWithIndex:174
 » IllegalArgument
[ERROR]   StatsEnabledSplitSystemCatalogIT.testReadOnlyOnReadOnlyView:211 » 
IllegalArgument
[ERROR]   
StatsEnabledSplitSystemCatalogIT.testSaltedUpdatableViewWithIndex:104->testUpdatableViewWithIndex:174
 » IllegalArgument
[ERROR]   StatsEnabledSplitSystemCatalogIT.testUpdatableOnUpdatableView:136 » 
IllegalArgument
[ERROR]   ImmutableIndexIT.testDeleteFromNonPK:222 » IllegalArgument No network 
'en*'/'e...
[ERROR]   ImmutableIndexIT.testDeleteFromPartialPK:180 » IllegalArgument No 
network 'en*...
[ERROR]   ImmutableIndexIT.testDropIfImmutableKeyValueColumn:137 » 
IllegalArgument No ne...
[ERROR]   MutableIndexFailureIT.testIndexWriteFailure:248 » IllegalArgument No 
network '...
[ERROR]   
MutableIndexFailureWithNamespaceIT>MutableIndexFailureIT.testIndexWriteFailure:248
 » IllegalArgument
[ERROR]   
TxWriteFailureIT.testDataTableWriteFailure:120->helpTestWriteFailure:129 » 
IllegalArgument
[ERROR]   
TxWriteFailureIT.testDataTableWriteFailure:120->helpTestWriteFailure:129 » 
IllegalArgument
[ERROR]   
TxWriteFailureIT.testIndexTableWriteFailure:114->helpTestWriteFailure:129 » 
IllegalArgument
[ERROR]   
TxWriteFailureIT.testIndexTableWriteFailure:114->helpTestWriteFailure:129 » 
IllegalArgument
[ERROR]   PartialCommitIT.resetGlobalMetrics:146->createTables:124 » 
IllegalArgument No ...
[ERROR]   PartialCommitIT.resetGlobalMetrics:146->createTables:124 » 
IllegalArgument No ...
[ERROR]   PartialCommitIT.resetGlobalMetrics:146->createTables:124 » 
IllegalArgument No ...
[ERROR]   PartialCommitIT.resetGlobalMetrics:146->createTables:124 » 
IllegalArgument No ...
[ERROR]   PartialCommitIT.resetGlobalMetrics:146->createTables:124 » 
IllegalArgument No ...
[ERROR]   PartialCommitIT.resetGlobalMetrics:146->createTables:124 » 
IllegalArgument No ...
[ERROR]   
TxStatsCollectorIT>BaseStatsCollectorIT.testGuidePostWidthUsedInDefaultStatsCollector:809->BaseTest.createTestTable:771->BaseTest.createTestTable:807
 » IllegalArgument
[ERROR]   
TxStatsCollectorIT>BaseStatsCollectorIT.testGuidePostWidthUsedInDefaultStatsCollector:809->BaseTest.createTestTable:771->BaseTest.createTestTable:807
 » IllegalArgument
[ERROR]   
TxStatsCollectorIT>BaseStatsCollectorIT.testNoDuplicatesAfterUpdateStatsWithDesc:362->BaseStatsCollectorIT.testNoDuplicatesAfterUpdateStats:339
 » IllegalArgument
[ERROR]   
TxStatsCollectorIT>BaseStatsCollectorIT.testNoDuplicatesAfterUpdateStatsWithDesc:362->BaseStatsCollectorIT.testNoDuplicatesAfterUpdateStats:339
 » IllegalArgument
[ERROR]   
TxStatsCollectorIT>BaseStatsCollectorIT.testNoDuplicatesAfterUpdateStatsWithSplits:357->BaseStatsCollectorIT.testNoDuplicatesAfterUpdateStats:339
 » IllegalArgument
[ERROR]   
TxStatsCollectorIT>BaseStatsCollectorIT.testNoDuplicatesAfterUpdateStatsWithSplits:357->BaseStatsCollectorIT.testNoDuplicatesAfterUpdateStats:339
 » IllegalArgument
[ERROR]   TxStatsCollectorIT>BaseStatsCollectorIT.testRowCountAndByteCounts:637 
» IllegalArgument
[ERROR]   TxStatsCollectorIT>BaseStatsCollectorIT.testRowCountAndByteCounts:637 
» IllegalArgument
[ERROR]   TxStatsCollectorIT>BaseStatsCollectorIT.testSomeUpdateEmptyStats:266 
» IllegalArgument
[ERROR]   TxStatsCollectorIT>BaseStatsCollectorIT.testSomeUpdateEmptyStats:266 
» IllegalArgument
[ERROR]   TxStatsCollectorIT>BaseStatsCollectorIT.testUpdateEmptyStats:250 » 
IllegalArgument
[ERROR]   TxStatsCollectorIT>BaseStatsCollectorIT.testUpdateEmptyStats:250 » 
IllegalArgument
[ERROR]   TxStatsCollectorIT>BaseStatsCollectorIT.testUpdateStats:305 » 
IllegalArgument ...
[ERROR]   TxStatsCollectorIT>BaseStatsCollectorIT.testUpdateStats:305 » 
IllegalArgument ...
[ERROR]   TxStatsCollectorIT>BaseStatsCollectorIT.testWithMultiCF:542 » 
Illega

[phoenix] branch 4.x-HBase-1.4 updated: PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase config properties (addendum)

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.x-HBase-1.4
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.4 by this push:
 new 8935a39  PHOENIX-5124 PropertyPolicyProvider should not evaluate 
default hbase config properties (addendum)
8935a39 is described below

commit 8935a39b7477ca6dd33851b5d87cb2ef3cff9e5d
Author: Thomas D'Silva 
AuthorDate: Thu Feb 7 18:15:12 2019 -0800

PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase 
config properties (addendum)
---
 .../src/main/java/org/apache/phoenix/util/PropertiesUtil.java| 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java 
b/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
index b029a26..a52d979 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
@@ -76,6 +76,7 @@ public class PropertiesUtil {
 
 /**
  * Removes properties present that are present in standard HBase 
configuration and standard Phoenix properties
+ * These are then evaluated by the PropertyPolicyProvider.
  */
 public static Properties removeStandardHBasePhoenixConfig(Properties 
props) {
 Configuration config = HBaseConfiguration.create();
@@ -83,10 +84,12 @@ public class PropertiesUtil {
 for(Entry entry: props.entrySet()) {
 if ( entry.getKey() instanceof String) {
 String propName = (String) entry.getKey();
-if (config.get(propName) == null
-&& PhoenixEmbeddedDriver.DEFAULT_PROPS.get(propName) 
== null
+// add the property to the normalized list if its not a 
standard Phoenix property and
+// if the property is not defined in hbase-site.xml or if it 
is defined and its value is different
+if ( PhoenixEmbeddedDriver.DEFAULT_PROPS.get(propName) == null
 && !propName.equals(PhoenixRuntime.CURRENT_SCN_ATTRIB)
-&& !propName.equals(PhoenixRuntime.TENANT_ID_ATTRIB)) {
+&& !propName.equals(PhoenixRuntime.TENANT_ID_ATTRIB)
+&& (config.get(propName) == null || 
!config.get(propName).equals(entry.getValue()) )) {
 normalizedProps.put(propName, props.getProperty(propName));
 }
 }



[phoenix] branch 4.x-HBase-1.3 updated: PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase config properties (addendum)

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.x-HBase-1.3
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.3 by this push:
 new cb557f2  PHOENIX-5124 PropertyPolicyProvider should not evaluate 
default hbase config properties (addendum)
cb557f2 is described below

commit cb557f2930909518fbebdd82bcfab9f81c39264d
Author: Thomas D'Silva 
AuthorDate: Thu Feb 7 18:15:12 2019 -0800

PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase 
config properties (addendum)
---
 .../src/main/java/org/apache/phoenix/util/PropertiesUtil.java| 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java 
b/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
index b029a26..a52d979 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
@@ -76,6 +76,7 @@ public class PropertiesUtil {
 
 /**
  * Removes properties present that are present in standard HBase 
configuration and standard Phoenix properties
+ * These are then evaluated by the PropertyPolicyProvider.
  */
 public static Properties removeStandardHBasePhoenixConfig(Properties 
props) {
 Configuration config = HBaseConfiguration.create();
@@ -83,10 +84,12 @@ public class PropertiesUtil {
 for(Entry entry: props.entrySet()) {
 if ( entry.getKey() instanceof String) {
 String propName = (String) entry.getKey();
-if (config.get(propName) == null
-&& PhoenixEmbeddedDriver.DEFAULT_PROPS.get(propName) 
== null
+// add the property to the normalized list if its not a 
standard Phoenix property and
+// if the property is not defined in hbase-site.xml or if it 
is defined and its value is different
+if ( PhoenixEmbeddedDriver.DEFAULT_PROPS.get(propName) == null
 && !propName.equals(PhoenixRuntime.CURRENT_SCN_ATTRIB)
-&& !propName.equals(PhoenixRuntime.TENANT_ID_ATTRIB)) {
+&& !propName.equals(PhoenixRuntime.TENANT_ID_ATTRIB)
+&& (config.get(propName) == null || 
!config.get(propName).equals(entry.getValue()) )) {
 normalizedProps.put(propName, props.getProperty(propName));
 }
 }



[phoenix] branch 4.x-HBase-1.2 updated: PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase config properties (addendum)

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.x-HBase-1.2
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.2 by this push:
 new 2ba428d  PHOENIX-5124 PropertyPolicyProvider should not evaluate 
default hbase config properties (addendum)
2ba428d is described below

commit 2ba428d89892dfd8cfd3a63e9d50a88146e88a71
Author: Thomas D'Silva 
AuthorDate: Thu Feb 7 18:15:12 2019 -0800

PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase 
config properties (addendum)
---
 .../src/main/java/org/apache/phoenix/util/PropertiesUtil.java| 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java 
b/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
index b029a26..a52d979 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
@@ -76,6 +76,7 @@ public class PropertiesUtil {
 
 /**
  * Removes properties present that are present in standard HBase 
configuration and standard Phoenix properties
+ * These are then evaluated by the PropertyPolicyProvider.
  */
 public static Properties removeStandardHBasePhoenixConfig(Properties 
props) {
 Configuration config = HBaseConfiguration.create();
@@ -83,10 +84,12 @@ public class PropertiesUtil {
 for(Entry entry: props.entrySet()) {
 if ( entry.getKey() instanceof String) {
 String propName = (String) entry.getKey();
-if (config.get(propName) == null
-&& PhoenixEmbeddedDriver.DEFAULT_PROPS.get(propName) 
== null
+// add the property to the normalized list if its not a 
standard Phoenix property and
+// if the property is not defined in hbase-site.xml or if it 
is defined and its value is different
+if ( PhoenixEmbeddedDriver.DEFAULT_PROPS.get(propName) == null
 && !propName.equals(PhoenixRuntime.CURRENT_SCN_ATTRIB)
-&& !propName.equals(PhoenixRuntime.TENANT_ID_ATTRIB)) {
+&& !propName.equals(PhoenixRuntime.TENANT_ID_ATTRIB)
+&& (config.get(propName) == null || 
!config.get(propName).equals(entry.getValue()) )) {
 normalizedProps.put(propName, props.getProperty(propName));
 }
 }



[phoenix] branch master updated: PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase config properties (addendum)

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/master by this push:
 new b5fb4c4  PHOENIX-5124 PropertyPolicyProvider should not evaluate 
default hbase config properties (addendum)
b5fb4c4 is described below

commit b5fb4c47d4a7ef52a669f46f8606fdcd0f795214
Author: Thomas D'Silva 
AuthorDate: Thu Feb 7 18:15:12 2019 -0800

PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase 
config properties (addendum)
---
 .../src/main/java/org/apache/phoenix/util/PropertiesUtil.java| 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java 
b/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
index b029a26..a52d979 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
@@ -76,6 +76,7 @@ public class PropertiesUtil {
 
 /**
  * Removes properties present that are present in standard HBase 
configuration and standard Phoenix properties
+ * These are then evaluated by the PropertyPolicyProvider.
  */
 public static Properties removeStandardHBasePhoenixConfig(Properties 
props) {
 Configuration config = HBaseConfiguration.create();
@@ -83,10 +84,12 @@ public class PropertiesUtil {
 for(Entry entry: props.entrySet()) {
 if ( entry.getKey() instanceof String) {
 String propName = (String) entry.getKey();
-if (config.get(propName) == null
-&& PhoenixEmbeddedDriver.DEFAULT_PROPS.get(propName) 
== null
+// add the property to the normalized list if its not a 
standard Phoenix property and
+// if the property is not defined in hbase-site.xml or if it 
is defined and its value is different
+if ( PhoenixEmbeddedDriver.DEFAULT_PROPS.get(propName) == null
 && !propName.equals(PhoenixRuntime.CURRENT_SCN_ATTRIB)
-&& !propName.equals(PhoenixRuntime.TENANT_ID_ATTRIB)) {
+&& !propName.equals(PhoenixRuntime.TENANT_ID_ATTRIB)
+&& (config.get(propName) == null || 
!config.get(propName).equals(entry.getValue()) )) {
 normalizedProps.put(propName, props.getProperty(propName));
 }
 }



Apache Phoenix - Timeout crawler - Build https://builds.apache.org/job/Phoenix-master/2300/

2019-02-07 Thread Apache Jenkins Server
[...truncated 50 lines...]

Build failed in Jenkins: Phoenix | Master #2300

2019-02-07 Thread Apache Jenkins Server
See 


Changes:

[gjacoby] PHOENIX-4940 Add tenantId parameter to index tool

--
[...truncated 316.40 KB...]
[INFO] 
[ERROR] Tests run: 796, Failures: 25, Errors: 45, Skipped: 48
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test 
(SplitSystemCatalogTests) @ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] Running org.apache.phoenix.end2end.AlterMultiTenantTableWithViewsIT
[INFO] Running org.apache.phoenix.end2end.AlterTableWithViewsIT
[INFO] Running org.apache.phoenix.end2end.DropTableWithViewsIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.045 s 
- in org.apache.phoenix.end2end.DropTableWithViewsIT
[INFO] Running org.apache.phoenix.end2end.TenantSpecificViewIndexIT
[INFO] Running org.apache.phoenix.end2end.TenantSpecificViewIndexSaltedIT
[INFO] Running org.apache.phoenix.end2end.ViewIT
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 73.311 s 
- in org.apache.phoenix.end2end.AlterMultiTenantTableWithViewsIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 34.104 s 
- in org.apache.phoenix.end2end.TenantSpecificViewIndexSaltedIT
[INFO] Running org.apache.phoenix.end2end.index.ViewIndexIT
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 65.005 
s - in org.apache.phoenix.end2end.TenantSpecificViewIndexIT
[WARNING] Tests run: 14, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 
48.853 s - in org.apache.phoenix.end2end.index.ViewIndexIT
[ERROR] Tests run: 160, Failures: 0, Errors: 25, Skipped: 0, Time elapsed: 
376.942 s <<< FAILURE! - in org.apache.phoenix.end2end.ViewIT
[ERROR] testReadOnlyOnUpdatableView[ViewIT_transactionProvider=OMID, 
columnEncoded=false](org.apache.phoenix.end2end.ViewIT)  Time elapsed: 0.015 s  
<<< ERROR!
java.lang.IllegalArgumentException: No network 'en*'/'eth*' interfaces found
at org.apache.phoenix.end2end.ViewIT.testUpdatableView(ViewIT.java:1197)
at 
org.apache.phoenix.end2end.ViewIT.testReadOnlyOnUpdatableView(ViewIT.java:221)

[ERROR] testViewAddsClashingPKColumn[ViewIT_transactionProvider=OMID, 
columnEncoded=false](org.apache.phoenix.end2end.ViewIT)  Time elapsed: 0.002 s  
<<< ERROR!
java.lang.Exception: Unexpected exception, 
expected but 
was
at 
org.apache.phoenix.end2end.ViewIT.testViewAddsClashingPKColumn(ViewIT.java:841)

[ERROR] testViewWithCurrentDate[ViewIT_transactionProvider=OMID, 
columnEncoded=false](org.apache.phoenix.end2end.ViewIT)  Time elapsed: 0.002 s  
<<< ERROR!
java.lang.IllegalArgumentException: No network 'en*'/'eth*' interfaces found
at 
org.apache.phoenix.end2end.ViewIT.testViewWithCurrentDate(ViewIT.java:362)

[ERROR] testViewAddsNotNullPKColumn[ViewIT_transactionProvider=OMID, 
columnEncoded=false](org.apache.phoenix.end2end.ViewIT)  Time elapsed: 0.002 s  
<<< ERROR!
java.lang.IllegalArgumentException: No network 'en*'/'eth*' interfaces found
at 
org.apache.phoenix.end2end.ViewIT.testViewAddsNotNullPKColumn(ViewIT.java:855)

[ERROR] 
testReadOnlyViewWithCaseSensitiveTableNames[ViewIT_transactionProvider=OMID, 
columnEncoded=false](org.apache.phoenix.end2end.ViewIT)  Time elapsed: 0.002 s  
<<< ERROR!
java.lang.IllegalArgumentException: No network 'en*'/'eth*' interfaces found
at 
org.apache.phoenix.end2end.ViewIT.testReadOnlyViewWithCaseSensitiveTableNames(ViewIT.java:293)

[ERROR] testRecreateDroppedTableWithChildViews[ViewIT_transactionProvider=OMID, 
columnEncoded=false](org.apache.phoenix.end2end.ViewIT)  Time elapsed: 0.002 s  
<<< ERROR!
java.lang.IllegalArgumentException: No network 'en*'/'eth*' interfaces found
at 
org.apache.phoenix.end2end.ViewIT.testRecreateDroppedTableWithChildViews(ViewIT.java:514)

[ERROR] testConcurrentAddDifferentColumn[ViewIT_transactionProvider=OMID, 
columnEncoded=false](org.apache.phoenix.end2end.ViewIT)  Time elapsed: 0.002 s  
<<< ERROR!
java.lang.IllegalArgumentException: No network 'en*'/'eth*' interfaces found
at 
org.apache.phoenix.end2end.ViewIT.testConcurrentAddDifferentColumn(ViewIT.java:1487)

[ERROR] 
testViewAndTableAndDropCascadeWithIndexes[ViewIT_transactionProvider=OMID, 
columnEncoded=false](org.apache.phoenix.end2end.ViewIT)  Time elapsed: 0.002 s  
<<< ERROR!
java.lang.IllegalArgumentException: No network 'en*'/'eth*' interfaces found
at 
org.apache.phoenix.end2end.ViewIT.testViewAndTableAndDropCascadeWithIndexes(ViewIT.java:629)

[ERROR] testDisallowDropOfColumnOnParentTable[ViewIT_transactionProvider=OMID, 
columnEncoded=false](org.apache.phoenix.end2end.ViewIT)  Time elapsed: 0.002 s  
<<< ERROR!
java.lang.IllegalArgumentException: No network 'en*'/'eth*' interfaces found
at 
org.apache.phoenix.end2end.ViewIT.testDisallowDropOfColumnOnParentTable(Vie

Build failed in Jenkins: Phoenix-4.x-HBase-1.4 #65

2019-02-07 Thread Apache Jenkins Server
See 


Changes:

[chinmayskulkarni] PHOENIX-374: Enable access to dynamic columns in * or cf.* 
selection

--
[...truncated 102.36 KB...]

[INFO] Tests run: 78, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 732.883 
s - in org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   PhoenixTracingEndToEndIT.testCustomAnnotationTracing:360 Get expected 
updates to trace table
[ERROR]   PhoenixTracingEndToEndIT.testScanTracing:252 Get expected updates to 
trace table
[ERROR]   PhoenixTracingEndToEndIT.testScanTracingOnServer:304 Didn't get 
expected updates to trace table
[INFO] 
[ERROR] Tests run: 3632, Failures: 3, Errors: 0, Skipped: 1
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test (HBaseManagedTimeTests) 
@ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test 
(NeedTheirOwnClusterTests) @ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running org.apache.phoenix.end2end.ChangePermissionsIT
[INFO] Running org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 44.553 s 
- in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.689 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Running org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.586 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.615 s 
- in org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.165 s 
- in org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.DropSchemaIT
[INFO] Running org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 33.046 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 124.651 
s - in org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.48 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Running 
org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 27.986 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running org.apache.phoenix.end2end.IndexToolIT
[INFO] Tests run: 32, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 192.955 
s - in org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 207.134 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Running org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 62.119 s 
- in org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[INFO] Running org.apache.phoenix.end2end.PhoenixDriverIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 462.173 
s - in org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 104.129 
s - in org.apache.phoenix.end2end.PhoenixDriverIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 466.494 
s - in org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Running org.apache.phoenix.end2end.QueryLoggerIT
[INFO] Running org.apache.phoenix.end2end.QueryTimeoutIT
[INFO] Tests run: 2, Failures: 0, Errors: 0,

[phoenix] branch master updated: PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase config properties

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/master by this push:
 new d17f943  PHOENIX-5124 PropertyPolicyProvider should not evaluate 
default hbase config properties
d17f943 is described below

commit d17f943b882afbc7b0b7ee7e252d324ed4de462c
Author: Thomas D'Silva 
AuthorDate: Mon Feb 4 23:17:37 2019 -0800

PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase 
config properties
---
 .../apache/phoenix/end2end/AppendOnlySchemaIT.java |  2 +-
 .../phoenix/end2end/PropertyPolicyProviderIT.java  | 26 
 .../java/org/apache/phoenix/rpc/UpdateCacheIT.java |  2 +-
 .../org/apache/phoenix/jdbc/PhoenixConnection.java |  2 +-
 .../apache/phoenix/jdbc/PhoenixEmbeddedDriver.java |  7 ++
 .../org/apache/phoenix/util/PropertiesUtil.java| 28 +-
 6 files changed, 58 insertions(+), 9 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
index b39c4f0..e1c56ea 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
@@ -70,7 +70,7 @@ public class AppendOnlySchemaIT extends 
ParallelStatsDisabledIT {
 Mockito.spy(driver.getConnectionQueryServices(getUrl(),
 PropertiesUtil.deepCopy(TEST_PROPERTIES)));
 Properties props = new Properties();
-props.putAll(PhoenixEmbeddedDriver.DEFFAULT_PROPS.asMap());
+props.putAll(PhoenixEmbeddedDriver.DEFAULT_PROPS.asMap());
 
 try (Connection conn1 = connectionQueryServices.connect(getUrl(), 
props);
 Connection conn2 = sameClient ? conn1 : 
connectionQueryServices.connect(getUrl(), props)) {
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
new file mode 100644
index 000..48508a9
--- /dev/null
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
@@ -0,0 +1,26 @@
+package org.apache.phoenix.end2end;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hadoop.hbase.HConstants;
+import org.apache.phoenix.mapreduce.util.ConnectionUtil;
+import org.junit.Test;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+import java.util.Properties;
+
+public class PropertyPolicyProviderIT  extends ParallelStatsDisabledIT {
+
+@Test
+public void testUsingDefaultHBaseConfigs() throws SQLException {
+Configuration config = HBaseConfiguration.create();
+config.set(HConstants.ZOOKEEPER_QUORUM, getUrl());
+Properties properties=new Properties();
+properties.put("allowedProperty","value");
+try(
+Connection conn = ConnectionUtil.getInputConnection(config, 
properties)
+){}
+}
+
+}
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
index 2959b99..a1bdad7 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
@@ -192,7 +192,7 @@ public class UpdateCacheIT extends ParallelStatsDisabledIT {
// use a spyed ConnectionQueryServices so we can verify calls 
to getTable
ConnectionQueryServices connectionQueryServices = 
Mockito.spy(driver.getConnectionQueryServices(getUrl(), 
PropertiesUtil.deepCopy(TEST_PROPERTIES)));
Properties props = new Properties();
-   props.putAll(PhoenixEmbeddedDriver.DEFFAULT_PROPS.asMap());
+   props.putAll(PhoenixEmbeddedDriver.DEFAULT_PROPS.asMap());
Connection conn = connectionQueryServices.connect(getUrl(), 
props);
try {
conn.setAutoCommit(false);
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 596e27c..d74 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
@@ -245,7 +245,7 @@ public class PhoenixConnection implements Connection, 
MetaDataMutated, SQLClosea
 
 // Filter user provided properties based on property policy, if
 // provided.
-PropertyPolicyProvider.getPropertyPolicy().evaluate(info);
+
PropertyPolicyProvider.getPropertyPolicy().evaluate(PropertiesUtil.removeStandardHBasePhoenixConfig(info));
 
  

[phoenix] branch 4.x-HBase-1.4 updated: PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase config properties

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.x-HBase-1.4
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.4 by this push:
 new d3301e4  PHOENIX-5124 PropertyPolicyProvider should not evaluate 
default hbase config properties
d3301e4 is described below

commit d3301e45435e479cf8dfeda6f4bcf2873b3106c5
Author: Thomas D'Silva 
AuthorDate: Mon Feb 4 23:17:37 2019 -0800

PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase 
config properties
---
 .../apache/phoenix/end2end/AppendOnlySchemaIT.java |  2 +-
 .../phoenix/end2end/PropertyPolicyProviderIT.java  | 26 
 .../java/org/apache/phoenix/rpc/UpdateCacheIT.java |  2 +-
 .../org/apache/phoenix/jdbc/PhoenixConnection.java |  2 +-
 .../apache/phoenix/jdbc/PhoenixEmbeddedDriver.java |  7 ++
 .../org/apache/phoenix/util/PropertiesUtil.java| 28 +-
 6 files changed, 58 insertions(+), 9 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
index b39c4f0..e1c56ea 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
@@ -70,7 +70,7 @@ public class AppendOnlySchemaIT extends 
ParallelStatsDisabledIT {
 Mockito.spy(driver.getConnectionQueryServices(getUrl(),
 PropertiesUtil.deepCopy(TEST_PROPERTIES)));
 Properties props = new Properties();
-props.putAll(PhoenixEmbeddedDriver.DEFFAULT_PROPS.asMap());
+props.putAll(PhoenixEmbeddedDriver.DEFAULT_PROPS.asMap());
 
 try (Connection conn1 = connectionQueryServices.connect(getUrl(), 
props);
 Connection conn2 = sameClient ? conn1 : 
connectionQueryServices.connect(getUrl(), props)) {
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
new file mode 100644
index 000..48508a9
--- /dev/null
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
@@ -0,0 +1,26 @@
+package org.apache.phoenix.end2end;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hadoop.hbase.HConstants;
+import org.apache.phoenix.mapreduce.util.ConnectionUtil;
+import org.junit.Test;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+import java.util.Properties;
+
+public class PropertyPolicyProviderIT  extends ParallelStatsDisabledIT {
+
+@Test
+public void testUsingDefaultHBaseConfigs() throws SQLException {
+Configuration config = HBaseConfiguration.create();
+config.set(HConstants.ZOOKEEPER_QUORUM, getUrl());
+Properties properties=new Properties();
+properties.put("allowedProperty","value");
+try(
+Connection conn = ConnectionUtil.getInputConnection(config, 
properties)
+){}
+}
+
+}
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
index 2959b99..a1bdad7 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
@@ -192,7 +192,7 @@ public class UpdateCacheIT extends ParallelStatsDisabledIT {
// use a spyed ConnectionQueryServices so we can verify calls 
to getTable
ConnectionQueryServices connectionQueryServices = 
Mockito.spy(driver.getConnectionQueryServices(getUrl(), 
PropertiesUtil.deepCopy(TEST_PROPERTIES)));
Properties props = new Properties();
-   props.putAll(PhoenixEmbeddedDriver.DEFFAULT_PROPS.asMap());
+   props.putAll(PhoenixEmbeddedDriver.DEFAULT_PROPS.asMap());
Connection conn = connectionQueryServices.connect(getUrl(), 
props);
try {
conn.setAutoCommit(false);
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 596e27c..d74 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
@@ -245,7 +245,7 @@ public class PhoenixConnection implements Connection, 
MetaDataMutated, SQLClosea
 
 // Filter user provided properties based on property policy, if
 // provided.
-PropertyPolicyProvider.getPropertyPolicy().evaluate(info);
+
PropertyPolicyProvider.getPropertyPolicy().evaluate(PropertiesUtil.removeStandardHBasePhoenixConfig(in

[phoenix] branch 4.x-HBase-1.2 updated: PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase config properties

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.x-HBase-1.2
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.2 by this push:
 new 9910b60  PHOENIX-5124 PropertyPolicyProvider should not evaluate 
default hbase config properties
9910b60 is described below

commit 9910b604362517537d9dc2b5fc4a91f3beecda1d
Author: Thomas D'Silva 
AuthorDate: Mon Feb 4 23:17:37 2019 -0800

PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase 
config properties
---
 .../apache/phoenix/end2end/AppendOnlySchemaIT.java |  2 +-
 .../phoenix/end2end/PropertyPolicyProviderIT.java  | 26 
 .../java/org/apache/phoenix/rpc/UpdateCacheIT.java |  2 +-
 .../org/apache/phoenix/jdbc/PhoenixConnection.java |  2 +-
 .../apache/phoenix/jdbc/PhoenixEmbeddedDriver.java |  7 ++
 .../org/apache/phoenix/util/PropertiesUtil.java| 28 +-
 6 files changed, 58 insertions(+), 9 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
index b39c4f0..e1c56ea 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
@@ -70,7 +70,7 @@ public class AppendOnlySchemaIT extends 
ParallelStatsDisabledIT {
 Mockito.spy(driver.getConnectionQueryServices(getUrl(),
 PropertiesUtil.deepCopy(TEST_PROPERTIES)));
 Properties props = new Properties();
-props.putAll(PhoenixEmbeddedDriver.DEFFAULT_PROPS.asMap());
+props.putAll(PhoenixEmbeddedDriver.DEFAULT_PROPS.asMap());
 
 try (Connection conn1 = connectionQueryServices.connect(getUrl(), 
props);
 Connection conn2 = sameClient ? conn1 : 
connectionQueryServices.connect(getUrl(), props)) {
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
new file mode 100644
index 000..48508a9
--- /dev/null
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
@@ -0,0 +1,26 @@
+package org.apache.phoenix.end2end;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hadoop.hbase.HConstants;
+import org.apache.phoenix.mapreduce.util.ConnectionUtil;
+import org.junit.Test;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+import java.util.Properties;
+
+public class PropertyPolicyProviderIT  extends ParallelStatsDisabledIT {
+
+@Test
+public void testUsingDefaultHBaseConfigs() throws SQLException {
+Configuration config = HBaseConfiguration.create();
+config.set(HConstants.ZOOKEEPER_QUORUM, getUrl());
+Properties properties=new Properties();
+properties.put("allowedProperty","value");
+try(
+Connection conn = ConnectionUtil.getInputConnection(config, 
properties)
+){}
+}
+
+}
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
index 2959b99..a1bdad7 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
@@ -192,7 +192,7 @@ public class UpdateCacheIT extends ParallelStatsDisabledIT {
// use a spyed ConnectionQueryServices so we can verify calls 
to getTable
ConnectionQueryServices connectionQueryServices = 
Mockito.spy(driver.getConnectionQueryServices(getUrl(), 
PropertiesUtil.deepCopy(TEST_PROPERTIES)));
Properties props = new Properties();
-   props.putAll(PhoenixEmbeddedDriver.DEFFAULT_PROPS.asMap());
+   props.putAll(PhoenixEmbeddedDriver.DEFAULT_PROPS.asMap());
Connection conn = connectionQueryServices.connect(getUrl(), 
props);
try {
conn.setAutoCommit(false);
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 596e27c..d74 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
@@ -245,7 +245,7 @@ public class PhoenixConnection implements Connection, 
MetaDataMutated, SQLClosea
 
 // Filter user provided properties based on property policy, if
 // provided.
-PropertyPolicyProvider.getPropertyPolicy().evaluate(info);
+
PropertyPolicyProvider.getPropertyPolicy().evaluate(PropertiesUtil.removeStandardHBasePhoenixConfig(in

[phoenix] branch 4.x-HBase-1.3 updated: PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase config properties

2019-02-07 Thread tdsilva
This is an automated email from the ASF dual-hosted git repository.

tdsilva pushed a commit to branch 4.x-HBase-1.3
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.3 by this push:
 new c0824af  PHOENIX-5124 PropertyPolicyProvider should not evaluate 
default hbase config properties
c0824af is described below

commit c0824affd9a85eaa59dc03955af8ac0c59b883ce
Author: Thomas D'Silva 
AuthorDate: Mon Feb 4 23:17:37 2019 -0800

PHOENIX-5124 PropertyPolicyProvider should not evaluate default hbase 
config properties
---
 .../apache/phoenix/end2end/AppendOnlySchemaIT.java |  2 +-
 .../phoenix/end2end/PropertyPolicyProviderIT.java  | 26 
 .../java/org/apache/phoenix/rpc/UpdateCacheIT.java |  2 +-
 .../org/apache/phoenix/jdbc/PhoenixConnection.java |  2 +-
 .../apache/phoenix/jdbc/PhoenixEmbeddedDriver.java |  7 ++
 .../org/apache/phoenix/util/PropertiesUtil.java| 28 +-
 6 files changed, 58 insertions(+), 9 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
index b39c4f0..e1c56ea 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AppendOnlySchemaIT.java
@@ -70,7 +70,7 @@ public class AppendOnlySchemaIT extends 
ParallelStatsDisabledIT {
 Mockito.spy(driver.getConnectionQueryServices(getUrl(),
 PropertiesUtil.deepCopy(TEST_PROPERTIES)));
 Properties props = new Properties();
-props.putAll(PhoenixEmbeddedDriver.DEFFAULT_PROPS.asMap());
+props.putAll(PhoenixEmbeddedDriver.DEFAULT_PROPS.asMap());
 
 try (Connection conn1 = connectionQueryServices.connect(getUrl(), 
props);
 Connection conn2 = sameClient ? conn1 : 
connectionQueryServices.connect(getUrl(), props)) {
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
new file mode 100644
index 000..48508a9
--- /dev/null
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PropertyPolicyProviderIT.java
@@ -0,0 +1,26 @@
+package org.apache.phoenix.end2end;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hadoop.hbase.HConstants;
+import org.apache.phoenix.mapreduce.util.ConnectionUtil;
+import org.junit.Test;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+import java.util.Properties;
+
+public class PropertyPolicyProviderIT  extends ParallelStatsDisabledIT {
+
+@Test
+public void testUsingDefaultHBaseConfigs() throws SQLException {
+Configuration config = HBaseConfiguration.create();
+config.set(HConstants.ZOOKEEPER_QUORUM, getUrl());
+Properties properties=new Properties();
+properties.put("allowedProperty","value");
+try(
+Connection conn = ConnectionUtil.getInputConnection(config, 
properties)
+){}
+}
+
+}
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
index 2959b99..a1bdad7 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/rpc/UpdateCacheIT.java
@@ -192,7 +192,7 @@ public class UpdateCacheIT extends ParallelStatsDisabledIT {
// use a spyed ConnectionQueryServices so we can verify calls 
to getTable
ConnectionQueryServices connectionQueryServices = 
Mockito.spy(driver.getConnectionQueryServices(getUrl(), 
PropertiesUtil.deepCopy(TEST_PROPERTIES)));
Properties props = new Properties();
-   props.putAll(PhoenixEmbeddedDriver.DEFFAULT_PROPS.asMap());
+   props.putAll(PhoenixEmbeddedDriver.DEFAULT_PROPS.asMap());
Connection conn = connectionQueryServices.connect(getUrl(), 
props);
try {
conn.setAutoCommit(false);
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 596e27c..d74 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
@@ -245,7 +245,7 @@ public class PhoenixConnection implements Connection, 
MetaDataMutated, SQLClosea
 
 // Filter user provided properties based on property policy, if
 // provided.
-PropertyPolicyProvider.getPropertyPolicy().evaluate(info);
+
PropertyPolicyProvider.getPropertyPolicy().evaluate(PropertiesUtil.removeStandardHBasePhoenixConfig(in

[phoenix] branch master updated: PHOENIX-4940 Add tenantId parameter to index tool

2019-02-07 Thread gjacoby
This is an automated email from the ASF dual-hosted git repository.

gjacoby pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/master by this push:
 new 1bb4313  PHOENIX-4940 Add tenantId parameter to index tool
1bb4313 is described below

commit 1bb43138e47d8c5a72e12c21941b63908fa5069a
Author: Gokcen Iskender 
AuthorDate: Thu Jan 31 11:04:03 2019 -0800

PHOENIX-4940 Add tenantId parameter to index tool

Signed-off-by: Geoffrey Jacoby 
---
 .../org/apache/phoenix/end2end/IndexToolIT.java| 112 +++--
 .../apache/phoenix/mapreduce/index/IndexTool.java  |  44 +---
 2 files changed, 138 insertions(+), 18 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolIT.java
index dfe4634..c1a455a 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexToolIT.java
@@ -46,10 +46,12 @@ import org.apache.hadoop.hbase.regionserver.RegionScanner;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.phoenix.jdbc.PhoenixConnection;
 import org.apache.phoenix.mapreduce.index.IndexTool;
+import org.apache.phoenix.query.ConnectionQueryServices;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.query.QueryServicesOptions;
 import org.apache.phoenix.transaction.PhoenixTransactionProvider.Feature;
 import org.apache.phoenix.transaction.TransactionFactory;
+import org.apache.phoenix.util.PhoenixRuntime;
 import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.QueryUtil;
 import org.apache.phoenix.util.ReadOnlyProps;
@@ -72,13 +74,15 @@ public class IndexToolIT extends 
BaseUniqueNamesOwnClusterIT {
 private final boolean directApi;
 private final String tableDDLOptions;
 private final boolean useSnapshot;
+private final boolean useTenantId;
 
 public IndexToolIT(String transactionProvider, boolean mutable, boolean 
localIndex,
-boolean directApi, boolean useSnapshot) {
+boolean directApi, boolean useSnapshot, boolean useTenantId) {
 this.localIndex = localIndex;
 this.transactional = transactionProvider != null;
 this.directApi = directApi;
 this.useSnapshot = useSnapshot;
+this.useTenantId = useTenantId;
 StringBuilder optionBuilder = new StringBuilder();
 if (!mutable) {
 optionBuilder.append(" IMMUTABLE_ROWS=true ");
@@ -124,13 +128,15 @@ public class IndexToolIT extends 
BaseUniqueNamesOwnClusterIT {
 .isUnsupported(Feature.ALLOW_LOCAL_INDEX)) {
 for (boolean directApi : Booleans) {
 for (boolean useSnapshot : Booleans) {
-list.add(new Object[] { transactionProvider, 
mutable, localIndex, directApi, useSnapshot });
+list.add(new Object[] { transactionProvider, 
mutable, localIndex, directApi, useSnapshot, false});
 }
 }
 }
 }
 }
 }
+// Add the usetenantId
+list.add(new Object[] { "", false, false, true, false, true});
 return TestUtil.filterTxParamData(list,0);
 }
 
@@ -229,6 +235,89 @@ public class IndexToolIT extends 
BaseUniqueNamesOwnClusterIT {
 }
 
 @Test
+public void testIndexToolWithTenantId() throws Exception {
+if (!useTenantId) { return;}
+String tenantId = generateUniqueName();
+String schemaName = generateUniqueName();
+String dataTableName = generateUniqueName();
+String viewTenantName = generateUniqueName();
+String indexNameGlobal = generateUniqueName();
+String indexNameTenant = generateUniqueName();
+String viewIndexTableName = "_IDX_" + dataTableName;
+
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
+Connection connGlobal = DriverManager.getConnection(getUrl(), props);
+props.setProperty(PhoenixRuntime.TENANT_ID_ATTRIB, tenantId);
+Connection connTenant = DriverManager.getConnection(getUrl(), props);
+String createTableStr = "CREATE TABLE %s (TENANT_ID VARCHAR(15) NOT 
NULL, ID INTEGER NOT NULL, NAME VARCHAR, "
++ "CONSTRAINT PK_1 PRIMARY KEY (TENANT_ID, ID)) 
MULTI_TENANT=true";
+String createViewStr = "CREATE VIEW %s AS SELECT * FROM %s";
+
+String upsertQueryStr = "UPSERT INTO %s (TENANT_ID, ID, NAME) 
VALUES('%s' , %d, '%s')";
+String createIndexStr = "CREATE INDEX %s ON %s (NAME) ";
+
+try {
+String tableStmtGlobal = String.format(createTableStr, 
dataTableName);
+connGlobal.createStatement().execute(tableStmtGlobal);
+
+Stri

Build failed in Jenkins: Phoenix Compile Compatibility with HBase #901

2019-02-07 Thread Apache Jenkins Server
See 


--
Started by timer
[EnvInject] - Loading node environment variables.
Building remotely on H25 (ubuntu xenial) in workspace 

[Phoenix_Compile_Compat_wHBase] $ /bin/bash /tmp/jenkins3360329189538404910.sh
core file size  (blocks, -c) 0
data seg size   (kbytes, -d) unlimited
scheduling priority (-e) 0
file size   (blocks, -f) unlimited
pending signals (-i) 386407
max locked memory   (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files  (-n) 6
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority  (-r) 0
stack size  (kbytes, -s) 8192
cpu time   (seconds, -t) unlimited
max user processes  (-u) 10240
virtual memory  (kbytes, -v) unlimited
file locks  (-x) unlimited
core id : 0
core id : 1
core id : 2
core id : 3
core id : 4
core id : 5
physical id : 0
physical id : 1
MemTotal:   98957636 kB
MemFree:47605872 kB
Filesystem  Size  Used Avail Use% Mounted on
udev 48G 0   48G   0% /dev
tmpfs   9.5G  962M  8.5G  10% /run
/dev/sda3   3.6T  266G  3.2T   8% /
tmpfs48G 0   48G   0% /dev/shm
tmpfs   5.0M 0  5.0M   0% /run/lock
tmpfs48G 0   48G   0% /sys/fs/cgroup
/dev/sda2   473M  191M  258M  43% /boot
/dev/loop1   28M   28M 0 100% /snap/snapcraft/1871
tmpfs   9.5G  4.0K  9.5G   1% /run/user/910
tmpfs   9.5G 0  9.5G   0% /run/user/1000
/dev/loop2   28M   28M 0 100% /snap/snapcraft/2374
/dev/loop6   90M   90M 0 100% /snap/core/6130
/dev/loop10  52M   52M 0 100% /snap/lxd/9874
/dev/loop4   52M   52M 0 100% /snap/lxd/9886
/dev/loop7   53M   53M 0 100% /snap/lxd/9919
/dev/loop9   92M   92M 0 100% /snap/core/6259
/dev/loop11  91M   91M 0 100% /snap/core/6350
/dev/loop8   56M   56M 0 100% /snap/snapcraft/2496
apache-maven-2.2.1
apache-maven-3.0.4
apache-maven-3.0.5
apache-maven-3.1.1
apache-maven-3.2.1
apache-maven-3.2.5
apache-maven-3.3.3
apache-maven-3.3.9
apache-maven-3.5.0
apache-maven-3.5.2
apache-maven-3.5.4
apache-maven-3.6.0
latest
latest2
latest3


===
Verifying compile level compatibility with HBase 0.98 with Phoenix 
4.x-HBase-0.98
===

Cloning into 'hbase'...
Switched to a new branch '0.98'
Branch 0.98 set up to track remote branch 0.98 from origin.
[ERROR] Plugin org.codehaus.mojo:findbugs-maven-plugin:2.5.2 or one of its 
dependencies could not be resolved: Failed to read artifact descriptor for 
org.codehaus.mojo:findbugs-maven-plugin:jar:2.5.2: Could not transfer artifact 
org.codehaus.mojo:findbugs-maven-plugin:pom:2.5.2 from/to central 
(https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version 
-> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Build step 'Execute shell' marked build as failure