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

2019-12-22 Thread Apache Jenkins Server
See 


Changes:

[larsh] PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.


--
[...truncated 103.52 KB...]

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   
MutableIndexSplitReverseScanIT>ParallelStatsDisabledIT.doSetup:60->BaseTest.setUpTestDriver:515->BaseTest.setUpTestDriver:520->BaseTest.checkClusterInitialized:434->BaseTest.setUpTestCluster:448->BaseTest.initMiniCluster:549
 » Runtime
[INFO] 
[ERROR] Tests run: 3704, Failures: 0, Errors: 1, 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.003 
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] Running org.apache.phoenix.end2end.ConcurrentMutationsExtendedIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.729 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Running org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.661 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.681 s 
- in org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.662 s 
- in org.apache.phoenix.end2end.ContextClassloaderIT
[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.IndexExtendedIT
[INFO] Running org.apache.phoenix.end2end.IndexBuildTimestampIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.387 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 147.526 
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: 95.569 
s - in org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 23.911 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: 272.343 
s - in org.apache.phoenix.end2end.ConcurrentMutationsExtendedIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 186.883 
s - in org.apache.phoenix.end2end.IndexBuildTimestampIT
[INFO] Running org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 194.899 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.122 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 93.301 s 
- in org.apache.phoenix.end2end.IndexScrutinyToolForTenantIT
[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.49 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.551 s 
- in org.apache.phoenix.end2end.OrderByWithServerMemor

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

2019-12-22 Thread Apache Jenkins Server
See 




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

2019-12-22 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


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

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

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


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 | Master #2608

2019-12-22 Thread Apache Jenkins Server
See 


Changes:

[larsh] PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.


--
[...truncated 114.42 KB...]
[INFO] Tests run: 50, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 397.421 
s - in org.apache.phoenix.tx.TxCheckpointIT
[INFO] Tests run: 66, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 464.968 
s - in org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   
DropColumnIT>ParallelStatsDisabledIT.doSetup:60->BaseTest.setUpTestDriver:515->BaseTest.setUpTestDriver:520->BaseTest.checkClusterInitialized:434->BaseTest.setUpTestCluster:448->BaseTest.initMiniCluster:549
 » Runtime
[INFO] 
[ERROR] Tests run: 3709, Failures: 0, Errors: 1, 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.005 
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.659 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running org.apache.phoenix.end2end.ConcurrentMutationsExtendedIT
[INFO] Running org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Running org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 48.36 s 
- in org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.239 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.01 s - 
in org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Running org.apache.phoenix.end2end.CostBasedDecisionIT
[INFO] Running org.apache.phoenix.end2end.DropSchemaIT
[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: 18.745 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 134.645 
s - in org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.IndexRebuildTaskIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.939 s 
- in org.apache.phoenix.end2end.IndexRebuildTaskIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 104.297 
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] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 173.635 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 180.761 
s - in org.apache.phoenix.end2end.IndexBuildTimestampIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 61.323 s 
- in org.apache.phoenix.end2end.IndexScrutinyToolForTenantIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.215 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Running org.apache.phoenix.end2end.MigrateSystemTablesToSystemNamespaceIT
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 298.637 
s - in org.apache.phoenix.end2end.ConcurrentMutationsExtendedIT
[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.09 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running 
org.apache.phoenix.end2end.OrderByWithSe

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

2019-12-22 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 25cc076  PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
25cc076 is described below

commit 25cc0764bc7c69511df61e777f851b963f4798fb
Author: Lars Hofhansl 
AuthorDate: Sun Dec 22 04:27:50 2019 -0800

PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.

This reverts commit 4ff6da4a00941052e5c81d79ed21b0aca9e49c44.
---
 .../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-22 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 71fdb77  PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
71fdb77 is described below

commit 71fdb77d0143eb9db0f04da96576830a6e0e8e02
Author: Lars Hofhansl 
AuthorDate: Sun Dec 22 04:27:16 2019 -0800

PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.

This reverts commit 0c5f0d6d308b3c9be9537e9a0915f0ee19f2271c.
---
 .../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-22 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 80c912e  PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
80c912e is described below

commit 80c912e1f88ca6bd39e7c2f3dcee1e2d089535dc
Author: Lars Hofhansl 
AuthorDate: Sun Dec 22 04:26:41 2019 -0800

PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.

This reverts commit 95fd8e0d1abbb763f59e30d569b9c002f7253ada.
---
 .../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-22 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 9a948d0  PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.
9a948d0 is described below

commit 9a948d0cd654045d68f102c9d3e0f527c7b77b5d
Author: Lars Hofhansl 
AuthorDate: Sun Dec 22 04:25:45 2019 -0800

PHOENIX-5616 Speed up ParameterizedIndexUpgradeToolIT.

This reverts commit 02d5935cbbd75ad2491413042e5010bb76ed57c8.
---
 .../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



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

2019-12-22 Thread Apache Jenkins Server
See 


Changes:


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

[Phoenix_Compile_Compat_wHBase] $ /bin/bash /tmp/jenkins590965802688894.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) 386349
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:   98949828 kB
MemFree:12040860 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  707G  2.8T  21% /
tmpfs48G 0   48G   0% /dev/shm
tmpfs   5.0M 0  5.0M   0% /run/lock
tmpfs48G 0   48G   0% /sys/fs/cgroup
/dev/sda2   473M  159M  290M  36% /boot
tmpfs   9.5G  4.0K  9.5G   1% /run/user/910
/dev/loop1   58M   58M 0 100% /snap/snapcraft/3440
/dev/loop2   55M   55M 0 100% /snap/lxd/12317
/dev/loop6   59M   59M 0 100% /snap/snapcraft/3720
/dev/loop7   55M   55M 0 100% /snap/lxd/12631
/dev/loop5   55M   55M 0 100% /snap/core18/1279
/dev/loop8   90M   90M 0 100% /snap/core/8213
/dev/loop4   90M   90M 0 100% /snap/core/8268
/dev/loop9   55M   55M 0 100% /snap/core18/1288
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'...
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