Jenkins build is back to normal : Phoenix-4.x-HBase-1.3 #288

2018-12-10 Thread Apache Jenkins Server
See 




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

2018-12-10 Thread Apache Jenkins Server
See 


Changes:

[chinmayskulkarni] PHOENIX-5025 Tool to clean up orphan views

--
[...truncated 97.44 KB...]
[WARNING] Tests run: 3494, Failures: 0, 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: 35.154 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: 11.397 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[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.625 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: 5.01 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.633 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
170.995 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
169.469 s - in 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
174.279 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
178.134 s - in org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[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: 22.813 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 119.359 
s - in org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.005 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: 30.892 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running org.apache.phoenix.end2end.IndexToolIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 192.227 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Tests run: 32, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 194.681 
s - in org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[INFO] Running org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Running 
org.apache.phoenix.end2end.NonColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 85.467 s 
- in org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 494.87 
s - in org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running 

Build failed in Jenkins: Phoenix | Master #2262

2018-12-10 Thread Apache Jenkins Server
See 


Changes:

[chinmayskulkarni] PHOENIX-5025 Tool to clean up orphan views

--
[...truncated 112.43 KB...]
[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 
s - in org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[INFO] Running org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Running org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 54.492 s 
- in org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.583 s 
- in org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Running org.apache.phoenix.tx.TransactionIT
[INFO] Running org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 364.739 
s - in org.apache.phoenix.end2end.join.SubqueryIT
[INFO] Running org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.975 s 
- in org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Running org.apache.phoenix.util.IndexScrutinyIT
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 71.749 s 
- in org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.211 s 
- in org.apache.phoenix.util.IndexScrutinyIT
[INFO] Running org.apache.phoenix.tx.TxCheckpointIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 806.229 
s - in org.apache.phoenix.end2end.join.HashJoinLocalIndexIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 106.671 
s - in org.apache.phoenix.tx.TransactionIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 781.749 
s - in org.apache.phoenix.end2end.join.SortMergeJoinLocalIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 334.314 
s - in org.apache.phoenix.tx.TxCheckpointIT
[INFO] Tests run: 52, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 601.828 
s - in org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   ConcurrentMutationsIT.testLockUntilMVCCAdvanced:385 Expected data 
table row count to match expected:<1> but was:<0>
[ERROR]   ConcurrentMutationsIT.testRowLockDuringPreBatchMutateWhenIndexed:329 
Expected data table row count to match expected:<1> but was:<0>
[ERROR] Errors: 
[ERROR]   
MutableIndexSplitForwardScanIT.testSplitDuringIndexScan:30->MutableIndexSplitIT.testSplitDuringIndexScan:87->MutableIndexSplitIT.splitDuringScan:152
 » StaleRegionBoundaryCache
[ERROR]   
MutableIndexSplitForwardScanIT.testSplitDuringIndexScan:30->MutableIndexSplitIT.testSplitDuringIndexScan:87->MutableIndexSplitIT.splitDuringScan:152
 » StaleRegionBoundaryCache
[ERROR]   
MutableIndexSplitReverseScanIT.testSplitDuringIndexScan:30->MutableIndexSplitIT.testSplitDuringIndexScan:87->MutableIndexSplitIT.splitDuringScan:152
 » StaleRegionBoundaryCache
[ERROR]   
MutableIndexSplitReverseScanIT.testSplitDuringIndexScan:30->MutableIndexSplitIT.testSplitDuringIndexScan:87->MutableIndexSplitIT.splitDuringScan:152
 » StaleRegionBoundaryCache
[INFO] 
[ERROR] Tests run: 3494, Failures: 2, Errors: 4, Skipped: 10
[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
[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.002 
s - in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running org.apache.phoenix.end2end.ChangePermissionsIT
[INFO] Running org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.671 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running 

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

2018-12-10 Thread Apache Jenkins Server
4.x-HBase-1.3 branch build status Successful

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

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

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

Changes
[chinmayskulkarni] PHOENIX-4763: Changing a base table property value should be reflected



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


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

2018-12-10 Thread Apache Jenkins Server
See 


Changes:

[chinmayskulkarni] PHOENIX-4763: Changing a base table property value should be 
reflected

--
[...truncated 97.15 KB...]
[INFO] Results:
[INFO] 
[WARNING] Tests run: 3466, Failures: 0, 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: 56.617 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: 12.669 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[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: 72.569 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.632 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: 8.744 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
235.255 s - in 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
241.527 s - in org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
246.37 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
249.174 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[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: 39.206 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 133.832 
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.235 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: 30.556 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Tests run: 32, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 225.273 
s - in org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.IndexToolIT
[INFO] Running org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 254.312 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[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: 541.97 
s - in org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running 
org.apache.phoenix.end2end.NonColumnEncodedImmutableTxStatsCollectorIT
[INFO] Tests run: 33, 

phoenix git commit: PHOENIX-5025 Tool to clean up orphan views

2018-12-10 Thread chinmayskulkarni
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.4 937babf10 -> e88051a3e


PHOENIX-5025 Tool to clean up orphan views


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

Branch: refs/heads/4.x-HBase-1.4
Commit: e88051a3e825374baac898de160ca4e897e14426
Parents: 937babf
Author: Kadir 
Authored: Mon Nov 12 22:24:10 2018 -0800
Committer: Chinmay Kulkarni 
Committed: Mon Dec 10 16:39:33 2018 -0800

--
 .../phoenix/end2end/OrphanViewToolIT.java   | 472 ++
 .../phoenix/mapreduce/OrphanViewTool.java   | 879 +++
 2 files changed, 1351 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/e88051a3/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
new file mode 100644
index 000..f9a1785
--- /dev/null
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
@@ -0,0 +1,472 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.phoenix.end2end;
+
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LINK_TYPE;
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME;
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SYSTEM_CHILD_LINK_NAME;
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_SCHEM;
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_TYPE;
+import static org.apache.phoenix.util.PhoenixRuntime.TENANT_ID_ATTRIB;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+
+import com.google.common.collect.Lists;
+import org.apache.hadoop.conf.Configuration;
+import org.apache.phoenix.mapreduce.OrphanViewTool;
+import org.apache.phoenix.schema.PTable;
+import org.apache.phoenix.schema.PTableType;
+import org.apache.phoenix.util.SchemaUtil;
+import org.junit.AfterClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameters;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@RunWith(Parameterized.class)
+public class OrphanViewToolIT extends ParallelStatsDisabledIT {
+private static final Logger LOG = 
LoggerFactory.getLogger(OrphanViewToolIT.class);
+
+private final boolean isMultiTenant;
+private final boolean columnEncoded;
+
+private static final long fanout = 2;
+private static final long childCount = fanout;
+private static final long grandChildCount = fanout * fanout;
+private static final long grandGrandChildCount = fanout * fanout * fanout;
+
+private static final String filePath = "/tmp/";
+private static final String viewFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.VIEW];
+private static final String physicalLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.PHYSICAL_TABLE_LINK];
+private static final String parentLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.PARENT_TABLE_LINK];
+private static final String childLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.CHILD_TABLE_LINK];
+
+protected static String SCHEMA1 = "SCHEMA1";
+protected static String SCHEMA2 = "SCHEMA2";
+protected static String SCHEMA3 = "SCHEMA3";
+protected static String SCHEMA4 = "SCHEMA4";
+
+private final 

phoenix git commit: PHOENIX-5025 Tool to clean up orphan views

2018-12-10 Thread chinmayskulkarni
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.3 146c97079 -> 411e44849


PHOENIX-5025 Tool to clean up orphan views


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

Branch: refs/heads/4.x-HBase-1.3
Commit: 411e448494062133068c82532ef11ee905672c4e
Parents: 146c970
Author: Kadir 
Authored: Mon Nov 12 22:24:10 2018 -0800
Committer: Chinmay Kulkarni 
Committed: Mon Dec 10 16:38:56 2018 -0800

--
 .../phoenix/end2end/OrphanViewToolIT.java   | 472 ++
 .../phoenix/mapreduce/OrphanViewTool.java   | 879 +++
 2 files changed, 1351 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/411e4484/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
new file mode 100644
index 000..f9a1785
--- /dev/null
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
@@ -0,0 +1,472 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.phoenix.end2end;
+
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LINK_TYPE;
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME;
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SYSTEM_CHILD_LINK_NAME;
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_SCHEM;
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_TYPE;
+import static org.apache.phoenix.util.PhoenixRuntime.TENANT_ID_ATTRIB;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+
+import com.google.common.collect.Lists;
+import org.apache.hadoop.conf.Configuration;
+import org.apache.phoenix.mapreduce.OrphanViewTool;
+import org.apache.phoenix.schema.PTable;
+import org.apache.phoenix.schema.PTableType;
+import org.apache.phoenix.util.SchemaUtil;
+import org.junit.AfterClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameters;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@RunWith(Parameterized.class)
+public class OrphanViewToolIT extends ParallelStatsDisabledIT {
+private static final Logger LOG = 
LoggerFactory.getLogger(OrphanViewToolIT.class);
+
+private final boolean isMultiTenant;
+private final boolean columnEncoded;
+
+private static final long fanout = 2;
+private static final long childCount = fanout;
+private static final long grandChildCount = fanout * fanout;
+private static final long grandGrandChildCount = fanout * fanout * fanout;
+
+private static final String filePath = "/tmp/";
+private static final String viewFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.VIEW];
+private static final String physicalLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.PHYSICAL_TABLE_LINK];
+private static final String parentLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.PARENT_TABLE_LINK];
+private static final String childLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.CHILD_TABLE_LINK];
+
+protected static String SCHEMA1 = "SCHEMA1";
+protected static String SCHEMA2 = "SCHEMA2";
+protected static String SCHEMA3 = "SCHEMA3";
+protected static String SCHEMA4 = "SCHEMA4";
+
+private final 

phoenix git commit: PHOENIX-5025 Tool to clean up orphan views

2018-12-10 Thread chinmayskulkarni
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 6cb7a6139 -> 40cdb7b87


PHOENIX-5025 Tool to clean up orphan views


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

Branch: refs/heads/4.x-HBase-1.2
Commit: 40cdb7b87e35ce7cce46ede994020564f397b6d9
Parents: 6cb7a61
Author: Kadir 
Authored: Mon Nov 12 22:24:10 2018 -0800
Committer: Chinmay Kulkarni 
Committed: Mon Dec 10 16:38:21 2018 -0800

--
 .../phoenix/end2end/OrphanViewToolIT.java   | 472 ++
 .../phoenix/mapreduce/OrphanViewTool.java   | 879 +++
 2 files changed, 1351 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/40cdb7b8/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
new file mode 100644
index 000..f9a1785
--- /dev/null
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
@@ -0,0 +1,472 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.phoenix.end2end;
+
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LINK_TYPE;
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME;
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SYSTEM_CHILD_LINK_NAME;
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_SCHEM;
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_TYPE;
+import static org.apache.phoenix.util.PhoenixRuntime.TENANT_ID_ATTRIB;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+
+import com.google.common.collect.Lists;
+import org.apache.hadoop.conf.Configuration;
+import org.apache.phoenix.mapreduce.OrphanViewTool;
+import org.apache.phoenix.schema.PTable;
+import org.apache.phoenix.schema.PTableType;
+import org.apache.phoenix.util.SchemaUtil;
+import org.junit.AfterClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameters;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@RunWith(Parameterized.class)
+public class OrphanViewToolIT extends ParallelStatsDisabledIT {
+private static final Logger LOG = 
LoggerFactory.getLogger(OrphanViewToolIT.class);
+
+private final boolean isMultiTenant;
+private final boolean columnEncoded;
+
+private static final long fanout = 2;
+private static final long childCount = fanout;
+private static final long grandChildCount = fanout * fanout;
+private static final long grandGrandChildCount = fanout * fanout * fanout;
+
+private static final String filePath = "/tmp/";
+private static final String viewFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.VIEW];
+private static final String physicalLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.PHYSICAL_TABLE_LINK];
+private static final String parentLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.PARENT_TABLE_LINK];
+private static final String childLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.CHILD_TABLE_LINK];
+
+protected static String SCHEMA1 = "SCHEMA1";
+protected static String SCHEMA2 = "SCHEMA2";
+protected static String SCHEMA3 = "SCHEMA3";
+protected static String SCHEMA4 = "SCHEMA4";
+
+private final 

phoenix git commit: PHOENIX-5025 Tool to clean up orphan views

2018-12-10 Thread chinmayskulkarni
Repository: phoenix
Updated Branches:
  refs/heads/master 466ea28be -> f0881a137


PHOENIX-5025 Tool to clean up orphan views


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

Branch: refs/heads/master
Commit: f0881a137c9b1a020d807f4d1651ca139ee1a7be
Parents: 466ea28
Author: Kadir 
Authored: Mon Nov 12 22:24:10 2018 -0800
Committer: Chinmay Kulkarni 
Committed: Mon Dec 10 16:36:27 2018 -0800

--
 .../phoenix/end2end/OrphanViewToolIT.java   | 472 ++
 .../phoenix/mapreduce/OrphanViewTool.java   | 879 +++
 2 files changed, 1351 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f0881a13/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
new file mode 100644
index 000..f9a1785
--- /dev/null
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/OrphanViewToolIT.java
@@ -0,0 +1,472 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.phoenix.end2end;
+
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LINK_TYPE;
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME;
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SYSTEM_CHILD_LINK_NAME;
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_SCHEM;
+import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_TYPE;
+import static org.apache.phoenix.util.PhoenixRuntime.TENANT_ID_ATTRIB;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+
+import com.google.common.collect.Lists;
+import org.apache.hadoop.conf.Configuration;
+import org.apache.phoenix.mapreduce.OrphanViewTool;
+import org.apache.phoenix.schema.PTable;
+import org.apache.phoenix.schema.PTableType;
+import org.apache.phoenix.util.SchemaUtil;
+import org.junit.AfterClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameters;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@RunWith(Parameterized.class)
+public class OrphanViewToolIT extends ParallelStatsDisabledIT {
+private static final Logger LOG = 
LoggerFactory.getLogger(OrphanViewToolIT.class);
+
+private final boolean isMultiTenant;
+private final boolean columnEncoded;
+
+private static final long fanout = 2;
+private static final long childCount = fanout;
+private static final long grandChildCount = fanout * fanout;
+private static final long grandGrandChildCount = fanout * fanout * fanout;
+
+private static final String filePath = "/tmp/";
+private static final String viewFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.VIEW];
+private static final String physicalLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.PHYSICAL_TABLE_LINK];
+private static final String parentLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.PARENT_TABLE_LINK];
+private static final String childLinkFileName = "/tmp/" + 
OrphanViewTool.fileName[OrphanViewTool.CHILD_TABLE_LINK];
+
+protected static String SCHEMA1 = "SCHEMA1";
+protected static String SCHEMA2 = "SCHEMA2";
+protected static String SCHEMA3 = "SCHEMA3";
+protected static String SCHEMA4 = "SCHEMA4";
+
+private final String 

Build failed in Jenkins: Phoenix | Master #2261

2018-12-10 Thread Apache Jenkins Server
See 


Changes:

[chinmayskulkarni] PHOENIX-4763: Changing a base table property value should be 
reflected

--
[...truncated 115.31 KB...]
[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 
s - in org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.323 s 
- in org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Running org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 49.83 s 
- in org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Running org.apache.phoenix.tx.TransactionIT
[INFO] Running org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.102 s 
- in org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Running org.apache.phoenix.tx.TxCheckpointIT
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 69.097 s 
- in org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Running org.apache.phoenix.util.IndexScrutinyIT
[INFO] Running org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.489 s 
- in org.apache.phoenix.util.IndexScrutinyIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.036 s 
- in org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 94.697 
s - in org.apache.phoenix.tx.TransactionIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 829.422 
s - in org.apache.phoenix.end2end.join.HashJoinLocalIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 348.796 
s - in org.apache.phoenix.tx.TxCheckpointIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 765.033 
s - in org.apache.phoenix.end2end.join.SortMergeJoinLocalIndexIT
[INFO] Tests run: 52, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 609.551 
s - in org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   ConcurrentMutationsIT.testLockUntilMVCCAdvanced:385 Expected data 
table row count to match expected:<1> but was:<0>
[ERROR]   ConcurrentMutationsIT.testRowLockDuringPreBatchMutateWhenIndexed:329 
Expected data table row count to match expected:<1> but was:<0>
[ERROR] Errors: 
[ERROR]   
MutableIndexSplitForwardScanIT.testSplitDuringIndexScan:30->MutableIndexSplitIT.testSplitDuringIndexScan:87->MutableIndexSplitIT.splitDuringScan:152
 » StaleRegionBoundaryCache
[ERROR]   
MutableIndexSplitForwardScanIT.testSplitDuringIndexScan:30->MutableIndexSplitIT.testSplitDuringIndexScan:87->MutableIndexSplitIT.splitDuringScan:152
 » StaleRegionBoundaryCache
[ERROR]   
MutableIndexSplitReverseScanIT.testSplitDuringIndexScan:30->MutableIndexSplitIT.testSplitDuringIndexScan:87->MutableIndexSplitIT.splitDuringScan:152
 » StaleRegionBoundaryCache
[ERROR]   
MutableIndexSplitReverseScanIT.testSplitDuringIndexScan:30->MutableIndexSplitIT.testSplitDuringIndexScan:87->MutableIndexSplitIT.splitDuringScan:152
 » StaleRegionBoundaryCache
[ERROR]   HashJoinMoreIT.testBug2961:868 » IllegalArgument 6 > 5
[INFO] 
[ERROR] Tests run: 3466, Failures: 2, Errors: 5, Skipped: 10
[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
[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.002 
s - in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running org.apache.phoenix.end2end.ChangePermissionsIT
[INFO] Running org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.6 s - 
in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running 

svn commit: r1848641 - in /phoenix/site: publish/team.html source/src/site/markdown/team.md

2018-12-10 Thread chinmayskulkarni
Author: chinmayskulkarni
Date: Mon Dec 10 22:49:44 2018
New Revision: 1848641

URL: http://svn.apache.org/viewvc?rev=1848641=rev
Log:
Corrected Company affiliation of some committers on Team web-page

Modified:
phoenix/site/publish/team.html
phoenix/site/source/src/site/markdown/team.md

Modified: phoenix/site/publish/team.html
URL: 
http://svn.apache.org/viewvc/phoenix/site/publish/team.html?rev=1848641=1848640=1848641=diff
==
--- phoenix/site/publish/team.html (original)
+++ phoenix/site/publish/team.html Mon Dec 10 22:49:44 2018
@@ -221,7 +221,7 @@


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

@@ -359,7 +359,7 @@


Ethan Wang  
-   Salesforce  
+   Facebook  
mailto:ew...@apache.org;>ew...@apache.org  
Committer 


Modified: phoenix/site/source/src/site/markdown/team.md
URL: 
http://svn.apache.org/viewvc/phoenix/site/source/src/site/markdown/team.md?rev=1848641=1848640=1848641=diff
==
--- phoenix/site/source/src/site/markdown/team.md (original)
+++ phoenix/site/source/src/site/markdown/team.md Mon Dec 10 22:49:44 2018
@@ -14,7 +14,7 @@ Devaraj Das | Hortonworks | ddas@apache.
 Eli Levine | Salesforce | elilev...@apache.org | PMC
 Enis Soztutar | Hortonworks | e...@apache.org | PMC
 Gabriel Reid | NGDATA | gr...@apache.org | PMC
-James Taylor | Salesforce | jamestay...@apache.org | PMC
+James Taylor | Lyft | jamestay...@apache.org | PMC
 Jeffrey Zhong | Elementum | jeffr...@apache.org | PMC
 Jesse Yates | Tesla | jya...@apache.org | PMC
 Josh Elser | Hortonworks | els...@apache.org | PMC
@@ -37,7 +37,7 @@ Vincent Poon | Salesforce | vincentpoon@
 Cheng Lei | Sogou | cheng...@apache.org | Committer
 Cody Marcel | Salesforce | codymar...@apache.org | Committer
 Dumindu Buddhika | University of Moratuwa | dumin...@apache.org | Committer
-Ethan Wang | Salesforce | ew...@apache.org | Committer
+Ethan Wang | Facebook | ew...@apache.org | Committer
 Geoffrey Jacoby | Salesforce | gjac...@apache.org | Committer
 Jan Fernando | Salesforce | jferna...@apache.org | Committer
 Karan Mehta | Salesforce | karanmeht...@apache.org | Committer




[2/2] phoenix git commit: PHOENIX-4763: Changing a base table property value should be reflected in child views (if the property wasn't changed)

2018-12-10 Thread chinmayskulkarni
PHOENIX-4763: Changing a base table property value should be reflected in child 
views (if the property wasn't changed)


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

Branch: refs/heads/4.x-HBase-1.4
Commit: 937babf108afea608a7e15cb9c470573b5f50887
Parents: 4474429
Author: Chinmay Kulkarni 
Authored: Sun Dec 9 21:07:41 2018 -0800
Committer: Chinmay Kulkarni 
Committed: Mon Dec 10 14:10:12 2018 -0800

--
 .../phoenix/end2end/AlterTableWithViewsIT.java  | 117 --
 .../end2end/ExplainPlanWithStatsEnabledIT.java  |   8 +-
 .../phoenix/end2end/PropertiesInSyncIT.java |   6 +-
 .../IndexHalfStoreFileReaderGenerator.java  |   3 +-
 .../apache/phoenix/compile/DeleteCompiler.java  |   2 +-
 .../apache/phoenix/compile/JoinCompiler.java|   2 +-
 .../compile/TupleProjectionCompiler.java|   3 +-
 .../apache/phoenix/compile/UpsertCompiler.java  |   2 +-
 .../apache/phoenix/compile/WhereOptimizer.java  |   3 +-
 .../coprocessor/MetaDataEndpointImpl.java   | 134 +--
 .../phoenix/coprocessor/MetaDataProtocol.java   |  32 +-
 .../coprocessor/generated/MetaDataProtos.java   | 356 +--
 .../coprocessor/generated/PTableProtos.java |  99 +++---
 .../generated/ServerCachingProtos.java  | 122 +++
 .../apache/phoenix/index/IndexMaintainer.java   |  16 +-
 .../index/PhoenixIndexFailurePolicy.java|   2 +-
 .../apache/phoenix/schema/DelegateTable.java|  12 +-
 .../apache/phoenix/schema/MetaDataClient.java   |  25 +-
 .../java/org/apache/phoenix/schema/PTable.java  |   6 +-
 .../org/apache/phoenix/schema/PTableImpl.java   |  56 ++-
 .../org/apache/phoenix/util/MetaDataUtil.java   |  46 ++-
 .../apache/phoenix/util/MetaDataUtilTest.java   | 115 --
 phoenix-protocol/src/main/MetaDataService.proto |   4 +-
 phoenix-protocol/src/main/PTable.proto  |   2 +-
 .../src/main/ServerCachingService.proto |   2 +-
 25 files changed, 739 insertions(+), 436 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/937babf1/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
index 9e7aaa2..82a119f 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
@@ -73,6 +73,8 @@ import org.junit.runners.Parameterized.Parameters;
 import com.google.common.base.Function;
 import com.google.common.collect.Lists;
 
+import static 
org.apache.phoenix.query.QueryServicesOptions.DEFAULT_USE_STATS_FOR_PARALLELIZATION;
+
 @RunWith(Parameterized.class)
 public class AlterTableWithViewsIT extends SplitSystemCatalogIT {
 
@@ -174,41 +176,53 @@ public class AlterTableWithViewsIT extends 
SplitSystemCatalogIT {
 
conn.createStatement().execute(generateDDL("UPDATE_CACHE_FREQUENCY=2", 
ddlFormat));
 viewConn.createStatement().execute("CREATE VIEW " + viewOfTable1 + 
" ( VIEW_COL1 DECIMAL(10,2), VIEW_COL2 VARCHAR ) AS SELECT * FROM " + 
tableName);
 viewConn.createStatement().execute("CREATE VIEW " + viewOfTable2 + 
" ( VIEW_COL1 DECIMAL(10,2), VIEW_COL2 VARCHAR ) AS SELECT * FROM " + 
tableName);
-
-viewConn.createStatement().execute("ALTER VIEW " + viewOfTable2 + 
" SET UPDATE_CACHE_FREQUENCY = 1");
-
-PhoenixConnection phoenixConn = 
conn.unwrap(PhoenixConnection.class);
-PTable table = phoenixConn.getTable(new PTableKey(null, 
tableName));
 PName tenantId = isMultiTenant ? PNameFactory.newName(TENANT1) : 
null;
-assertFalse(table.isImmutableRows());
-assertEquals(2, table.getUpdateCacheFrequency());
+
+// Initially all property values should be the same for the base 
table and its views
+PTable table = conn.unwrap(PhoenixConnection.class).getTable(new 
PTableKey(null, tableName));
 PTable viewTable1 = 
viewConn.unwrap(PhoenixConnection.class).getTable(new PTableKey(tenantId, 
viewOfTable1));
+PTable viewTable2 = 
viewConn.unwrap(PhoenixConnection.class).getTable(new PTableKey(tenantId, 
viewOfTable2));
+assertFalse(table.isImmutableRows());
 assertFalse(viewTable1.isImmutableRows());
+assertFalse(viewTable2.isImmutableRows());
+assertEquals(2, table.getUpdateCacheFrequency());
 

[1/2] phoenix git commit: PHOENIX-4763: Changing a base table property value should be reflected in child views (if the property wasn't changed)

2018-12-10 Thread chinmayskulkarni
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.4 447442908 -> 937babf10


http://git-wip-us.apache.org/repos/asf/phoenix/blob/937babf1/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
index 938ae1f..4a3b43f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
@@ -3695,15 +3695,15 @@ public final class PTableProtos {
  */
 int getTransactionProvider();
 
-// optional int32 viewIndexType = 39 [default = 5];
+// optional int32 viewIndexIdType = 39 [default = 5];
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-boolean hasViewIndexType();
+boolean hasViewIndexIdType();
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-int getViewIndexType();
+int getViewIndexIdType();
   }
   /**
* Protobuf type {@code PTable}
@@ -3962,7 +3962,7 @@ public final class PTableProtos {
 }
 case 312: {
   bitField1_ |= 0x0002;
-  viewIndexType_ = input.readInt32();
+  viewIndexIdType_ = input.readInt32();
   break;
 }
   }
@@ -4745,20 +4745,20 @@ public final class PTableProtos {
   return transactionProvider_;
 }
 
-// optional int32 viewIndexType = 39 [default = 5];
-public static final int VIEWINDEXTYPE_FIELD_NUMBER = 39;
-private int viewIndexType_;
+// optional int32 viewIndexIdType = 39 [default = 5];
+public static final int VIEWINDEXIDTYPE_FIELD_NUMBER = 39;
+private int viewIndexIdType_;
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-public boolean hasViewIndexType() {
+public boolean hasViewIndexIdType() {
   return ((bitField1_ & 0x0002) == 0x0002);
 }
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-public int getViewIndexType() {
-  return viewIndexType_;
+public int getViewIndexIdType() {
+  return viewIndexIdType_;
 }
 
 private void initFields() {
@@ -4799,7 +4799,7 @@ public final class PTableProtos {
   encodedCQCounters_ = java.util.Collections.emptyList();
   useStatsForParallelization_ = false;
   transactionProvider_ = 0;
-  viewIndexType_ = 5;
+  viewIndexIdType_ = 5;
 }
 private byte memoizedIsInitialized = -1;
 public final boolean isInitialized() {
@@ -4979,7 +4979,7 @@ public final class PTableProtos {
 output.writeInt32(38, transactionProvider_);
   }
   if (((bitField1_ & 0x0002) == 0x0002)) {
-output.writeInt32(39, viewIndexType_);
+output.writeInt32(39, viewIndexIdType_);
   }
   getUnknownFields().writeTo(output);
 }
@@ -5145,7 +5145,7 @@ public final class PTableProtos {
   }
   if (((bitField1_ & 0x0002) == 0x0002)) {
 size += com.google.protobuf.CodedOutputStream
-  .computeInt32Size(39, viewIndexType_);
+  .computeInt32Size(39, viewIndexIdType_);
   }
   size += getUnknownFields().getSerializedSize();
   memoizedSerializedSize = size;
@@ -5343,10 +5343,10 @@ public final class PTableProtos {
 result = result && (getTransactionProvider()
 == other.getTransactionProvider());
   }
-  result = result && (hasViewIndexType() == other.hasViewIndexType());
-  if (hasViewIndexType()) {
-result = result && (getViewIndexType()
-== other.getViewIndexType());
+  result = result && (hasViewIndexIdType() == other.hasViewIndexIdType());
+  if (hasViewIndexIdType()) {
+result = result && (getViewIndexIdType()
+== other.getViewIndexIdType());
   }
   result = result &&
   getUnknownFields().equals(other.getUnknownFields());
@@ -5509,9 +5509,9 @@ public final class PTableProtos {
 hash = (37 * hash) + TRANSACTIONPROVIDER_FIELD_NUMBER;
 hash = (53 * hash) + getTransactionProvider();
   }
-  if (hasViewIndexType()) {
-hash = (37 * hash) + VIEWINDEXTYPE_FIELD_NUMBER;
-hash = (53 * hash) + getViewIndexType();
+  if (hasViewIndexIdType()) {
+hash = (37 * hash) + VIEWINDEXIDTYPE_FIELD_NUMBER;
+hash = (53 * hash) + getViewIndexIdType();
   }
   hash = (29 * hash) + getUnknownFields().hashCode();
   memoizedHashCode = hash;
@@ 

[2/2] phoenix git commit: PHOENIX-4763: Changing a base table property value should be reflected in child views (if the property wasn't changed)

2018-12-10 Thread chinmayskulkarni
PHOENIX-4763: Changing a base table property value should be reflected in child 
views (if the property wasn't changed)


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

Branch: refs/heads/4.x-HBase-1.2
Commit: 6cb7a6139f50013650d6b18dc28922b78055a5f0
Parents: b530877
Author: Chinmay Kulkarni 
Authored: Sun Dec 9 21:07:41 2018 -0800
Committer: Chinmay Kulkarni 
Committed: Mon Dec 10 14:08:34 2018 -0800

--
 .../phoenix/end2end/AlterTableWithViewsIT.java  | 117 --
 .../end2end/ExplainPlanWithStatsEnabledIT.java  |   8 +-
 .../phoenix/end2end/PropertiesInSyncIT.java |   6 +-
 .../IndexHalfStoreFileReaderGenerator.java  |   3 +-
 .../apache/phoenix/compile/DeleteCompiler.java  |   2 +-
 .../apache/phoenix/compile/JoinCompiler.java|   2 +-
 .../compile/TupleProjectionCompiler.java|   3 +-
 .../apache/phoenix/compile/UpsertCompiler.java  |   2 +-
 .../apache/phoenix/compile/WhereOptimizer.java  |   3 +-
 .../coprocessor/MetaDataEndpointImpl.java   | 134 +--
 .../phoenix/coprocessor/MetaDataProtocol.java   |  32 +-
 .../coprocessor/generated/MetaDataProtos.java   | 356 +--
 .../coprocessor/generated/PTableProtos.java |  99 +++---
 .../generated/ServerCachingProtos.java  | 122 +++
 .../apache/phoenix/index/IndexMaintainer.java   |  16 +-
 .../index/PhoenixIndexFailurePolicy.java|   2 +-
 .../apache/phoenix/schema/DelegateTable.java|  12 +-
 .../apache/phoenix/schema/MetaDataClient.java   |  25 +-
 .../java/org/apache/phoenix/schema/PTable.java  |   6 +-
 .../org/apache/phoenix/schema/PTableImpl.java   |  56 ++-
 .../org/apache/phoenix/util/MetaDataUtil.java   |  46 ++-
 .../apache/phoenix/util/MetaDataUtilTest.java   | 115 --
 phoenix-protocol/src/main/MetaDataService.proto |   4 +-
 phoenix-protocol/src/main/PTable.proto  |   2 +-
 .../src/main/ServerCachingService.proto |   2 +-
 25 files changed, 739 insertions(+), 436 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/6cb7a613/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
index 9e7aaa2..82a119f 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
@@ -73,6 +73,8 @@ import org.junit.runners.Parameterized.Parameters;
 import com.google.common.base.Function;
 import com.google.common.collect.Lists;
 
+import static 
org.apache.phoenix.query.QueryServicesOptions.DEFAULT_USE_STATS_FOR_PARALLELIZATION;
+
 @RunWith(Parameterized.class)
 public class AlterTableWithViewsIT extends SplitSystemCatalogIT {
 
@@ -174,41 +176,53 @@ public class AlterTableWithViewsIT extends 
SplitSystemCatalogIT {
 
conn.createStatement().execute(generateDDL("UPDATE_CACHE_FREQUENCY=2", 
ddlFormat));
 viewConn.createStatement().execute("CREATE VIEW " + viewOfTable1 + 
" ( VIEW_COL1 DECIMAL(10,2), VIEW_COL2 VARCHAR ) AS SELECT * FROM " + 
tableName);
 viewConn.createStatement().execute("CREATE VIEW " + viewOfTable2 + 
" ( VIEW_COL1 DECIMAL(10,2), VIEW_COL2 VARCHAR ) AS SELECT * FROM " + 
tableName);
-
-viewConn.createStatement().execute("ALTER VIEW " + viewOfTable2 + 
" SET UPDATE_CACHE_FREQUENCY = 1");
-
-PhoenixConnection phoenixConn = 
conn.unwrap(PhoenixConnection.class);
-PTable table = phoenixConn.getTable(new PTableKey(null, 
tableName));
 PName tenantId = isMultiTenant ? PNameFactory.newName(TENANT1) : 
null;
-assertFalse(table.isImmutableRows());
-assertEquals(2, table.getUpdateCacheFrequency());
+
+// Initially all property values should be the same for the base 
table and its views
+PTable table = conn.unwrap(PhoenixConnection.class).getTable(new 
PTableKey(null, tableName));
 PTable viewTable1 = 
viewConn.unwrap(PhoenixConnection.class).getTable(new PTableKey(tenantId, 
viewOfTable1));
+PTable viewTable2 = 
viewConn.unwrap(PhoenixConnection.class).getTable(new PTableKey(tenantId, 
viewOfTable2));
+assertFalse(table.isImmutableRows());
 assertFalse(viewTable1.isImmutableRows());
+assertFalse(viewTable2.isImmutableRows());
+assertEquals(2, table.getUpdateCacheFrequency());
 

[1/2] phoenix git commit: PHOENIX-4763: Changing a base table property value should be reflected in child views (if the property wasn't changed)

2018-12-10 Thread chinmayskulkarni
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 b53087734 -> 6cb7a6139


http://git-wip-us.apache.org/repos/asf/phoenix/blob/6cb7a613/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
index 938ae1f..4a3b43f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
@@ -3695,15 +3695,15 @@ public final class PTableProtos {
  */
 int getTransactionProvider();
 
-// optional int32 viewIndexType = 39 [default = 5];
+// optional int32 viewIndexIdType = 39 [default = 5];
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-boolean hasViewIndexType();
+boolean hasViewIndexIdType();
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-int getViewIndexType();
+int getViewIndexIdType();
   }
   /**
* Protobuf type {@code PTable}
@@ -3962,7 +3962,7 @@ public final class PTableProtos {
 }
 case 312: {
   bitField1_ |= 0x0002;
-  viewIndexType_ = input.readInt32();
+  viewIndexIdType_ = input.readInt32();
   break;
 }
   }
@@ -4745,20 +4745,20 @@ public final class PTableProtos {
   return transactionProvider_;
 }
 
-// optional int32 viewIndexType = 39 [default = 5];
-public static final int VIEWINDEXTYPE_FIELD_NUMBER = 39;
-private int viewIndexType_;
+// optional int32 viewIndexIdType = 39 [default = 5];
+public static final int VIEWINDEXIDTYPE_FIELD_NUMBER = 39;
+private int viewIndexIdType_;
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-public boolean hasViewIndexType() {
+public boolean hasViewIndexIdType() {
   return ((bitField1_ & 0x0002) == 0x0002);
 }
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-public int getViewIndexType() {
-  return viewIndexType_;
+public int getViewIndexIdType() {
+  return viewIndexIdType_;
 }
 
 private void initFields() {
@@ -4799,7 +4799,7 @@ public final class PTableProtos {
   encodedCQCounters_ = java.util.Collections.emptyList();
   useStatsForParallelization_ = false;
   transactionProvider_ = 0;
-  viewIndexType_ = 5;
+  viewIndexIdType_ = 5;
 }
 private byte memoizedIsInitialized = -1;
 public final boolean isInitialized() {
@@ -4979,7 +4979,7 @@ public final class PTableProtos {
 output.writeInt32(38, transactionProvider_);
   }
   if (((bitField1_ & 0x0002) == 0x0002)) {
-output.writeInt32(39, viewIndexType_);
+output.writeInt32(39, viewIndexIdType_);
   }
   getUnknownFields().writeTo(output);
 }
@@ -5145,7 +5145,7 @@ public final class PTableProtos {
   }
   if (((bitField1_ & 0x0002) == 0x0002)) {
 size += com.google.protobuf.CodedOutputStream
-  .computeInt32Size(39, viewIndexType_);
+  .computeInt32Size(39, viewIndexIdType_);
   }
   size += getUnknownFields().getSerializedSize();
   memoizedSerializedSize = size;
@@ -5343,10 +5343,10 @@ public final class PTableProtos {
 result = result && (getTransactionProvider()
 == other.getTransactionProvider());
   }
-  result = result && (hasViewIndexType() == other.hasViewIndexType());
-  if (hasViewIndexType()) {
-result = result && (getViewIndexType()
-== other.getViewIndexType());
+  result = result && (hasViewIndexIdType() == other.hasViewIndexIdType());
+  if (hasViewIndexIdType()) {
+result = result && (getViewIndexIdType()
+== other.getViewIndexIdType());
   }
   result = result &&
   getUnknownFields().equals(other.getUnknownFields());
@@ -5509,9 +5509,9 @@ public final class PTableProtos {
 hash = (37 * hash) + TRANSACTIONPROVIDER_FIELD_NUMBER;
 hash = (53 * hash) + getTransactionProvider();
   }
-  if (hasViewIndexType()) {
-hash = (37 * hash) + VIEWINDEXTYPE_FIELD_NUMBER;
-hash = (53 * hash) + getViewIndexType();
+  if (hasViewIndexIdType()) {
+hash = (37 * hash) + VIEWINDEXIDTYPE_FIELD_NUMBER;
+hash = (53 * hash) + getViewIndexIdType();
   }
   hash = (29 * hash) + getUnknownFields().hashCode();
   memoizedHashCode = hash;
@@ 

[2/2] phoenix git commit: PHOENIX-4763: Changing a base table property value should be reflected in child views (if the property wasn't changed)

2018-12-10 Thread chinmayskulkarni
PHOENIX-4763: Changing a base table property value should be reflected in child 
views (if the property wasn't changed)


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

Branch: refs/heads/4.x-HBase-1.3
Commit: 146c97079739e2e99652cd97e3057e0a460d6e48
Parents: 7328820
Author: Chinmay Kulkarni 
Authored: Sun Dec 9 21:07:41 2018 -0800
Committer: Chinmay Kulkarni 
Committed: Mon Dec 10 13:40:09 2018 -0800

--
 .../phoenix/end2end/AlterTableWithViewsIT.java  | 117 --
 .../end2end/ExplainPlanWithStatsEnabledIT.java  |   8 +-
 .../phoenix/end2end/PropertiesInSyncIT.java |   6 +-
 .../IndexHalfStoreFileReaderGenerator.java  |   3 +-
 .../apache/phoenix/compile/DeleteCompiler.java  |   2 +-
 .../apache/phoenix/compile/JoinCompiler.java|   2 +-
 .../compile/TupleProjectionCompiler.java|   3 +-
 .../apache/phoenix/compile/UpsertCompiler.java  |   2 +-
 .../apache/phoenix/compile/WhereOptimizer.java  |   3 +-
 .../coprocessor/MetaDataEndpointImpl.java   | 134 +--
 .../phoenix/coprocessor/MetaDataProtocol.java   |  32 +-
 .../coprocessor/generated/MetaDataProtos.java   | 356 +--
 .../coprocessor/generated/PTableProtos.java |  99 +++---
 .../generated/ServerCachingProtos.java  | 122 +++
 .../apache/phoenix/index/IndexMaintainer.java   |  16 +-
 .../index/PhoenixIndexFailurePolicy.java|   2 +-
 .../apache/phoenix/schema/DelegateTable.java|  12 +-
 .../apache/phoenix/schema/MetaDataClient.java   |  25 +-
 .../java/org/apache/phoenix/schema/PTable.java  |   6 +-
 .../org/apache/phoenix/schema/PTableImpl.java   |  56 ++-
 .../org/apache/phoenix/util/MetaDataUtil.java   |  46 ++-
 .../apache/phoenix/util/MetaDataUtilTest.java   | 115 --
 phoenix-protocol/src/main/MetaDataService.proto |   4 +-
 phoenix-protocol/src/main/PTable.proto  |   2 +-
 .../src/main/ServerCachingService.proto |   2 +-
 25 files changed, 739 insertions(+), 436 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/146c9707/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
index 9e7aaa2..82a119f 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterTableWithViewsIT.java
@@ -73,6 +73,8 @@ import org.junit.runners.Parameterized.Parameters;
 import com.google.common.base.Function;
 import com.google.common.collect.Lists;
 
+import static 
org.apache.phoenix.query.QueryServicesOptions.DEFAULT_USE_STATS_FOR_PARALLELIZATION;
+
 @RunWith(Parameterized.class)
 public class AlterTableWithViewsIT extends SplitSystemCatalogIT {
 
@@ -174,41 +176,53 @@ public class AlterTableWithViewsIT extends 
SplitSystemCatalogIT {
 
conn.createStatement().execute(generateDDL("UPDATE_CACHE_FREQUENCY=2", 
ddlFormat));
 viewConn.createStatement().execute("CREATE VIEW " + viewOfTable1 + 
" ( VIEW_COL1 DECIMAL(10,2), VIEW_COL2 VARCHAR ) AS SELECT * FROM " + 
tableName);
 viewConn.createStatement().execute("CREATE VIEW " + viewOfTable2 + 
" ( VIEW_COL1 DECIMAL(10,2), VIEW_COL2 VARCHAR ) AS SELECT * FROM " + 
tableName);
-
-viewConn.createStatement().execute("ALTER VIEW " + viewOfTable2 + 
" SET UPDATE_CACHE_FREQUENCY = 1");
-
-PhoenixConnection phoenixConn = 
conn.unwrap(PhoenixConnection.class);
-PTable table = phoenixConn.getTable(new PTableKey(null, 
tableName));
 PName tenantId = isMultiTenant ? PNameFactory.newName(TENANT1) : 
null;
-assertFalse(table.isImmutableRows());
-assertEquals(2, table.getUpdateCacheFrequency());
+
+// Initially all property values should be the same for the base 
table and its views
+PTable table = conn.unwrap(PhoenixConnection.class).getTable(new 
PTableKey(null, tableName));
 PTable viewTable1 = 
viewConn.unwrap(PhoenixConnection.class).getTable(new PTableKey(tenantId, 
viewOfTable1));
+PTable viewTable2 = 
viewConn.unwrap(PhoenixConnection.class).getTable(new PTableKey(tenantId, 
viewOfTable2));
+assertFalse(table.isImmutableRows());
 assertFalse(viewTable1.isImmutableRows());
+assertFalse(viewTable2.isImmutableRows());
+assertEquals(2, table.getUpdateCacheFrequency());
 

[1/2] phoenix git commit: PHOENIX-4763: Changing a base table property value should be reflected in child views (if the property wasn't changed)

2018-12-10 Thread chinmayskulkarni
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.3 73288209b -> 146c97079


http://git-wip-us.apache.org/repos/asf/phoenix/blob/146c9707/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
index 938ae1f..4a3b43f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
@@ -3695,15 +3695,15 @@ public final class PTableProtos {
  */
 int getTransactionProvider();
 
-// optional int32 viewIndexType = 39 [default = 5];
+// optional int32 viewIndexIdType = 39 [default = 5];
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-boolean hasViewIndexType();
+boolean hasViewIndexIdType();
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-int getViewIndexType();
+int getViewIndexIdType();
   }
   /**
* Protobuf type {@code PTable}
@@ -3962,7 +3962,7 @@ public final class PTableProtos {
 }
 case 312: {
   bitField1_ |= 0x0002;
-  viewIndexType_ = input.readInt32();
+  viewIndexIdType_ = input.readInt32();
   break;
 }
   }
@@ -4745,20 +4745,20 @@ public final class PTableProtos {
   return transactionProvider_;
 }
 
-// optional int32 viewIndexType = 39 [default = 5];
-public static final int VIEWINDEXTYPE_FIELD_NUMBER = 39;
-private int viewIndexType_;
+// optional int32 viewIndexIdType = 39 [default = 5];
+public static final int VIEWINDEXIDTYPE_FIELD_NUMBER = 39;
+private int viewIndexIdType_;
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-public boolean hasViewIndexType() {
+public boolean hasViewIndexIdType() {
   return ((bitField1_ & 0x0002) == 0x0002);
 }
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-public int getViewIndexType() {
-  return viewIndexType_;
+public int getViewIndexIdType() {
+  return viewIndexIdType_;
 }
 
 private void initFields() {
@@ -4799,7 +4799,7 @@ public final class PTableProtos {
   encodedCQCounters_ = java.util.Collections.emptyList();
   useStatsForParallelization_ = false;
   transactionProvider_ = 0;
-  viewIndexType_ = 5;
+  viewIndexIdType_ = 5;
 }
 private byte memoizedIsInitialized = -1;
 public final boolean isInitialized() {
@@ -4979,7 +4979,7 @@ public final class PTableProtos {
 output.writeInt32(38, transactionProvider_);
   }
   if (((bitField1_ & 0x0002) == 0x0002)) {
-output.writeInt32(39, viewIndexType_);
+output.writeInt32(39, viewIndexIdType_);
   }
   getUnknownFields().writeTo(output);
 }
@@ -5145,7 +5145,7 @@ public final class PTableProtos {
   }
   if (((bitField1_ & 0x0002) == 0x0002)) {
 size += com.google.protobuf.CodedOutputStream
-  .computeInt32Size(39, viewIndexType_);
+  .computeInt32Size(39, viewIndexIdType_);
   }
   size += getUnknownFields().getSerializedSize();
   memoizedSerializedSize = size;
@@ -5343,10 +5343,10 @@ public final class PTableProtos {
 result = result && (getTransactionProvider()
 == other.getTransactionProvider());
   }
-  result = result && (hasViewIndexType() == other.hasViewIndexType());
-  if (hasViewIndexType()) {
-result = result && (getViewIndexType()
-== other.getViewIndexType());
+  result = result && (hasViewIndexIdType() == other.hasViewIndexIdType());
+  if (hasViewIndexIdType()) {
+result = result && (getViewIndexIdType()
+== other.getViewIndexIdType());
   }
   result = result &&
   getUnknownFields().equals(other.getUnknownFields());
@@ -5509,9 +5509,9 @@ public final class PTableProtos {
 hash = (37 * hash) + TRANSACTIONPROVIDER_FIELD_NUMBER;
 hash = (53 * hash) + getTransactionProvider();
   }
-  if (hasViewIndexType()) {
-hash = (37 * hash) + VIEWINDEXTYPE_FIELD_NUMBER;
-hash = (53 * hash) + getViewIndexType();
+  if (hasViewIndexIdType()) {
+hash = (37 * hash) + VIEWINDEXIDTYPE_FIELD_NUMBER;
+hash = (53 * hash) + getViewIndexIdType();
   }
   hash = (29 * hash) + getUnknownFields().hashCode();
   memoizedHashCode = hash;
@@ 

[1/2] phoenix git commit: PHOENIX-4763: Changing a base table property value should be reflected in child views (if the property wasn't changed)

2018-12-10 Thread chinmayskulkarni
Repository: phoenix
Updated Branches:
  refs/heads/master 303fff094 -> 466ea28be


http://git-wip-us.apache.org/repos/asf/phoenix/blob/466ea28b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
index 938ae1f..4a3b43f 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/generated/PTableProtos.java
@@ -3695,15 +3695,15 @@ public final class PTableProtos {
  */
 int getTransactionProvider();
 
-// optional int32 viewIndexType = 39 [default = 5];
+// optional int32 viewIndexIdType = 39 [default = 5];
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-boolean hasViewIndexType();
+boolean hasViewIndexIdType();
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-int getViewIndexType();
+int getViewIndexIdType();
   }
   /**
* Protobuf type {@code PTable}
@@ -3962,7 +3962,7 @@ public final class PTableProtos {
 }
 case 312: {
   bitField1_ |= 0x0002;
-  viewIndexType_ = input.readInt32();
+  viewIndexIdType_ = input.readInt32();
   break;
 }
   }
@@ -4745,20 +4745,20 @@ public final class PTableProtos {
   return transactionProvider_;
 }
 
-// optional int32 viewIndexType = 39 [default = 5];
-public static final int VIEWINDEXTYPE_FIELD_NUMBER = 39;
-private int viewIndexType_;
+// optional int32 viewIndexIdType = 39 [default = 5];
+public static final int VIEWINDEXIDTYPE_FIELD_NUMBER = 39;
+private int viewIndexIdType_;
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-public boolean hasViewIndexType() {
+public boolean hasViewIndexIdType() {
   return ((bitField1_ & 0x0002) == 0x0002);
 }
 /**
- * optional int32 viewIndexType = 39 [default = 5];
+ * optional int32 viewIndexIdType = 39 [default = 5];
  */
-public int getViewIndexType() {
-  return viewIndexType_;
+public int getViewIndexIdType() {
+  return viewIndexIdType_;
 }
 
 private void initFields() {
@@ -4799,7 +4799,7 @@ public final class PTableProtos {
   encodedCQCounters_ = java.util.Collections.emptyList();
   useStatsForParallelization_ = false;
   transactionProvider_ = 0;
-  viewIndexType_ = 5;
+  viewIndexIdType_ = 5;
 }
 private byte memoizedIsInitialized = -1;
 public final boolean isInitialized() {
@@ -4979,7 +4979,7 @@ public final class PTableProtos {
 output.writeInt32(38, transactionProvider_);
   }
   if (((bitField1_ & 0x0002) == 0x0002)) {
-output.writeInt32(39, viewIndexType_);
+output.writeInt32(39, viewIndexIdType_);
   }
   getUnknownFields().writeTo(output);
 }
@@ -5145,7 +5145,7 @@ public final class PTableProtos {
   }
   if (((bitField1_ & 0x0002) == 0x0002)) {
 size += com.google.protobuf.CodedOutputStream
-  .computeInt32Size(39, viewIndexType_);
+  .computeInt32Size(39, viewIndexIdType_);
   }
   size += getUnknownFields().getSerializedSize();
   memoizedSerializedSize = size;
@@ -5343,10 +5343,10 @@ public final class PTableProtos {
 result = result && (getTransactionProvider()
 == other.getTransactionProvider());
   }
-  result = result && (hasViewIndexType() == other.hasViewIndexType());
-  if (hasViewIndexType()) {
-result = result && (getViewIndexType()
-== other.getViewIndexType());
+  result = result && (hasViewIndexIdType() == other.hasViewIndexIdType());
+  if (hasViewIndexIdType()) {
+result = result && (getViewIndexIdType()
+== other.getViewIndexIdType());
   }
   result = result &&
   getUnknownFields().equals(other.getUnknownFields());
@@ -5509,9 +5509,9 @@ public final class PTableProtos {
 hash = (37 * hash) + TRANSACTIONPROVIDER_FIELD_NUMBER;
 hash = (53 * hash) + getTransactionProvider();
   }
-  if (hasViewIndexType()) {
-hash = (37 * hash) + VIEWINDEXTYPE_FIELD_NUMBER;
-hash = (53 * hash) + getViewIndexType();
+  if (hasViewIndexIdType()) {
+hash = (37 * hash) + VIEWINDEXIDTYPE_FIELD_NUMBER;
+hash = (53 * hash) + getViewIndexIdType();
   }
   hash = (29 * hash) + getUnknownFields().hashCode();
   memoizedHashCode = hash;
@@ -5711,7 

svn commit: r1848639 - in /phoenix/site: publish/language/datatypes.html publish/language/functions.html publish/language/index.html publish/team.html source/src/site/markdown/team.md

2018-12-10 Thread chinmayskulkarni
Author: chinmayskulkarni
Date: Mon Dec 10 21:23:54 2018
New Revision: 1848639

URL: http://svn.apache.org/viewvc?rev=1848639=rev
Log:
Adding Chinmay Kulkarni to Phoenix committer's list

Modified:
phoenix/site/publish/language/datatypes.html
phoenix/site/publish/language/functions.html
phoenix/site/publish/language/index.html
phoenix/site/publish/team.html
phoenix/site/source/src/site/markdown/team.md

Modified: phoenix/site/publish/language/datatypes.html
URL: 
http://svn.apache.org/viewvc/phoenix/site/publish/language/datatypes.html?rev=1848639=1848638=1848639=diff
==
--- phoenix/site/publish/language/datatypes.html (original)
+++ phoenix/site/publish/language/datatypes.html Mon Dec 10 21:23:54 2018
@@ -1,7 +1,7 @@
 
 
 
 

Modified: phoenix/site/publish/language/functions.html
URL: 
http://svn.apache.org/viewvc/phoenix/site/publish/language/functions.html?rev=1848639=1848638=1848639=diff
==
--- phoenix/site/publish/language/functions.html (original)
+++ phoenix/site/publish/language/functions.html Mon Dec 10 21:23:54 2018
@@ -1,7 +1,7 @@
 
 
 
 

Modified: phoenix/site/publish/language/index.html
URL: 
http://svn.apache.org/viewvc/phoenix/site/publish/language/index.html?rev=1848639=1848638=1848639=diff
==
--- phoenix/site/publish/language/index.html (original)
+++ phoenix/site/publish/language/index.html Mon Dec 10 21:23:54 2018
@@ -1,7 +1,7 @@
 
 
 
 

Modified: phoenix/site/publish/team.html
URL: 
http://svn.apache.org/viewvc/phoenix/site/publish/team.html?rev=1848639=1848638=1848639=diff
==
--- phoenix/site/publish/team.html (original)
+++ phoenix/site/publish/team.html Mon Dec 10 21:23:54 2018
@@ -1,7 +1,7 @@
 
 
 
 
@@ -393,6 +393,12 @@
mailto:oh...@apache.org;>oh...@apache.org  
Committer 

+   
+   Chinmay Kulkarni  
+   Salesforce  
+   mailto:chinmayskulka...@apache.org;>chinmayskulka...@apache.org  
+   Committer 
+   
   
 


Modified: phoenix/site/source/src/site/markdown/team.md
URL: 
http://svn.apache.org/viewvc/phoenix/site/source/src/site/markdown/team.md?rev=1848639=1848638=1848639=diff
==
--- phoenix/site/source/src/site/markdown/team.md (original)
+++ phoenix/site/source/src/site/markdown/team.md Mon Dec 10 21:23:54 2018
@@ -43,3 +43,4 @@ Jan Fernando | Salesforce | jfernando@ap
 Karan Mehta | Salesforce | karanmeht...@apache.org | Committer
 Kevin Liew | Simba Technologies | kl...@apache.org | Committer
 Ohad Shacham | Yahoo Research, Oath | oh...@apache.org | Committer
+Chinmay Kulkarni | Salesforce | chinmayskulka...@apache.org | Committer




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

2018-12-10 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/jenkins8265789590824397623.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:43832904 kB
Filesystem  Size  Used Avail Use% Mounted on
udev 48G 0   48G   0% /dev
tmpfs   9.5G  434M  9.1G   5% /run
/dev/sda3   3.6T  184G  3.3T   6% /
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  146M  303M  33% /boot
/dev/loop0   88M   88M 0 100% /snap/core/5662
/dev/loop1   28M   28M 0 100% /snap/snapcraft/1871
/dev/loop3   88M   88M 0 100% /snap/core/5742
tmpfs   9.5G  4.0K  9.5G   1% /run/user/910
/dev/loop6   52M   52M 0 100% /snap/lxd/9564
/dev/loop4   52M   52M 0 100% /snap/lxd/9600
/dev/loop5   89M   89M 0 100% /snap/core/5897
/dev/loop7   52M   52M 0 100% /snap/lxd/9664
tmpfs   9.5G 0  9.5G   0% /run/user/1000
/dev/loop2   28M   28M 0 100% /snap/snapcraft/2374
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
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