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

2019-12-19 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
No changes


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 #628

2019-12-19 Thread Apache Jenkins Server
See 

Changes:


--
[...truncated 104.45 KB...]
[INFO] Running org.apache.phoenix.end2end.ConcurrentMutationsExtendedIT
[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: 52.028 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.761 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.716 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
188.449 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
187.021 s - in 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
191.397 s - in org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
189.411 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 295.848 
s - in org.apache.phoenix.end2end.ConcurrentMutationsExtendedIT
[INFO] Running org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.IndexBuildTimestampIT
[INFO] Running org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.794 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Running org.apache.phoenix.end2end.IndexRebuildTaskIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.515 s 
- in org.apache.phoenix.end2end.IndexRebuildTaskIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 160.838 
s - in org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 97.124 
s - in org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolForTenantIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Running org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Running 
org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.37 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 194.865 
s - in org.apache.phoenix.end2end.IndexBuildTimestampIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 98.995 s 
- in org.apache.phoenix.end2end.IndexScrutinyToolForTenantIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 199.01 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 42.758 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running org.apache.phoenix.end2end.IndexToolIT
[INFO] Running org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Running 
org.apache.phoenix.end2end.NonColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.NonColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 181.223 
s - in org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
199.825 s - in 
org.apache.phoenix.end2end.NonColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 699.96 
s - in org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running 
org.apache.phoenix.end2end.OrderByWithServerClientSpoolingDisabledIT
[INFO] Running org.apache.phoenix.end2end.OrderByWithServerMemoryLimitIT
[INFO] Running org.apache.phoenix.end2end.OrderByWithSpillingIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.617 s 
- in org.apache.phoenix.end2end.OrderByWith

[phoenix-queryserver] branch master updated: PHOENIX-5641 Decouple phoenix-queryserver from phoenix-core

2019-12-19 Thread stoty
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 960289a  PHOENIX-5641 Decouple phoenix-queryserver from phoenix-core
960289a is described below

commit 960289a6ec6afd263d0e2faaf9ac1c585ce4d587
Author: Istvan Toth 
AuthorDate: Thu Dec 19 08:13:54 2019 +0100

PHOENIX-5641 Decouple phoenix-queryserver from phoenix-core
---
 .../service/LoadBalanceZookeeperConfImpl.java  |  24 ++---
 pom.xml| 112 +++--
 .../phoenix/queryserver/client/ThinClientUtil.java |   2 +-
 queryserver-orchestrator/pom.xml   |   5 +-
 queryserver/pom.xml|  17 ++--
 .../HttpParamImpersonationQueryServerIT.java   |   8 +-
 .../phoenix/end2end/QueryServerBasicsIT.java   |   3 +-
 .../end2end/SecureQueryServerPhoenixDBIT.java  |   5 +-
 .../phoenix/end2end/ServerCustomizersIT.java   |   3 +-
 .../phoenix/queryserver/QueryServerOptions.java| 110 
 .../phoenix/queryserver/QueryServerProperties.java |  79 +++
 .../queryserver/server/PhoenixMetaFactoryImpl.java |  83 ---
 .../phoenix/queryserver/server/QueryServer.java|  90 -
 .../org/apache/phoenix/util/InstanceResolver.java  |  95 +
 14 files changed, 495 insertions(+), 141 deletions(-)

diff --git 
a/load-balancer/src/main/java/org/apache/phoenix/loadbalancer/service/LoadBalanceZookeeperConfImpl.java
 
b/load-balancer/src/main/java/org/apache/phoenix/loadbalancer/service/LoadBalanceZookeeperConfImpl.java
index 98e2682..807295b 100644
--- 
a/load-balancer/src/main/java/org/apache/phoenix/loadbalancer/service/LoadBalanceZookeeperConfImpl.java
+++ 
b/load-balancer/src/main/java/org/apache/phoenix/loadbalancer/service/LoadBalanceZookeeperConfImpl.java
@@ -23,8 +23,8 @@ import com.google.common.annotations.VisibleForTesting;
 import com.google.common.net.HostAndPort;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.HBaseConfiguration;
-import org.apache.phoenix.query.QueryServices;
-import org.apache.phoenix.query.QueryServicesOptions;
+import org.apache.phoenix.queryserver.QueryServerOptions;
+import org.apache.phoenix.queryserver.QueryServerProperties;
 import org.apache.zookeeper.ZooDefs;
 import org.apache.zookeeper.data.ACL;
 import org.apache.zookeeper.data.Id;
@@ -53,30 +53,30 @@ public class LoadBalanceZookeeperConfImpl implements 
LoadBalanceZookeeperConf {
 
 @Override
 public String getQueryServerBasePath(){
-return 
configuration.get(QueryServices.PHOENIX_QUERY_SERVER_CLUSTER_BASE_PATH,
-
QueryServicesOptions.DEFAULT_PHOENIX_QUERY_SERVER_CLUSTER_BASE_PATH);
+return 
configuration.get(QueryServerProperties.PHOENIX_QUERY_SERVER_CLUSTER_BASE_PATH,
+
QueryServerOptions.DEFAULT_PHOENIX_QUERY_SERVER_CLUSTER_BASE_PATH);
 }
 
 @Override
 public String getServiceName(){
-return 
configuration.get(QueryServices.PHOENIX_QUERY_SERVER_SERVICE_NAME,
-
QueryServicesOptions.DEFAULT_PHOENIX_QUERY_SERVER_SERVICE_NAME);
+return 
configuration.get(QueryServerProperties.PHOENIX_QUERY_SERVER_SERVICE_NAME,
+
QueryServerOptions.DEFAULT_PHOENIX_QUERY_SERVER_SERVICE_NAME);
 }
 
 @Override
 public String getZkConnectString(){
-return 
String.format("%s:%s",configuration.get(QueryServices.ZOOKEEPER_QUORUM_ATTRIB,
-
"localhost"),configuration.get(QueryServices.ZOOKEEPER_PORT_ATTRIB,"2181"));
+return 
String.format("%s:%s",configuration.get(QueryServerProperties.ZOOKEEPER_QUORUM_ATTRIB,
+
"localhost"),configuration.get(QueryServerProperties.ZOOKEEPER_PORT_ATTRIB,"2181"));
 }
 
 private String getZkLbUserName(){
-return 
configuration.get(QueryServices.PHOENIX_QUERY_SERVER_ZK_ACL_USERNAME,
-
QueryServicesOptions.DEFAULT_PHOENIX_QUERY_SERVER_ZK_ACL_USERNAME);
+return 
configuration.get(QueryServerProperties.PHOENIX_QUERY_SERVER_ZK_ACL_USERNAME,
+
QueryServerOptions.DEFAULT_PHOENIX_QUERY_SERVER_ZK_ACL_USERNAME);
 }
 
 private String getZkLbPassword(){
-return 
configuration.get(QueryServices.PHOENIX_QUERY_SERVER_ZK_ACL_PASSWORD,
-
QueryServicesOptions.DEFAULT_PHOENIX_QUERY_SERVER_ZK_ACL_PASSWORD);
+return 
configuration.get(QueryServerProperties.PHOENIX_QUERY_SERVER_ZK_ACL_PASSWORD,
+
QueryServerOptions.DEFAULT_PHOENIX_QUERY_SERVER_ZK_ACL_PASSWORD);
 }
 
 @Override
diff --git a/pom.xml b/pom.xml
index 21b6aec..cd3c003 100644
--- a/pom.xml
+++ 

Apache-Phoenix | Master | Build Successful

2019-12-19 Thread Apache Jenkins Server
Master branch build status Successful
Source repository https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=shortlog;h=refs/heads/master

Last Successful Compiled Artifacts https://builds.apache.org/job/Phoenix-master/lastSuccessfulBuild/artifact/

Last Complete Test Report https://builds.apache.org/job/Phoenix-master/lastCompletedBuild/testReport/

Changes
[chinmayskulkarni] PHOENIX-5614: Remove unnecessary instances of ClassNotFoundException



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


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

2019-12-19 Thread Apache Jenkins Server
[...truncated 27 lines...]
Looking at the log, list of test(s) that timed-out:

Build:
https://builds.apache.org/job/Phoenix-master/2605/


Affected test class(es):
Set(['as SYSTEM'])


Build step 'Execute shell' marked build as failure
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any

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

2019-12-19 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-5614: Remove unnecessary instances of ClassNotFoundException



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


Jenkins build is back to normal : Phoenix-4.x-HBase-1.4 #342

2019-12-19 Thread Apache Jenkins Server
See 




Build failed in Jenkins: Phoenix-4.x-HBase-1.5 #226

2019-12-19 Thread Apache Jenkins Server
See 


Changes:

[chinmayskulkarni] PHOENIX-5614: Remove unnecessary instances of 
ClassNotFoundException


--
[...truncated 107.23 KB...]
[INFO] Running org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[INFO] Running 
org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running org.apache.phoenix.end2end.IndexToolIT
[INFO] Running org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 41.956 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running 
org.apache.phoenix.end2end.OrderByWithServerClientSpoolingDisabledIT
[INFO] Running org.apache.phoenix.end2end.OrderByWithServerMemoryLimitIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 20.687 s 
- in org.apache.phoenix.end2end.OrderByWithServerMemoryLimitIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 190.506 
s - in org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Running org.apache.phoenix.end2end.ParameterizedIndexUpgradeToolIT
[INFO] Running org.apache.phoenix.end2end.OrderByWithSpillingIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 293.321 
s - in org.apache.phoenix.end2end.OrderByWithServerClientSpoolingDisabledIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 765.712 
s - in org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[INFO] Running org.apache.phoenix.end2end.PermissionNSDisabledIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 107.674 
s - in org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[INFO] Running org.apache.phoenix.end2end.PermissionNSEnabledIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 588.073 
s - in org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[WARNING] Tests run: 36, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 
688.917 s - in org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Running org.apache.phoenix.end2end.PermissionsCacheIT
[INFO] Running org.apache.phoenix.end2end.PhoenixDriverIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 407.11 
s - in org.apache.phoenix.end2end.OrderByWithSpillingIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 120.113 
s - in org.apache.phoenix.end2end.PhoenixDriverIT
[INFO] Running org.apache.phoenix.end2end.QueryLoggerIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 453.336 
s - in org.apache.phoenix.end2end.PermissionNSDisabledIT
[INFO] Running org.apache.phoenix.end2end.QueryTimeoutIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 32.67 s 
- in org.apache.phoenix.end2end.QueryTimeoutIT
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 74.174 s 
- in org.apache.phoenix.end2end.QueryLoggerIT
[INFO] Running org.apache.phoenix.end2end.QueryWithLimitIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.928 s 
- in org.apache.phoenix.end2end.QueryWithLimitIT
[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 496.51 
s - in org.apache.phoenix.end2end.PermissionNSEnabledIT
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 451.827 
s - in org.apache.phoenix.end2end.PermissionsCacheIT
[INFO] Running org.apache.phoenix.end2end.RebuildIndexConnectionPropsIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.356 s 
- in org.apache.phoenix.end2end.RebuildIndexConnectionPropsIT
[INFO] Running org.apache.phoenix.end2end.RegexBulkLoadToolIT
[INFO] Tests run: 105, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1,086.565 s - in org.apache.phoenix.end2end.IndexToolIT
[INFO] Running org.apache.phoenix.end2end.SystemCatalogCreationOnConnectionIT
[INFO] Running org.apache.phoenix.end2end.RenewLeaseIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.931 s 
- in org.apache.phoenix.end2end.RenewLeaseIT
[INFO] Running org.apache.phoenix.end2end.SequencePointInTimeIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.416 s 
- in org.apache.phoenix.end2end.SequencePointInTimeIT
[INFO] Running org.apache.phoenix.end2end.SpillableGroupByIT
[WARNING] Tests run: 10, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 
130.726 s - in org.apache.phoenix.end2end.RegexBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.StatsEnabledSplitSystemCatalogIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 23.379 s 
- in org.apache.phoenix.end2end.SpillableGroupByIT
[INFO] Running org.apache.phoenix.end2end.UpdateCacheAcrossDifferentClientsIT
[INFO] Running org.apache.phoenix.end2end.SystemCatalogIT
[INFO] Running o

[phoenix] branch master updated: PHOENIX-5614: Remove unnecessary instances of ClassNotFoundException thrown stemming from various QueryUtil APIs

2019-12-19 Thread chinmayskulkarni
This is an automated email from the ASF dual-hosted git repository.

chinmayskulkarni 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 b18afb7  PHOENIX-5614: Remove unnecessary instances of 
ClassNotFoundException thrown stemming from various QueryUtil APIs
b18afb7 is described below

commit b18afb768aaa613a648e89b0af0d6e3a79f14063
Author: Chinmay Kulkarni 
AuthorDate: Mon Dec 16 23:16:28 2019 -0800

PHOENIX-5614: Remove unnecessary instances of ClassNotFoundException thrown 
stemming from various QueryUtil APIs
---
 .../end2end/index/MutableIndexFailureIT.java   |  1 -
 .../IndexHalfStoreFileReaderGenerator.java |  4 +--
 .../phoenix/coprocessor/DropColumnMutator.java |  9 ++
 .../phoenix/coprocessor/MetaDataEndpointImpl.java  | 33 ++
 .../coprocessor/MetaDataRegionObserver.java|  2 +-
 .../phoenix/index/PhoenixIndexFailurePolicy.java   |  2 --
 .../java/org/apache/phoenix/log/LogWriter.java |  3 +-
 .../org/apache/phoenix/log/TableLogWriter.java |  2 +-
 .../mapreduce/FormatToBytesWritableMapper.java |  2 +-
 .../phoenix/mapreduce/FormatToKeyValueReducer.java |  2 +-
 .../schema/stats/DefaultStatisticsCollector.java   |  2 --
 .../java/org/apache/phoenix/util/QueryUtil.java| 19 ++---
 .../java/org/apache/phoenix/util/ViewUtil.java |  6 ++--
 13 files changed, 27 insertions(+), 60 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
index a5f72b8..476e71b 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
@@ -623,7 +623,6 @@ public class MutableIndexFailureIT extends BaseTest {
  connection.createStatement().execute(
 "DROP INDEX IF EXISTS " + "B_" + FAIL_INDEX_NAME + " 
ON "
  + fullTableName);
- } catch (ClassNotFoundException e) {
  } catch (SQLException e) {
  }
  }
diff --git 
a/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
 
b/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
index e578faa..a6d057e 100644
--- 
a/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
+++ 
b/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
@@ -175,8 +175,6 @@ public class IndexHalfStoreFileReaderGenerator implements 
RegionObserver, Region
 childRegion, regionStartKeyInHFile, splitKey,
 childRegion.getReplicaId() == 
RegionInfo.DEFAULT_REPLICA_ID,
 new AtomicInteger(0), region.getRegionInfo());
-} catch (ClassNotFoundException e) {
-throw new IOException(e);
 } catch (SQLException e) {
 throw new IOException(e);
 } finally {
@@ -286,7 +284,7 @@ public class IndexHalfStoreFileReaderGenerator implements 
RegionObserver, Region
 maintainers, 
store.getColumnFamilyDescriptor().getName(),env.getConfiguration());
 
 
-} catch (ClassNotFoundException | SQLException e) {
+} catch (SQLException e) {
 throw new IOException(e);
 
 }
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
index fc15edd..ea16a0a 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
@@ -130,13 +130,8 @@ public class DropColumnMutator implements ColumnMutator {
 if (existingViewColumn != null && view.getViewStatement() != 
null) {
 ParseNode viewWhere =
 new 
SQLParser(view.getViewStatement()).parseQuery().getWhere();
-PhoenixConnection conn=null;
-try {
-conn = QueryUtil.getConnectionOnServer(conf).unwrap(
-PhoenixConnection.class);
-} catch (ClassNotFoundException e) {
-throw new IOException(e);
-}
+PhoenixConnection conn = 
QueryUtil.getConnectionOnServer(conf).unwrap(
+PhoenixConnection.class);
 PhoenixStatement statement = new PhoenixStatement(conn);
 TableRef baseTableRef = new Tab

[phoenix] branch 4.x-HBase-1.3 updated: PHOENIX-5614: Remove unnecessary instances of ClassNotFoundException thrown stemming from various QueryUtil APIs

2019-12-19 Thread chinmayskulkarni
This is an automated email from the ASF dual-hosted git repository.

chinmayskulkarni 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 03ff867  PHOENIX-5614: Remove unnecessary instances of 
ClassNotFoundException thrown stemming from various QueryUtil APIs
03ff867 is described below

commit 03ff8678d184f3e8fa222ac3f79e389d46c2f27d
Author: Chinmay Kulkarni 
AuthorDate: Mon Dec 16 23:16:28 2019 -0800

PHOENIX-5614: Remove unnecessary instances of ClassNotFoundException thrown 
stemming from various QueryUtil APIs
---
 .../end2end/index/MutableIndexFailureIT.java   |  1 -
 .../IndexHalfStoreFileReaderGenerator.java |  4 +--
 .../phoenix/coprocessor/DropColumnMutator.java |  9 ++
 .../phoenix/coprocessor/MetaDataEndpointImpl.java  | 33 ++
 .../coprocessor/MetaDataRegionObserver.java|  2 +-
 .../phoenix/index/PhoenixIndexFailurePolicy.java   |  2 --
 .../java/org/apache/phoenix/log/LogWriter.java |  3 +-
 .../org/apache/phoenix/log/TableLogWriter.java |  2 +-
 .../mapreduce/FormatToBytesWritableMapper.java |  2 +-
 .../phoenix/mapreduce/FormatToKeyValueReducer.java |  2 +-
 .../schema/stats/DefaultStatisticsCollector.java   |  4 +--
 .../java/org/apache/phoenix/util/QueryUtil.java| 19 ++---
 .../java/org/apache/phoenix/util/ViewUtil.java |  6 ++--
 13 files changed, 29 insertions(+), 60 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
index bfa0d5d..3a8cb99 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
@@ -626,7 +626,6 @@ public class MutableIndexFailureIT extends BaseTest {
  connection.createStatement().execute(
 "DROP INDEX IF EXISTS " + "B_" + FAIL_INDEX_NAME + " 
ON "
  + fullTableName);
- } catch (ClassNotFoundException e) {
  } catch (SQLException e) {
  }
  }
diff --git 
a/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
 
b/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
index 0ba228d..3e58c39 100644
--- 
a/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
+++ 
b/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
@@ -166,8 +166,6 @@ public class IndexHalfStoreFileReaderGenerator extends 
BaseRegionObserver {
 return new IndexHalfStoreFileReader(fs, p, cacheConf, in, 
size, r,
 ctx.getEnvironment().getConfiguration(), 
indexMaintainers, viewConstants,
 childRegion, regionStartKeyInHFile, splitKey, 
region.getRegionInfo());
-} catch (ClassNotFoundException e) {
-throw new IOException(e);
 } catch (SQLException e) {
 throw new IOException(e);
 } finally {
@@ -273,7 +271,7 @@ public class IndexHalfStoreFileReaderGenerator extends 
BaseRegionObserver {
 maintainers, 
store.getFamily().getName(),env.getConfiguration());
 
 
-} catch (ClassNotFoundException | SQLException e) {
+} catch (SQLException e) {
 throw new IOException(e);
 
 }
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
index 3d94253..5ceada3 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
@@ -129,13 +129,8 @@ public class DropColumnMutator implements ColumnMutator {
 if (existingViewColumn != null && view.getViewStatement() != 
null) {
 ParseNode viewWhere =
 new 
SQLParser(view.getViewStatement()).parseQuery().getWhere();
-PhoenixConnection conn=null;
-try {
-conn = QueryUtil.getConnectionOnServer(conf).unwrap(
-PhoenixConnection.class);
-} catch (ClassNotFoundException e) {
-throw new IOException(e);
-}
+PhoenixConnection conn = 
QueryUtil.getConnectionOnServer(conf).unwrap(
+PhoenixConnection.class);
 PhoenixStatement statement = new PhoenixStatement(conn);
 Ta

[phoenix] branch 4.x-HBase-1.4 updated: PHOENIX-5614: Remove unnecessary instances of ClassNotFoundException thrown stemming from various QueryUtil APIs

2019-12-19 Thread chinmayskulkarni
This is an automated email from the ASF dual-hosted git repository.

chinmayskulkarni 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 e6ca5ed  PHOENIX-5614: Remove unnecessary instances of 
ClassNotFoundException thrown stemming from various QueryUtil APIs
e6ca5ed is described below

commit e6ca5ed4a61df3370963de9eef8d7e2bb4d6926a
Author: Chinmay Kulkarni 
AuthorDate: Mon Dec 16 23:16:28 2019 -0800

PHOENIX-5614: Remove unnecessary instances of ClassNotFoundException thrown 
stemming from various QueryUtil APIs
---
 .../end2end/index/MutableIndexFailureIT.java   |  1 -
 .../IndexHalfStoreFileReaderGenerator.java |  4 +--
 .../phoenix/coprocessor/DropColumnMutator.java |  9 ++
 .../phoenix/coprocessor/MetaDataEndpointImpl.java  | 33 ++
 .../coprocessor/MetaDataRegionObserver.java|  2 +-
 .../phoenix/index/PhoenixIndexFailurePolicy.java   |  2 --
 .../java/org/apache/phoenix/log/LogWriter.java |  3 +-
 .../org/apache/phoenix/log/TableLogWriter.java |  2 +-
 .../mapreduce/FormatToBytesWritableMapper.java |  2 +-
 .../phoenix/mapreduce/FormatToKeyValueReducer.java |  2 +-
 .../schema/stats/DefaultStatisticsCollector.java   |  2 --
 .../java/org/apache/phoenix/util/QueryUtil.java| 19 ++---
 .../java/org/apache/phoenix/util/ViewUtil.java |  6 ++--
 13 files changed, 27 insertions(+), 60 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
index bfa0d5d..3a8cb99 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
@@ -626,7 +626,6 @@ public class MutableIndexFailureIT extends BaseTest {
  connection.createStatement().execute(
 "DROP INDEX IF EXISTS " + "B_" + FAIL_INDEX_NAME + " 
ON "
  + fullTableName);
- } catch (ClassNotFoundException e) {
  } catch (SQLException e) {
  }
  }
diff --git 
a/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
 
b/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
index 786..6a44e33 100644
--- 
a/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
+++ 
b/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
@@ -166,8 +166,6 @@ public class IndexHalfStoreFileReaderGenerator extends 
BaseRegionObserver {
 return new IndexHalfStoreFileReader(fs, p, cacheConf, in, 
size, r, ctx
 .getEnvironment().getConfiguration(), 
indexMaintainers, viewConstants,
 childRegion, regionStartKeyInHFile, splitKey, 
region.getRegionInfo());
-} catch (ClassNotFoundException e) {
-throw new IOException(e);
 } catch (SQLException e) {
 throw new IOException(e);
 } finally {
@@ -276,7 +274,7 @@ public class IndexHalfStoreFileReaderGenerator extends 
BaseRegionObserver {
 maintainers, 
store.getFamily().getName(),env.getConfiguration());
 
 
-} catch (ClassNotFoundException | SQLException e) {
+} catch (SQLException e) {
 throw new IOException(e);
 
 }
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
index 3d94253..5ceada3 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
@@ -129,13 +129,8 @@ public class DropColumnMutator implements ColumnMutator {
 if (existingViewColumn != null && view.getViewStatement() != 
null) {
 ParseNode viewWhere =
 new 
SQLParser(view.getViewStatement()).parseQuery().getWhere();
-PhoenixConnection conn=null;
-try {
-conn = QueryUtil.getConnectionOnServer(conf).unwrap(
-PhoenixConnection.class);
-} catch (ClassNotFoundException e) {
-throw new IOException(e);
-}
+PhoenixConnection conn = 
QueryUtil.getConnectionOnServer(conf).unwrap(
+PhoenixConnection.class);
 PhoenixStatement statement = new PhoenixStatement(conn);
   

[phoenix] branch 4.x-HBase-1.5 updated: PHOENIX-5614: Remove unnecessary instances of ClassNotFoundException thrown stemming from various QueryUtil APIs

2019-12-19 Thread chinmayskulkarni
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/4.x-HBase-1.5 by this push:
 new a639244  PHOENIX-5614: Remove unnecessary instances of 
ClassNotFoundException thrown stemming from various QueryUtil APIs
a639244 is described below

commit a639244c2055391fea63af99f90b8fd4d02ba645
Author: Chinmay Kulkarni 
AuthorDate: Mon Dec 16 23:16:28 2019 -0800

PHOENIX-5614: Remove unnecessary instances of ClassNotFoundException thrown 
stemming from various QueryUtil APIs
---
 .../end2end/index/MutableIndexFailureIT.java   |  1 -
 .../IndexHalfStoreFileReaderGenerator.java |  4 +--
 .../phoenix/coprocessor/DropColumnMutator.java |  9 ++
 .../phoenix/coprocessor/MetaDataEndpointImpl.java  | 33 ++
 .../coprocessor/MetaDataRegionObserver.java|  2 +-
 .../phoenix/index/PhoenixIndexFailurePolicy.java   |  2 --
 .../java/org/apache/phoenix/log/LogWriter.java |  3 +-
 .../org/apache/phoenix/log/TableLogWriter.java |  2 +-
 .../mapreduce/FormatToBytesWritableMapper.java |  2 +-
 .../phoenix/mapreduce/FormatToKeyValueReducer.java |  2 +-
 .../schema/stats/DefaultStatisticsCollector.java   |  2 --
 .../java/org/apache/phoenix/util/QueryUtil.java| 19 ++---
 .../java/org/apache/phoenix/util/ViewUtil.java |  6 ++--
 13 files changed, 27 insertions(+), 60 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
index bfa0d5d..3a8cb99 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
@@ -626,7 +626,6 @@ public class MutableIndexFailureIT extends BaseTest {
  connection.createStatement().execute(
 "DROP INDEX IF EXISTS " + "B_" + FAIL_INDEX_NAME + " 
ON "
  + fullTableName);
- } catch (ClassNotFoundException e) {
  } catch (SQLException e) {
  }
  }
diff --git 
a/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
 
b/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
index 786..6a44e33 100644
--- 
a/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
+++ 
b/phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
@@ -166,8 +166,6 @@ public class IndexHalfStoreFileReaderGenerator extends 
BaseRegionObserver {
 return new IndexHalfStoreFileReader(fs, p, cacheConf, in, 
size, r, ctx
 .getEnvironment().getConfiguration(), 
indexMaintainers, viewConstants,
 childRegion, regionStartKeyInHFile, splitKey, 
region.getRegionInfo());
-} catch (ClassNotFoundException e) {
-throw new IOException(e);
 } catch (SQLException e) {
 throw new IOException(e);
 } finally {
@@ -276,7 +274,7 @@ public class IndexHalfStoreFileReaderGenerator extends 
BaseRegionObserver {
 maintainers, 
store.getFamily().getName(),env.getConfiguration());
 
 
-} catch (ClassNotFoundException | SQLException e) {
+} catch (SQLException e) {
 throw new IOException(e);
 
 }
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
index 3d94253..5ceada3 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DropColumnMutator.java
@@ -129,13 +129,8 @@ public class DropColumnMutator implements ColumnMutator {
 if (existingViewColumn != null && view.getViewStatement() != 
null) {
 ParseNode viewWhere =
 new 
SQLParser(view.getViewStatement()).parseQuery().getWhere();
-PhoenixConnection conn=null;
-try {
-conn = QueryUtil.getConnectionOnServer(conf).unwrap(
-PhoenixConnection.class);
-} catch (ClassNotFoundException e) {
-throw new IOException(e);
-}
+PhoenixConnection conn = 
QueryUtil.getConnectionOnServer(conf).unwrap(
+PhoenixConnection.class);
 PhoenixStatement statement = new PhoenixStatement(conn);
   

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

2019-12-19 Thread Apache Jenkins Server
[...truncated 27 lines...]
Looking at the log, list of test(s) that timed-out:

Build:
https://builds.apache.org/job/Phoenix-master/2604/


Affected test class(es):
Set(['as SYSTEM'])


Build step 'Execute shell' marked build as failure
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any

Apache-Phoenix | Master | Build Successful

2019-12-19 Thread Apache Jenkins Server
Master branch build status Successful
Source repository https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=shortlog;h=refs/heads/master

Last Successful Compiled Artifacts https://builds.apache.org/job/Phoenix-master/lastSuccessfulBuild/artifact/

Last Complete Test Report https://builds.apache.org/job/Phoenix-master/lastCompletedBuild/testReport/

Changes
[kadir] PHOENIX-5640 Pending disable count should not be increased for rebuild



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


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

2019-12-19 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
[kadir] PHOENIX-5640 Pending disable count should not be increased for rebuild



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


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

2019-12-19 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
[kadir] PHOENIX-5640 Pending disable count should not be increased for rebuild



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


[phoenix] branch view-ttl-4.x-HBase-1.3 deleted (was df38b7a)

2019-12-19 Thread chinmayskulkarni
This is an automated email from the ASF dual-hosted git repository.

chinmayskulkarni pushed a change to branch view-ttl-4.x-HBase-1.3
in repository https://gitbox.apache.org/repos/asf/phoenix.git.


 was df38b7a  PHOENIX-5501 Add support for VIEW_TTL table property during 
DDL.

The revisions that were on this branch are still contained in
other references; therefore, this change does not discard any commits
from the repository.



[phoenix] branch view-ttl created (now df38b7a)

2019-12-19 Thread chinmayskulkarni
This is an automated email from the ASF dual-hosted git repository.

chinmayskulkarni pushed a change to branch view-ttl
in repository https://gitbox.apache.org/repos/asf/phoenix.git.


  at df38b7a  PHOENIX-5501 Add support for VIEW_TTL table property during 
DDL.

No new revisions were added by this update.



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

2019-12-19 Thread Apache Jenkins Server
See 


Changes:

[kadir] PHOENIX-5640 Pending disable count should not be increased for rebuild


--
[...truncated 102.97 KB...]
[WARNING] Tests run: 3705, Failures: 0, Errors: 0, Skipped: 2
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.0: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.22.0: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.004 
s - in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[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: 9.481 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Running org.apache.phoenix.end2end.ConcurrentMutationsExtendedIT
[INFO] Running org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.746 s 
- in org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.834 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 58.885 s 
- in org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running org.apache.phoenix.end2end.DropSchemaIT
[INFO] Running org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.IndexBuildTimestampIT
[INFO] Running org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 32.331 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 156.495 
s - in org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.IndexRebuildTaskIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 96.536 
s - in org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.518 s 
- in org.apache.phoenix.end2end.IndexRebuildTaskIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolForTenantIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 289.423 
s - in org.apache.phoenix.end2end.ConcurrentMutationsExtendedIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 194.611 
s - in org.apache.phoenix.end2end.IndexBuildTimestampIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 200.107 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.045 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Running org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 104.996 
s - in org.apache.phoenix.end2end.IndexScrutinyToolForTenantIT
[INFO] Running 
org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running org.apache.phoenix.end2end.IndexToolIT
[INFO] Running org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 42.061 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running 
org.apache.phoenix.end2end.OrderByWithServerClientSpoolingDisabledIT
[INFO] Running org.apache.phoenix.end2end.OrderByWithServerMemoryLimitIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.699 s 
- in org.apache.phoenix.end2end.OrderByWithServerMemoryLimitIT
[INFO] Running org.apache.phoenix.end2end.OrderByWithSpillingIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 185.327 
s - in org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Running org.apache.phoenix.end2end.ParameterizedIndexUpgradeToolIT
[I

[phoenix] branch view-ttl-4.x-HBase-1.3 created (now df38b7a)

2019-12-19 Thread chinmayskulkarni
This is an automated email from the ASF dual-hosted git repository.

chinmayskulkarni pushed a change to branch view-ttl-4.x-HBase-1.3
in repository https://gitbox.apache.org/repos/asf/phoenix.git.


  at df38b7a  PHOENIX-5501 Add support for VIEW_TTL table property during 
DDL.

No new revisions were added by this update.



[phoenix] branch 4.x-HBase-1.3-view-ttl deleted (was df38b7a)

2019-12-19 Thread chinmayskulkarni
This is an automated email from the ASF dual-hosted git repository.

chinmayskulkarni pushed a change to branch 4.x-HBase-1.3-view-ttl
in repository https://gitbox.apache.org/repos/asf/phoenix.git.


 was df38b7a  PHOENIX-5501 Add support for VIEW_TTL table property during 
DDL.

The revisions that were on this branch are still contained in
other references; therefore, this change does not discard any commits
from the repository.



[phoenix] branch 4.14-HBase-1.4 updated: PHOENIX-5640 Pending disable count should not be increased for rebuild write failures

2019-12-19 Thread kadir
This is an automated email from the ASF dual-hosted git repository.

kadir 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 a377491  PHOENIX-5640 Pending disable count should not be increased 
for rebuild write failures
a377491 is described below

commit a377491e34b30f42d582f9a1b5792cc14a3c1345
Author: Kadir 
AuthorDate: Wed Dec 18 22:10:00 2019 -0800

PHOENIX-5640 Pending disable count should not be increased for rebuild 
write failures
---
 .../end2end/index/MutableIndexRebuilderIT.java |  5 +
 .../phoenix/index/PhoenixIndexFailurePolicy.java   |  5 -
 .../java/org/apache/phoenix/util/TestUtil.java | 22 ++
 3 files changed, 31 insertions(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
index 55582b5..716a662 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
@@ -112,6 +112,8 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 // Simulate write failure when rebuilder runs
 TestUtil.addCoprocessor(conn, fullIndexName, 
WriteFailingRegionObserver.class);
 waitForIndexState(conn, fullTableName, fullIndexName, 
PIndexState.INACTIVE);
+long pendingDisableCount = TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName);
 // rebuild writes should retry for exactly the configured number 
of times
 ExecutorService executor = Executors.newSingleThreadExecutor();
 try {
@@ -123,6 +125,9 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 }});
 assertTrue(future.get(120, TimeUnit.SECONDS));
 assertEquals(numberOfRetries, 
WriteFailingRegionObserver.attempts.get());
+// Index rebuild write failures should not increase the 
pending disable count of the index table
+assertEquals(pendingDisableCount, 
TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName));
 } finally {
 executor.shutdownNow();
 }
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
index 49fb5fa..68a1ee6 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
@@ -465,7 +465,10 @@ public class PhoenixIndexFailurePolicy extends 
DelegateIndexFailurePolicy {
 public static void doBatchWithRetries(MutateCommand mutateCommand,
 IndexWriteException iwe, PhoenixConnection connection, 
ReadOnlyProps config)
 throws IOException {
-incrementPendingDisableCounter(iwe, connection);
+if (!PhoenixIndexMetaData.isIndexRebuild(
+mutateCommand.getMutationList().get(0).getAttributesMap())) {
+incrementPendingDisableCounter(iwe, connection);
+}
 int maxTries = config.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,
 HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);
 long pause = config.getLong(HConstants.HBASE_CLIENT_PAUSE,
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java 
b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
index 5bbdbc0..c1901cb 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
@@ -17,6 +17,7 @@
  */
 package org.apache.phoenix.util;
 
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES;
 import static org.apache.phoenix.query.BaseTest.generateUniqueName;
 import static org.apache.phoenix.query.QueryConstants.MILLIS_IN_DAY;
 import static 
org.apache.phoenix.query.QueryConstants.SINGLE_COLUMN_FAMILY_NAME;
@@ -56,6 +57,7 @@ import org.apache.hadoop.hbase.CellScanner;
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.HTableDescriptor;
 import org.apache.hadoop.hbase.client.Delete;
+import org.apache.hadoop.hbase.client.Get;
 import org.apache.hadoop.hbase.client.HBaseAdmin;
 import org.apache.hadoop.hbase.client.HTableInterface;
 import org.apache.hadoop.hbase.client.Put;
@@ -983,6 +985,26 @@ public class TestUtil {
IndexStateCheck state = checkIndexStateInternal(conn, fullIndexName, 
null, null);
return state.indexState;
 }
+
+public

[phoenix] branch 4.14-HBase-1.3 updated: PHOENIX-5640 Pending disable count should not be increased for rebuild write failures

2019-12-19 Thread kadir
This is an automated email from the ASF dual-hosted git repository.

kadir 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 45cd0a1  PHOENIX-5640 Pending disable count should not be increased 
for rebuild write failures
45cd0a1 is described below

commit 45cd0a1f3b9fb6865aef49f817d1416e09b80f41
Author: Kadir 
AuthorDate: Wed Dec 18 22:10:00 2019 -0800

PHOENIX-5640 Pending disable count should not be increased for rebuild 
write failures
---
 .../end2end/index/MutableIndexRebuilderIT.java |  5 +
 .../phoenix/index/PhoenixIndexFailurePolicy.java   |  5 -
 .../java/org/apache/phoenix/util/TestUtil.java | 22 ++
 3 files changed, 31 insertions(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
index d80671c..fd366a0 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
@@ -112,6 +112,8 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 // Simulate write failure when rebuilder runs
 TestUtil.addCoprocessor(conn, fullIndexName, 
WriteFailingRegionObserver.class);
 waitForIndexState(conn, fullTableName, fullIndexName, 
PIndexState.INACTIVE);
+long pendingDisableCount = TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName);
 // rebuild writes should retry for exactly the configured number 
of times
 ExecutorService executor = Executors.newSingleThreadExecutor();
 try {
@@ -123,6 +125,9 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 }});
 assertTrue(future.get(120, TimeUnit.SECONDS));
 assertEquals(numberOfRetries, 
WriteFailingRegionObserver.attempts.get());
+// Index rebuild write failures should not increase the 
pending disable count of the index table
+assertEquals(pendingDisableCount, 
TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName));
 } finally {
 executor.shutdownNow();
 }
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
index 614808b..b9b3508 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
@@ -467,7 +467,10 @@ public class PhoenixIndexFailurePolicy extends 
DelegateIndexFailurePolicy {
 public static void doBatchWithRetries(MutateCommand mutateCommand,
 IndexWriteException iwe, PhoenixConnection connection, 
ReadOnlyProps config)
 throws IOException {
-incrementPendingDisableCounter(iwe, connection);
+if (!PhoenixIndexMetaData.isIndexRebuild(
+mutateCommand.getMutationList().get(0).getAttributesMap())) {
+incrementPendingDisableCounter(iwe, connection);
+}
 int maxTries = config.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,
 HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);
 long pause = config.getLong(HConstants.HBASE_CLIENT_PAUSE,
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java 
b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
index 5bbdbc0..c1901cb 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
@@ -17,6 +17,7 @@
  */
 package org.apache.phoenix.util;
 
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES;
 import static org.apache.phoenix.query.BaseTest.generateUniqueName;
 import static org.apache.phoenix.query.QueryConstants.MILLIS_IN_DAY;
 import static 
org.apache.phoenix.query.QueryConstants.SINGLE_COLUMN_FAMILY_NAME;
@@ -56,6 +57,7 @@ import org.apache.hadoop.hbase.CellScanner;
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.HTableDescriptor;
 import org.apache.hadoop.hbase.client.Delete;
+import org.apache.hadoop.hbase.client.Get;
 import org.apache.hadoop.hbase.client.HBaseAdmin;
 import org.apache.hadoop.hbase.client.HTableInterface;
 import org.apache.hadoop.hbase.client.Put;
@@ -983,6 +985,26 @@ public class TestUtil {
IndexStateCheck state = checkIndexStateInternal(conn, fullIndexName, 
null, null);
return state.indexState;
 }
+
+public

[phoenix] branch master updated: PHOENIX-5640 Pending disable count should not be increased for rebuild write failures

2019-12-19 Thread kadir
This is an automated email from the ASF dual-hosted git repository.

kadir 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 4f6d8eb  PHOENIX-5640 Pending disable count should not be increased 
for rebuild write failures
4f6d8eb is described below

commit 4f6d8eb8adccb763b0211a50f6a90e28cc497061
Author: Kadir 
AuthorDate: Wed Dec 18 22:10:00 2019 -0800

PHOENIX-5640 Pending disable count should not be increased for rebuild 
write failures
---
 .../end2end/index/MutableIndexRebuilderIT.java |  5 +
 .../phoenix/index/PhoenixIndexFailurePolicy.java   |  5 -
 .../java/org/apache/phoenix/util/TestUtil.java | 24 ++
 3 files changed, 33 insertions(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
index 5f27eb9..fcccf43 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
@@ -111,6 +111,8 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 // Simulate write failure when rebuilder runs
 TestUtil.addCoprocessor(conn, fullIndexName, 
WriteFailingRegionObserver.class);
 waitForIndexState(conn, fullTableName, fullIndexName, 
PIndexState.INACTIVE);
+long pendingDisableCount = TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName);
 // rebuild writes should retry for exactly the configured number 
of times
 ExecutorService executor = Executors.newSingleThreadExecutor();
 try {
@@ -122,6 +124,9 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 }});
 assertTrue(future.get(120, TimeUnit.SECONDS));
 assertEquals(numberOfRetries, 
WriteFailingRegionObserver.attempts.get());
+// Index rebuild write failures should not increase the 
pending disable count of the index table
+assertEquals(pendingDisableCount, 
TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName));
 } finally {
 executor.shutdownNow();
 }
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
index 6fdcc67..44ec6e0 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
@@ -467,7 +467,10 @@ public class PhoenixIndexFailurePolicy extends 
DelegateIndexFailurePolicy {
 public static void doBatchWithRetries(MutateCommand mutateCommand,
 IndexWriteException iwe, PhoenixConnection connection, 
ReadOnlyProps config)
 throws IOException {
-incrementPendingDisableCounter(iwe, connection);
+if (!PhoenixIndexMetaData.isIndexRebuild(
+mutateCommand.getMutationList().get(0).getAttributesMap())) {
+incrementPendingDisableCounter(iwe, connection);
+}
 int maxTries = config.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,
 HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);
 long pause = config.getLong(HConstants.HBASE_CLIENT_PAUSE,
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java 
b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
index c78067b..fb24ae5 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
@@ -17,6 +17,7 @@
  */
 package org.apache.phoenix.util;
 
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES;
 import static org.apache.phoenix.query.BaseTest.generateUniqueName;
 import static org.apache.phoenix.query.QueryConstants.MILLIS_IN_DAY;
 import static 
org.apache.phoenix.query.QueryConstants.SINGLE_COLUMN_FAMILY_NAME;
@@ -58,6 +59,9 @@ import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.TableName;
 import org.apache.hadoop.hbase.client.Admin;
 import org.apache.hadoop.hbase.client.Delete;
+
+import org.apache.hadoop.hbase.client.Get;
+import org.apache.hadoop.hbase.client.HBaseAdmin;
 import org.apache.hadoop.hbase.client.Put;
 import org.apache.hadoop.hbase.client.Result;
 import org.apache.hadoop.hbase.client.ResultScanner;
@@ -1008,6 +1012,26 @@ public class TestUtil {
IndexStateCheck state = checkIndexStateInternal(conn, fullIndexName, 
null, null);
return state.index

[phoenix] branch 4.x-HBase-1.3 updated: PHOENIX-5640 Pending disable count should not be increased for rebuild write failures

2019-12-19 Thread kadir
This is an automated email from the ASF dual-hosted git repository.

kadir 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 ba7bee3  PHOENIX-5640 Pending disable count should not be increased 
for rebuild write failures
ba7bee3 is described below

commit ba7bee3f86e3d67cc07383e6f8d52e4c9e889f90
Author: Kadir 
AuthorDate: Wed Dec 18 22:10:00 2019 -0800

PHOENIX-5640 Pending disable count should not be increased for rebuild 
write failures
---
 .../end2end/index/MutableIndexRebuilderIT.java |  5 +
 .../phoenix/index/PhoenixIndexFailurePolicy.java   |  5 -
 .../java/org/apache/phoenix/util/TestUtil.java | 22 ++
 3 files changed, 31 insertions(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
index d80671c..fd366a0 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
@@ -112,6 +112,8 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 // Simulate write failure when rebuilder runs
 TestUtil.addCoprocessor(conn, fullIndexName, 
WriteFailingRegionObserver.class);
 waitForIndexState(conn, fullTableName, fullIndexName, 
PIndexState.INACTIVE);
+long pendingDisableCount = TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName);
 // rebuild writes should retry for exactly the configured number 
of times
 ExecutorService executor = Executors.newSingleThreadExecutor();
 try {
@@ -123,6 +125,9 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 }});
 assertTrue(future.get(120, TimeUnit.SECONDS));
 assertEquals(numberOfRetries, 
WriteFailingRegionObserver.attempts.get());
+// Index rebuild write failures should not increase the 
pending disable count of the index table
+assertEquals(pendingDisableCount, 
TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName));
 } finally {
 executor.shutdownNow();
 }
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
index 7ca3d5b..4d736a2 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
@@ -467,7 +467,10 @@ public class PhoenixIndexFailurePolicy extends 
DelegateIndexFailurePolicy {
 public static void doBatchWithRetries(MutateCommand mutateCommand,
 IndexWriteException iwe, PhoenixConnection connection, 
ReadOnlyProps config)
 throws IOException {
-incrementPendingDisableCounter(iwe, connection);
+if (!PhoenixIndexMetaData.isIndexRebuild(
+mutateCommand.getMutationList().get(0).getAttributesMap())) {
+incrementPendingDisableCounter(iwe, connection);
+}
 int maxTries = config.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,
 HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);
 long pause = config.getLong(HConstants.HBASE_CLIENT_PAUSE,
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java 
b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
index 5662e4c..d22971d 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
@@ -17,6 +17,7 @@
  */
 package org.apache.phoenix.util;
 
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES;
 import static org.apache.phoenix.query.BaseTest.generateUniqueName;
 import static org.apache.phoenix.query.QueryConstants.MILLIS_IN_DAY;
 import static 
org.apache.phoenix.query.QueryConstants.SINGLE_COLUMN_FAMILY_NAME;
@@ -57,6 +58,7 @@ import org.apache.hadoop.hbase.CellScanner;
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.HTableDescriptor;
 import org.apache.hadoop.hbase.client.Delete;
+import org.apache.hadoop.hbase.client.Get;
 import org.apache.hadoop.hbase.client.HBaseAdmin;
 import org.apache.hadoop.hbase.client.HTableInterface;
 import org.apache.hadoop.hbase.client.Put;
@@ -1007,6 +1009,26 @@ public class TestUtil {
IndexStateCheck state = checkIndexStateInternal(conn, fullIndexName, 
null, null);
return state.indexState;
 }
+
+public

[phoenix] branch 4.x-HBase-1.4 updated: PHOENIX-5640 Pending disable count should not be increased for rebuild write failures

2019-12-19 Thread kadir
This is an automated email from the ASF dual-hosted git repository.

kadir 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 7e27a60  PHOENIX-5640 Pending disable count should not be increased 
for rebuild write failures
7e27a60 is described below

commit 7e27a60f07a832743b4c9ebf8bf07a067d63c30c
Author: Kadir 
AuthorDate: Wed Dec 18 22:10:00 2019 -0800

PHOENIX-5640 Pending disable count should not be increased for rebuild 
write failures
---
 .../end2end/index/MutableIndexRebuilderIT.java |  5 +
 .../phoenix/index/PhoenixIndexFailurePolicy.java   |  5 -
 .../java/org/apache/phoenix/util/TestUtil.java | 22 ++
 3 files changed, 31 insertions(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
index 55582b5..716a662 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
@@ -112,6 +112,8 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 // Simulate write failure when rebuilder runs
 TestUtil.addCoprocessor(conn, fullIndexName, 
WriteFailingRegionObserver.class);
 waitForIndexState(conn, fullTableName, fullIndexName, 
PIndexState.INACTIVE);
+long pendingDisableCount = TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName);
 // rebuild writes should retry for exactly the configured number 
of times
 ExecutorService executor = Executors.newSingleThreadExecutor();
 try {
@@ -123,6 +125,9 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 }});
 assertTrue(future.get(120, TimeUnit.SECONDS));
 assertEquals(numberOfRetries, 
WriteFailingRegionObserver.attempts.get());
+// Index rebuild write failures should not increase the 
pending disable count of the index table
+assertEquals(pendingDisableCount, 
TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName));
 } finally {
 executor.shutdownNow();
 }
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
index 7ca3d5b..4d736a2 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
@@ -467,7 +467,10 @@ public class PhoenixIndexFailurePolicy extends 
DelegateIndexFailurePolicy {
 public static void doBatchWithRetries(MutateCommand mutateCommand,
 IndexWriteException iwe, PhoenixConnection connection, 
ReadOnlyProps config)
 throws IOException {
-incrementPendingDisableCounter(iwe, connection);
+if (!PhoenixIndexMetaData.isIndexRebuild(
+mutateCommand.getMutationList().get(0).getAttributesMap())) {
+incrementPendingDisableCounter(iwe, connection);
+}
 int maxTries = config.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,
 HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);
 long pause = config.getLong(HConstants.HBASE_CLIENT_PAUSE,
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java 
b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
index 5662e4c..d22971d 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
@@ -17,6 +17,7 @@
  */
 package org.apache.phoenix.util;
 
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES;
 import static org.apache.phoenix.query.BaseTest.generateUniqueName;
 import static org.apache.phoenix.query.QueryConstants.MILLIS_IN_DAY;
 import static 
org.apache.phoenix.query.QueryConstants.SINGLE_COLUMN_FAMILY_NAME;
@@ -57,6 +58,7 @@ import org.apache.hadoop.hbase.CellScanner;
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.HTableDescriptor;
 import org.apache.hadoop.hbase.client.Delete;
+import org.apache.hadoop.hbase.client.Get;
 import org.apache.hadoop.hbase.client.HBaseAdmin;
 import org.apache.hadoop.hbase.client.HTableInterface;
 import org.apache.hadoop.hbase.client.Put;
@@ -1007,6 +1009,26 @@ public class TestUtil {
IndexStateCheck state = checkIndexStateInternal(conn, fullIndexName, 
null, null);
return state.indexState;
 }
+
+public

[phoenix] branch 4.x-HBase-1.5 updated: PHOENIX-5640 Pending disable count should not be increased for rebuild write failures

2019-12-19 Thread kadir
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/4.x-HBase-1.5 by this push:
 new 782effc  PHOENIX-5640 Pending disable count should not be increased 
for rebuild write failures
782effc is described below

commit 782effcb15d2f27d7339b0de5a8c39dc405c4354
Author: Kadir 
AuthorDate: Wed Dec 18 22:10:00 2019 -0800

PHOENIX-5640 Pending disable count should not be increased for rebuild 
write failures
---
 .../end2end/index/MutableIndexRebuilderIT.java |  5 +
 .../phoenix/index/PhoenixIndexFailurePolicy.java   |  5 -
 .../java/org/apache/phoenix/util/TestUtil.java | 22 ++
 3 files changed, 31 insertions(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
index 55582b5..716a662 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexRebuilderIT.java
@@ -112,6 +112,8 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 // Simulate write failure when rebuilder runs
 TestUtil.addCoprocessor(conn, fullIndexName, 
WriteFailingRegionObserver.class);
 waitForIndexState(conn, fullTableName, fullIndexName, 
PIndexState.INACTIVE);
+long pendingDisableCount = TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName);
 // rebuild writes should retry for exactly the configured number 
of times
 ExecutorService executor = Executors.newSingleThreadExecutor();
 try {
@@ -123,6 +125,9 @@ public class MutableIndexRebuilderIT extends 
BaseUniqueNamesOwnClusterIT {
 }});
 assertTrue(future.get(120, TimeUnit.SECONDS));
 assertEquals(numberOfRetries, 
WriteFailingRegionObserver.attempts.get());
+// Index rebuild write failures should not increase the 
pending disable count of the index table
+assertEquals(pendingDisableCount, 
TestUtil.getPendingDisableCount(
+conn.unwrap(PhoenixConnection.class), fullIndexName));
 } finally {
 executor.shutdownNow();
 }
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
index 7ca3d5b..4d736a2 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/index/PhoenixIndexFailurePolicy.java
@@ -467,7 +467,10 @@ public class PhoenixIndexFailurePolicy extends 
DelegateIndexFailurePolicy {
 public static void doBatchWithRetries(MutateCommand mutateCommand,
 IndexWriteException iwe, PhoenixConnection connection, 
ReadOnlyProps config)
 throws IOException {
-incrementPendingDisableCounter(iwe, connection);
+if (!PhoenixIndexMetaData.isIndexRebuild(
+mutateCommand.getMutationList().get(0).getAttributesMap())) {
+incrementPendingDisableCounter(iwe, connection);
+}
 int maxTries = config.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,
 HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);
 long pause = config.getLong(HConstants.HBASE_CLIENT_PAUSE,
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java 
b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
index 5662e4c..d22971d 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
@@ -17,6 +17,7 @@
  */
 package org.apache.phoenix.util;
 
+import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.TABLE_FAMILY_BYTES;
 import static org.apache.phoenix.query.BaseTest.generateUniqueName;
 import static org.apache.phoenix.query.QueryConstants.MILLIS_IN_DAY;
 import static 
org.apache.phoenix.query.QueryConstants.SINGLE_COLUMN_FAMILY_NAME;
@@ -57,6 +58,7 @@ import org.apache.hadoop.hbase.CellScanner;
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.HTableDescriptor;
 import org.apache.hadoop.hbase.client.Delete;
+import org.apache.hadoop.hbase.client.Get;
 import org.apache.hadoop.hbase.client.HBaseAdmin;
 import org.apache.hadoop.hbase.client.HTableInterface;
 import org.apache.hadoop.hbase.client.Put;
@@ -1007,6 +1009,26 @@ public class TestUtil {
IndexStateCheck state = checkIndexStateInternal(conn, fullIndexName, 
null, null);
return state.indexState;
 }
+
+public

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

2019-12-19 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
[larsh] PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.



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


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

2019-12-19 Thread Apache Jenkins Server
See 




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

2019-12-19 Thread Apache Jenkins Server
[...truncated 39 lines...]
Looking at the log, list of test(s) that timed-out:

Build:
https://builds.apache.org/job/Phoenix-master/2603/


Affected test class(es):
Set(['as SYSTEM'])


Build step 'Execute shell' marked build as failure
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any

Apache-Phoenix | Master | Build Successful

2019-12-19 Thread Apache Jenkins Server
Master branch build status Successful
Source repository https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=shortlog;h=refs/heads/master

Last Successful Compiled Artifacts https://builds.apache.org/job/Phoenix-master/lastSuccessfulBuild/artifact/

Last Complete Test Report https://builds.apache.org/job/Phoenix-master/lastCompletedBuild/testReport/

Changes
[larsh] PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.



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


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

2019-12-19 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
No changes


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


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

2019-12-19 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
[larsh] PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.



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


Apache-Phoenix | Master | Build Successful

2019-12-19 Thread Apache Jenkins Server
Master branch build status Successful
Source repository https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=shortlog;h=refs/heads/master

Last Successful Compiled Artifacts https://builds.apache.org/job/Phoenix-master/lastSuccessfulBuild/artifact/

Last Complete Test Report https://builds.apache.org/job/Phoenix-master/lastCompletedBuild/testReport/

Changes
[larsh] PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.



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


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

2019-12-19 Thread Apache Jenkins Server
[...truncated 27 lines...]
Looking at the log, list of test(s) that timed-out:

Build:
https://builds.apache.org/job/Phoenix-master/2602/


Affected test class(es):
Set(['as SYSTEM'])


Build step 'Execute shell' marked build as failure
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any

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

2019-12-19 Thread Apache Jenkins Server
See 


Changes:

[larsh] PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.


--
[...truncated 104.95 KB...]
[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.004 
s - in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[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: 12.267 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.ConcurrentMutationsExtendedIT
[INFO] Running org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.512 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.553 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.585 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
180.904 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
187.403 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
185.543 s - in 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[WARNING] Tests run: 28, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
187.983 s - in org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 266.304 
s - in org.apache.phoenix.end2end.ConcurrentMutationsExtendedIT
[INFO] Running org.apache.phoenix.end2end.IndexBuildTimestampIT
[INFO] Running org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 32.425 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Running org.apache.phoenix.end2end.IndexRebuildTaskIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.818 s 
- in org.apache.phoenix.end2end.IndexRebuildTaskIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolForTenantIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 148.991 
s - in org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 98.603 
s - in org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Running org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Running 
org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 106.758 
s - in org.apache.phoenix.end2end.IndexScrutinyToolForTenantIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 207.456 
s - in org.apache.phoenix.end2end.IndexBuildTimestampIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.209 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 213.444 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.389 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running org.apache.phoenix.end2end.IndexToolIT
[INFO] Running org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Running 
org.apache.phoenix.end2end.NonColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.NonColumnEn

Build failed in Jenkins: Phoenix-4.x-HBase-1.5 #223

2019-12-19 Thread Apache Jenkins Server
See 

Changes:


--
Started by user larsh
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on H27 (ubuntu) in workspace 

No credentials specified
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://gitbox.apache.org/repos/asf/phoenix.git 
 > # timeout=10
Fetching upstream changes from https://gitbox.apache.org/repos/asf/phoenix.git
 > git --version # timeout=10
 > git fetch --tags --progress -- 
 > https://gitbox.apache.org/repos/asf/phoenix.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/4.x-HBase-1.5^{commit} # timeout=10
Checking out Revision 3d8b3f042ba9357ef6e1e047156839aa5513f05e 
(origin/4.x-HBase-1.5)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 3d8b3f042ba9357ef6e1e047156839aa5513f05e
Commit message: "PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT."
 > git rev-list --no-walk 3d8b3f042ba9357ef6e1e047156839aa5513f05e # timeout=10
No emails were triggered.
[EnvInject] - Executing scripts and injecting environment variables after the 
SCM step.
[EnvInject] - Injecting as environment variables the properties content 
MAVEN_OPTS=-Xmx3G

[EnvInject] - Variables injected successfully.
[Phoenix-4.x-HBase-1.5] $ /bin/bash -xe /tmp/jenkins3057393647310208903.sh
[Phoenix-4.x-HBase-1.5] $ /home/jenkins/tools/maven/latest3/bin/mvn -U clean 
install -Dcheckstyle.skip=true
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.phoenix:phoenix-assembly:pom:4.15.0-HBase-1.5
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:exec-maven-plugin is missing. @ line 40, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING] 
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache Phoenix [pom]
[INFO] Phoenix Core   [jar]
[INFO] Phoenix - Pherf[jar]
[INFO] Phoenix Client [jar]
[INFO] Phoenix Server [jar]
[INFO] Phoenix Assembly   [pom]
[INFO] Phoenix - Tracing Web Application  [jar]
[INFO] 
[INFO] -< org.apache.phoenix:phoenix >-
[INFO] Building Apache Phoenix 4.15.0-HBase-1.5   [1/7]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ phoenix ---
[INFO] Deleting 
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
phoenix ---
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.1.0:check (validate) @ phoenix ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ phoenix ---
[INFO] 
[INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ phoenix ---
[INFO] 
[INFO] --- maven-jar-plugin:3.1.0:test-jar (default) @ phoenix ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ 
phoenix ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ phoenix ---
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.15.0-HBase-1.5/phoenix-4.15.0-HBase-1.5.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/phoenix/phoenix/4.15.0-HBase-1.5/phoenix-4.15.0-HBase-1.5-tests.jar
[INFO] 
[INFO] --< org.apache.phoenix:phoenix-core >---
[INFO] Building Phoenix Core 4.15.0-HBase-1.5 [2/7]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ phoenix-core ---
[INFO] Deleting 

[INFO] 

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

2019-12-19 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
[larsh] PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.



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


[phoenix-queryserver] branch master updated: PHOENIX-5638 phoenix-queryserver build system improvements

2019-12-19 Thread stoty
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 5812ccd  PHOENIX-5638 phoenix-queryserver build system improvements
5812ccd is described below

commit 5812ccddbe52c6880546ebeb7a49a4bc7d770735
Author: Istvan Toth 
AuthorDate: Wed Dec 18 14:26:32 2019 +0100

PHOENIX-5638 phoenix-queryserver build system improvements
---
 assembly/pom.xml   |   6 +-
 load-balancer/pom.xml  |  20 +-
 .../phoenix/end2end/LoadBalancerEnd2EndIT.java |   2 +-
 pom.xml| 224 +++--
 queryserver-client/pom.xml |   3 +
 queryserver-orchestrator/pom.xml   |   8 +-
 queryserver/pom.xml|  31 ++-
 7 files changed, 128 insertions(+), 166 deletions(-)

diff --git a/assembly/pom.xml b/assembly/pom.xml
index 4562607..da4f3f3 100644
--- a/assembly/pom.xml
+++ b/assembly/pom.xml
@@ -59,8 +59,10 @@
 single
 
 
-cluster.xml
-
${parent.artifactId}-${project.version}
+
+cluster.xml
+
+
${project.parent.artifactId}-${project.version}
 posix
 false
 
diff --git a/load-balancer/pom.xml b/load-balancer/pom.xml
index cb893f7..97939a3 100644
--- a/load-balancer/pom.xml
+++ b/load-balancer/pom.xml
@@ -57,13 +57,27 @@
   
 
   
+org.apache.maven.plugins
+maven-jar-plugin
+
+  
+prepare-package
+
+  test-jar
+
+  
+
+
+  true
+
+  
+  
 maven-source-plugin
 
   
-attach-sources
-verify
+attach-test-sources
+prepare-package
 
-  jar-no-fork
   test-jar-no-fork
 
   
diff --git 
a/load-balancer/src/it/java/org/apache/phoenix/end2end/LoadBalancerEnd2EndIT.java
 
b/load-balancer/src/it/java/org/apache/phoenix/end2end/LoadBalancerEnd2EndIT.java
index a5e2c9b..8aa516b 100644
--- 
a/load-balancer/src/it/java/org/apache/phoenix/end2end/LoadBalancerEnd2EndIT.java
+++ 
b/load-balancer/src/it/java/org/apache/phoenix/end2end/LoadBalancerEnd2EndIT.java
@@ -25,7 +25,7 @@ import org.apache.curator.CuratorZookeeperClient;
 import org.apache.curator.framework.CuratorFramework;
 import org.apache.curator.framework.CuratorFrameworkFactory;
 import org.apache.curator.retry.ExponentialBackoffRetry;
-import org.apache.curator.TestingServer;
+import org.apache.curator.test.TestingServer;
 import org.apache.curator.utils.CloseableUtils;
 import org.apache.phoenix.loadbalancer.service.LoadBalancer;
 import org.apache.phoenix.loadbalancer.service.LoadBalanceZookeeperConf;
diff --git a/pom.xml b/pom.xml
index 9f8cc87..21b6aec 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,9 @@
 http://maven.apache.org/POM/4.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+
 4.0.0
+
 
   org.apache
   apache
@@ -85,11 +87,6 @@
 
 2.9
 
1.9.1
-2.22.2
-2.22.2
-
-2.1
-2.5.2
 
 
 false
@@ -106,59 +103,17 @@
 
 org.apache.maven.plugins
 maven-compiler-plugin
-3.0
 
 1.8
 1.8
 
 
-
-
-org.eclipse.m2e
-lifecycle-mapping
-1.0.0
-
-
-
-
-
-org.antlr
-
antlr3-maven-plugin
-[3.5,)
-
-antlr
-
-
-
-
-
-
-
-
-
-
-
-org.apache.maven.plugins
-maven-i

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

2019-12-19 Thread Apache Jenkins Server
See 


Changes:


--
Started by timer
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on H35 (ubuntu) in workspace 

[Phoenix_Compile_Compat_wHBase] $ /bin/bash /tmp/jenkins8570632958562796262.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) 386461
max locked memory   (kbytes, -l) 16384
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:   98978412 kB
MemFree:37802596 kB
Filesystem  Size  Used Avail Use% Mounted on
udev 48G 0   48G   0% /dev
tmpfs   9.5G  1.6M  9.5G   1% /run
/dev/sda3   3.6T  354G  3.1T  11% /
tmpfs48G  4.0K   48G   1% /dev/shm
tmpfs   5.0M 0  5.0M   0% /run/lock
tmpfs48G 0   48G   0% /sys/fs/cgroup
/dev/loop3   58M   58M 0 100% /snap/snapcraft/3440
/dev/sda2   473M  159M  290M  36% /boot
tmpfs   9.5G  4.0K  9.5G   1% /run/user/910
/dev/loop5   55M   55M 0 100% /snap/lxd/12317
/dev/loop2   55M   55M 0 100% /snap/core18/1265
/dev/loop6   59M   59M 0 100% /snap/snapcraft/3720
/dev/loop7   55M   55M 0 100% /snap/lxd/12631
/dev/loop4   55M   55M 0 100% /snap/core18/1279
/dev/loop8   90M   90M 0 100% /snap/core/8213
/dev/loop0   90M   90M 0 100% /snap/core/8268
apache-maven-2.2.1
apache-maven-3.0.5
apache-maven-3.1.1
apache-maven-3.2.5
apache-maven-3.3.9
apache-maven-3.5.2
apache-maven-3.5.4
apache-maven-3.6.0
apache-maven-3.6.2
latest
latest2
latest3


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

Cloning into 'hbase'...
Checking out files:  73% (3632/4954)   Checking out files:  74% (3666/4954)   
Checking out files:  75% (3716/4954)   Checking out files:  76% (3766/4954)   
Checking out files:  77% (3815/4954)   Checking out files:  78% (3865/4954)   
Checking out files:  79% (3914/4954)   Checking out files:  80% (3964/4954)   
Checking out files:  81% (4013/4954)   Checking out files:  82% (4063/4954)   
Checking out files:  83% (4112/4954)   Checking out files:  84% (4162/4954)   
Checking out files:  85% (4211/4954)   Checking out files:  86% (4261/4954)   
Checking out files:  87% (4310/4954)   Checking out files:  88% (4360/4954)   
Checking out files:  89% (4410/4954)   Checking out files:  90% (4459/4954)   
Checking out files:  91% (4509/4954)   Checking out files:  92% (4558/4954)   
Checking out files:  93% (4608/4954)   Checking out files:  94% (4657/4954)   
Checking out files:  95% (4707/4954)   Checking out files:  96% (4756/4954)   
Checking out files:  97% (4806/4954)   Checking out files:  98% (4855/4954)   
Checking out files:  99% (4905/4954)   Checking out files: 100% (4954/4954)   
Checking out files: 100% (4954/4954), done.
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


[phoenix] branch master updated: PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.

2019-12-19 Thread larsh
This is an automated email from the ASF dual-hosted git repository.

larsh 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 9cd8734  PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
9cd8734 is described below

commit 9cd873492d4047d20c09259bedcd6df91348a08a
Author: Lars Hofhansl 
AuthorDate: Thu Dec 19 01:02:05 2019 -0800

PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
---
 .../end2end/ParameterizedIndexUpgradeToolIT.java   | 38 ++
 1 file changed, 17 insertions(+), 21 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
index 5f9dc9a..b320446 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
@@ -310,44 +310,40 @@ public class ParameterizedIndexUpgradeToolIT extends 
BaseTest {
 }
 
 @Test
-public void testToolWithIncorrectTables() throws Exception {
+public void testDryRunAndFailures() throws Exception {
 validate(true);
+
+// test with incorrect table
 iut.setInputTables("TEST3.TABLE_NOT_PRESENT");
 iut.prepareToolSetup();
 
 int status = iut.executeTool();
 Assert.assertEquals(-1, status);
 validate(true);
-}
 
-@Test
-public void testToolWithNoIndex() throws Exception {
-if (!upgrade || isNamespaceEnabled) {
-return;
-}
-conn.createStatement().execute("CREATE TABLE TEST.NEW_TABLE (id bigint 
NOT NULL "
-+ "PRIMARY KEY, a.name varchar, sal bigint, address varchar)" 
+ tableDDLOptions);
-iut.setInputTables("TEST.NEW_TABLE");
-iut.prepareToolSetup();
-int status = iut.executeTool();
-Assert.assertEquals(0, status);
-conn.createStatement().execute("DROP TABLE TEST.NEW_TABLE");
-}
-
-@Test
-public void testToolWithInputFileParameter() throws Exception {
+// test with input file parameter
 BufferedWriter writer = new BufferedWriter(new FileWriter(new 
File(INPUT_FILE)));
 writer.write(INPUT_LIST);
 writer.close();
 
-validate(true);
-
 iut.setInputTables(null);
 iut.setInputFile(INPUT_FILE);
 iut.prepareToolSetup();
-iut.executeTool();
+status = iut.executeTool();
+Assert.assertEquals(0, status);
 
 validate(true);
+
+// test table without index
+if (upgrade && !isNamespaceEnabled) {
+conn.createStatement().execute("CREATE TABLE TEST.NEW_TABLE (id 
bigint NOT NULL "
++ "PRIMARY KEY, a.name varchar, sal bigint, address 
varchar)" + tableDDLOptions);
+iut.setInputTables("TEST.NEW_TABLE");
+iut.prepareToolSetup();
+status = iut.executeTool();
+Assert.assertEquals(0, status);
+conn.createStatement().execute("DROP TABLE TEST.NEW_TABLE");
+}
 }
 
 @After



[phoenix] branch 4.x-HBase-1.3 updated: PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.

2019-12-19 Thread larsh
This is an automated email from the ASF dual-hosted git repository.

larsh 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 53c0089  PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
53c0089 is described below

commit 53c0089a29a33124b0a0be4c5315995ace2c70fd
Author: Lars Hofhansl 
AuthorDate: Thu Dec 19 01:02:05 2019 -0800

PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
---
 .../end2end/ParameterizedIndexUpgradeToolIT.java   | 38 ++
 1 file changed, 17 insertions(+), 21 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
index 16f99e3..5a2cef9 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
@@ -310,44 +310,40 @@ public class ParameterizedIndexUpgradeToolIT extends 
BaseTest {
 }
 
 @Test
-public void testToolWithIncorrectTables() throws Exception {
+public void testDryRunAndFailures() throws Exception {
 validate(true);
+
+// test with incorrect table
 iut.setInputTables("TEST3.TABLE_NOT_PRESENT");
 iut.prepareToolSetup();
 
 int status = iut.executeTool();
 Assert.assertEquals(-1, status);
 validate(true);
-}
 
-@Test
-public void testToolWithNoIndex() throws Exception {
-if (!upgrade || isNamespaceEnabled) {
-return;
-}
-conn.createStatement().execute("CREATE TABLE TEST.NEW_TABLE (id bigint 
NOT NULL "
-+ "PRIMARY KEY, a.name varchar, sal bigint, address varchar)" 
+ tableDDLOptions);
-iut.setInputTables("TEST.NEW_TABLE");
-iut.prepareToolSetup();
-int status = iut.executeTool();
-Assert.assertEquals(0, status);
-conn.createStatement().execute("DROP TABLE TEST.NEW_TABLE");
-}
-
-@Test
-public void testToolWithInputFileParameter() throws Exception {
+// test with input file parameter
 BufferedWriter writer = new BufferedWriter(new FileWriter(new 
File(INPUT_FILE)));
 writer.write(INPUT_LIST);
 writer.close();
 
-validate(true);
-
 iut.setInputTables(null);
 iut.setInputFile(INPUT_FILE);
 iut.prepareToolSetup();
-iut.executeTool();
+status = iut.executeTool();
+Assert.assertEquals(0, status);
 
 validate(true);
+
+// test table without index
+if (upgrade && !isNamespaceEnabled) {
+conn.createStatement().execute("CREATE TABLE TEST.NEW_TABLE (id 
bigint NOT NULL "
++ "PRIMARY KEY, a.name varchar, sal bigint, address 
varchar)" + tableDDLOptions);
+iut.setInputTables("TEST.NEW_TABLE");
+iut.prepareToolSetup();
+status = iut.executeTool();
+Assert.assertEquals(0, status);
+conn.createStatement().execute("DROP TABLE TEST.NEW_TABLE");
+}
 }
 
 @After



[phoenix] branch 4.x-HBase-1.5 updated: PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.

2019-12-19 Thread larsh
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/4.x-HBase-1.5 by this push:
 new 3d8b3f0  PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
3d8b3f0 is described below

commit 3d8b3f042ba9357ef6e1e047156839aa5513f05e
Author: Lars Hofhansl 
AuthorDate: Thu Dec 19 01:02:05 2019 -0800

PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
---
 .../end2end/ParameterizedIndexUpgradeToolIT.java   | 38 ++
 1 file changed, 17 insertions(+), 21 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
index 16f99e3..5a2cef9 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
@@ -310,44 +310,40 @@ public class ParameterizedIndexUpgradeToolIT extends 
BaseTest {
 }
 
 @Test
-public void testToolWithIncorrectTables() throws Exception {
+public void testDryRunAndFailures() throws Exception {
 validate(true);
+
+// test with incorrect table
 iut.setInputTables("TEST3.TABLE_NOT_PRESENT");
 iut.prepareToolSetup();
 
 int status = iut.executeTool();
 Assert.assertEquals(-1, status);
 validate(true);
-}
 
-@Test
-public void testToolWithNoIndex() throws Exception {
-if (!upgrade || isNamespaceEnabled) {
-return;
-}
-conn.createStatement().execute("CREATE TABLE TEST.NEW_TABLE (id bigint 
NOT NULL "
-+ "PRIMARY KEY, a.name varchar, sal bigint, address varchar)" 
+ tableDDLOptions);
-iut.setInputTables("TEST.NEW_TABLE");
-iut.prepareToolSetup();
-int status = iut.executeTool();
-Assert.assertEquals(0, status);
-conn.createStatement().execute("DROP TABLE TEST.NEW_TABLE");
-}
-
-@Test
-public void testToolWithInputFileParameter() throws Exception {
+// test with input file parameter
 BufferedWriter writer = new BufferedWriter(new FileWriter(new 
File(INPUT_FILE)));
 writer.write(INPUT_LIST);
 writer.close();
 
-validate(true);
-
 iut.setInputTables(null);
 iut.setInputFile(INPUT_FILE);
 iut.prepareToolSetup();
-iut.executeTool();
+status = iut.executeTool();
+Assert.assertEquals(0, status);
 
 validate(true);
+
+// test table without index
+if (upgrade && !isNamespaceEnabled) {
+conn.createStatement().execute("CREATE TABLE TEST.NEW_TABLE (id 
bigint NOT NULL "
++ "PRIMARY KEY, a.name varchar, sal bigint, address 
varchar)" + tableDDLOptions);
+iut.setInputTables("TEST.NEW_TABLE");
+iut.prepareToolSetup();
+status = iut.executeTool();
+Assert.assertEquals(0, status);
+conn.createStatement().execute("DROP TABLE TEST.NEW_TABLE");
+}
 }
 
 @After



[phoenix] branch 4.x-HBase-1.4 updated: PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.

2019-12-19 Thread larsh
This is an automated email from the ASF dual-hosted git repository.

larsh 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 adc5897  PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
adc5897 is described below

commit adc58977c9e1069345c82f838b39083fa3fb6e4a
Author: Lars Hofhansl 
AuthorDate: Thu Dec 19 01:02:05 2019 -0800

PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
---
 .../end2end/ParameterizedIndexUpgradeToolIT.java   | 38 ++
 1 file changed, 17 insertions(+), 21 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
index 16f99e3..5a2cef9 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
@@ -310,44 +310,40 @@ public class ParameterizedIndexUpgradeToolIT extends 
BaseTest {
 }
 
 @Test
-public void testToolWithIncorrectTables() throws Exception {
+public void testDryRunAndFailures() throws Exception {
 validate(true);
+
+// test with incorrect table
 iut.setInputTables("TEST3.TABLE_NOT_PRESENT");
 iut.prepareToolSetup();
 
 int status = iut.executeTool();
 Assert.assertEquals(-1, status);
 validate(true);
-}
 
-@Test
-public void testToolWithNoIndex() throws Exception {
-if (!upgrade || isNamespaceEnabled) {
-return;
-}
-conn.createStatement().execute("CREATE TABLE TEST.NEW_TABLE (id bigint 
NOT NULL "
-+ "PRIMARY KEY, a.name varchar, sal bigint, address varchar)" 
+ tableDDLOptions);
-iut.setInputTables("TEST.NEW_TABLE");
-iut.prepareToolSetup();
-int status = iut.executeTool();
-Assert.assertEquals(0, status);
-conn.createStatement().execute("DROP TABLE TEST.NEW_TABLE");
-}
-
-@Test
-public void testToolWithInputFileParameter() throws Exception {
+// test with input file parameter
 BufferedWriter writer = new BufferedWriter(new FileWriter(new 
File(INPUT_FILE)));
 writer.write(INPUT_LIST);
 writer.close();
 
-validate(true);
-
 iut.setInputTables(null);
 iut.setInputFile(INPUT_FILE);
 iut.prepareToolSetup();
-iut.executeTool();
+status = iut.executeTool();
+Assert.assertEquals(0, status);
 
 validate(true);
+
+// test table without index
+if (upgrade && !isNamespaceEnabled) {
+conn.createStatement().execute("CREATE TABLE TEST.NEW_TABLE (id 
bigint NOT NULL "
++ "PRIMARY KEY, a.name varchar, sal bigint, address 
varchar)" + tableDDLOptions);
+iut.setInputTables("TEST.NEW_TABLE");
+iut.prepareToolSetup();
+status = iut.executeTool();
+Assert.assertEquals(0, status);
+conn.createStatement().execute("DROP TABLE TEST.NEW_TABLE");
+}
 }
 
 @After



[phoenix] branch 4.x-HBase-1.4 updated: PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.

2019-12-19 Thread larsh
This is an automated email from the ASF dual-hosted git repository.

larsh 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 26c7680  PHOENIX-5617 Allow using the server side JDBC client in 
Phoenix Sandbox.
26c7680 is described below

commit 26c768063ac5253d083820cdd43c5faa384ea459
Author: Lars Hofhansl 
AuthorDate: Thu Dec 19 00:55:04 2019 -0800

PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.
---
 phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java 
b/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
index ec4e920..102e97c 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
@@ -18,10 +18,12 @@
 package org.apache.phoenix;
 
 import com.google.common.collect.ImmutableMap;
+
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseTestingUtility;
 import org.apache.phoenix.query.BaseTest;
+import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.ReadOnlyProps;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -37,7 +39,9 @@ public class Sandbox {
 public static void main(String[] args) throws Exception {
 System.out.println("Starting Phoenix sandbox");
 Configuration conf = HBaseConfiguration.create();
-BaseTest.setUpConfigForMiniCluster(conf, new 
ReadOnlyProps(ImmutableMap.of()));
+// unset test=true parameter
+BaseTest.setUpConfigForMiniCluster(conf, new ReadOnlyProps(
+ImmutableMap. 
of(QueryServices.EXTRA_JDBC_ARGUMENTS_ATTRIB, "")));
 
 final HBaseTestingUtility testUtil = new HBaseTestingUtility(conf);
 testUtil.startMiniCluster();



[phoenix] branch master updated: PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.

2019-12-19 Thread larsh
This is an automated email from the ASF dual-hosted git repository.

larsh 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 834d79c  PHOENIX-5617 Allow using the server side JDBC client in 
Phoenix Sandbox.
834d79c is described below

commit 834d79c0e57665d7e0ae89bc0d5723c0846fbc3b
Author: Lars Hofhansl 
AuthorDate: Thu Dec 19 00:55:04 2019 -0800

PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.
---
 phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java 
b/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
index ec4e920..102e97c 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
@@ -18,10 +18,12 @@
 package org.apache.phoenix;
 
 import com.google.common.collect.ImmutableMap;
+
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseTestingUtility;
 import org.apache.phoenix.query.BaseTest;
+import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.ReadOnlyProps;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -37,7 +39,9 @@ public class Sandbox {
 public static void main(String[] args) throws Exception {
 System.out.println("Starting Phoenix sandbox");
 Configuration conf = HBaseConfiguration.create();
-BaseTest.setUpConfigForMiniCluster(conf, new 
ReadOnlyProps(ImmutableMap.of()));
+// unset test=true parameter
+BaseTest.setUpConfigForMiniCluster(conf, new ReadOnlyProps(
+ImmutableMap. 
of(QueryServices.EXTRA_JDBC_ARGUMENTS_ATTRIB, "")));
 
 final HBaseTestingUtility testUtil = new HBaseTestingUtility(conf);
 testUtil.startMiniCluster();



[phoenix] branch 4.x-HBase-1.3 updated: PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.

2019-12-19 Thread larsh
This is an automated email from the ASF dual-hosted git repository.

larsh 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 8f4d9b2  PHOENIX-5617 Allow using the server side JDBC client in 
Phoenix Sandbox.
8f4d9b2 is described below

commit 8f4d9b2d75e68f318f0bca5bec17556e0d9bde77
Author: Lars Hofhansl 
AuthorDate: Thu Dec 19 00:55:04 2019 -0800

PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.
---
 phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java 
b/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
index ec4e920..102e97c 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
@@ -18,10 +18,12 @@
 package org.apache.phoenix;
 
 import com.google.common.collect.ImmutableMap;
+
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseTestingUtility;
 import org.apache.phoenix.query.BaseTest;
+import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.ReadOnlyProps;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -37,7 +39,9 @@ public class Sandbox {
 public static void main(String[] args) throws Exception {
 System.out.println("Starting Phoenix sandbox");
 Configuration conf = HBaseConfiguration.create();
-BaseTest.setUpConfigForMiniCluster(conf, new 
ReadOnlyProps(ImmutableMap.of()));
+// unset test=true parameter
+BaseTest.setUpConfigForMiniCluster(conf, new ReadOnlyProps(
+ImmutableMap. 
of(QueryServices.EXTRA_JDBC_ARGUMENTS_ATTRIB, "")));
 
 final HBaseTestingUtility testUtil = new HBaseTestingUtility(conf);
 testUtil.startMiniCluster();



[phoenix] branch 4.x-HBase-1.5 updated: PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.

2019-12-19 Thread larsh
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/4.x-HBase-1.5 by this push:
 new 6e20b4f  PHOENIX-5617 Allow using the server side JDBC client in 
Phoenix Sandbox.
6e20b4f is described below

commit 6e20b4f9a4fa4d68c60cce104ba15d58ec5ebe9d
Author: Lars Hofhansl 
AuthorDate: Thu Dec 19 00:55:04 2019 -0800

PHOENIX-5617 Allow using the server side JDBC client in Phoenix Sandbox.
---
 phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java 
b/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
index ec4e920..102e97c 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/Sandbox.java
@@ -18,10 +18,12 @@
 package org.apache.phoenix;
 
 import com.google.common.collect.ImmutableMap;
+
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseTestingUtility;
 import org.apache.phoenix.query.BaseTest;
+import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.util.ReadOnlyProps;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -37,7 +39,9 @@ public class Sandbox {
 public static void main(String[] args) throws Exception {
 System.out.println("Starting Phoenix sandbox");
 Configuration conf = HBaseConfiguration.create();
-BaseTest.setUpConfigForMiniCluster(conf, new 
ReadOnlyProps(ImmutableMap.of()));
+// unset test=true parameter
+BaseTest.setUpConfigForMiniCluster(conf, new ReadOnlyProps(
+ImmutableMap. 
of(QueryServices.EXTRA_JDBC_ARGUMENTS_ATTRIB, "")));
 
 final HBaseTestingUtility testUtil = new HBaseTestingUtility(conf);
 testUtil.startMiniCluster();