Apache-Phoenix | 5.1 | HBase 2.2 | Build #158 SUCCESS

2022-08-16 Thread Apache Jenkins Server

5.1 branch  HBase 2.2  build #158 status SUCCESS
Build #158 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-mulitbranch/job/5.1/158/


Apache-Phoenix | 5.1 | HBase 2.4 | Build #158 SUCCESS

2022-08-16 Thread Apache Jenkins Server

5.1 branch  HBase 2.4  build #158 status SUCCESS
Build #158 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-mulitbranch/job/5.1/158/


Apache-Phoenix | 5.1 | HBase 2.3 | Build #158 FAILURE

2022-08-16 Thread Apache Jenkins Server

5.1 branch  HBase 2.3  build #158 status FAILURE
Build #158 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-mulitbranch/job/5.1/158/


[phoenix-connectors] 01/01: PHOENIX-6770 set Log4j dependencies to provided

2022-08-16 Thread richardantal
This is an automated email from the ASF dual-hosted git repository.

richardantal pushed a commit to branch PHOENIX-6770
in repository https://gitbox.apache.org/repos/asf/phoenix-connectors.git

commit 79eea1a7b058bbb33e44a0ac4b47056cfff4fa5b
Author: Richard Antal 
AuthorDate: Tue Aug 16 18:43:43 2022 +0200

PHOENIX-6770 set Log4j dependencies to provided
---
 phoenix-hive-base/phoenix4-hive-shaded/pom.xml   |  6 ++
 phoenix-hive-base/phoenix5-hive-shaded/pom.xml   |  6 ++
 phoenix-pig-base/phoenix4-pig-shaded/pom.xml | 11 +++
 phoenix-pig-base/phoenix5-pig-shaded/pom.xml | 11 +++
 phoenix-spark-base/phoenix4-spark-shaded/pom.xml |  6 ++
 phoenix-spark-base/phoenix5-spark-shaded/pom.xml |  6 ++
 phoenix5-spark3-shaded/pom.xml   |  5 +
 pom.xml  |  5 +
 8 files changed, 56 insertions(+)

diff --git a/phoenix-hive-base/phoenix4-hive-shaded/pom.xml 
b/phoenix-hive-base/phoenix4-hive-shaded/pom.xml
index b477449..1e301a5 100644
--- a/phoenix-hive-base/phoenix4-hive-shaded/pom.xml
+++ b/phoenix-hive-base/phoenix4-hive-shaded/pom.xml
@@ -103,6 +103,12 @@ adding the provided dependencies -->
   ${zookeeper.version}
   provided
 
+
+
+  log4j
+  log4j
+  provided
+
   
 
   
diff --git a/phoenix-hive-base/phoenix5-hive-shaded/pom.xml 
b/phoenix-hive-base/phoenix5-hive-shaded/pom.xml
index 25996f7..67211e9 100644
--- a/phoenix-hive-base/phoenix5-hive-shaded/pom.xml
+++ b/phoenix-hive-base/phoenix5-hive-shaded/pom.xml
@@ -172,6 +172,12 @@
   ${zookeeper.version}
   provided
 
+
+
+  log4j
+  log4j
+  provided
+
   
   
   
diff --git a/phoenix-pig-base/phoenix4-pig-shaded/pom.xml 
b/phoenix-pig-base/phoenix4-pig-shaded/pom.xml
index 4ab1ddb..c825c9f 100644
--- a/phoenix-pig-base/phoenix4-pig-shaded/pom.xml
+++ b/phoenix-pig-base/phoenix4-pig-shaded/pom.xml
@@ -68,5 +68,16 @@
   phoenix-hbase-compat-${hbase.compat.version}
   runtime
 
+
+
+  org.slf4j
+  slf4j-log4j12
+  provided
+
+
+  log4j
+  log4j
+  provided
+
   
 
\ No newline at end of file
diff --git a/phoenix-pig-base/phoenix5-pig-shaded/pom.xml 
b/phoenix-pig-base/phoenix5-pig-shaded/pom.xml
index 675ea27..19e6845 100644
--- a/phoenix-pig-base/phoenix5-pig-shaded/pom.xml
+++ b/phoenix-pig-base/phoenix5-pig-shaded/pom.xml
@@ -79,6 +79,17 @@
   phoenix-hbase-compat-${hbase.compat.version}
   runtime
 
+
+
+  org.slf4j
+  slf4j-log4j12
+  provided
+
+
+  log4j
+  log4j
+  provided
+
   
 
 
\ No newline at end of file
diff --git a/phoenix-spark-base/phoenix4-spark-shaded/pom.xml 
b/phoenix-spark-base/phoenix4-spark-shaded/pom.xml
index 0d8561a..3bae294 100644
--- a/phoenix-spark-base/phoenix4-spark-shaded/pom.xml
+++ b/phoenix-spark-base/phoenix4-spark-shaded/pom.xml
@@ -42,6 +42,12 @@
   phoenix-hbase-compat-${hbase.compat.version}
   runtime
 
+
+
+  log4j
+  log4j
+  provided
+
   
 
   
diff --git a/phoenix-spark-base/phoenix5-spark-shaded/pom.xml 
b/phoenix-spark-base/phoenix5-spark-shaded/pom.xml
index 1b6c49c..5beddc0 100644
--- a/phoenix-spark-base/phoenix5-spark-shaded/pom.xml
+++ b/phoenix-spark-base/phoenix5-spark-shaded/pom.xml
@@ -52,6 +52,12 @@
   phoenix-hbase-compat-${hbase.compat.version}
   runtime
 
+
+
+  log4j
+  log4j
+  provided
+
   
 
   
diff --git a/phoenix5-spark3-shaded/pom.xml b/phoenix5-spark3-shaded/pom.xml
index 012b1ef..5e881d6 100644
--- a/phoenix5-spark3-shaded/pom.xml
+++ b/phoenix5-spark3-shaded/pom.xml
@@ -121,6 +121,11 @@
   slf4j-log4j12
   provided
 
+
+  log4j
+  log4j
+  provided
+
 
 
 
diff --git a/pom.xml b/pom.xml
index ab4e005..5da7f74 100644
--- a/pom.xml
+++ b/pom.xml
@@ -883,6 +883,11 @@
 slf4j-log4j12
 ${slf4j.version}
   
+  
+log4j
+log4j
+${log4j.version}
+  
   
 org.apache.pig
 pig



[phoenix-connectors] branch PHOENIX-6770 created (now 79eea1a)

2022-08-16 Thread richardantal
This is an automated email from the ASF dual-hosted git repository.

richardantal pushed a change to branch PHOENIX-6770
in repository https://gitbox.apache.org/repos/asf/phoenix-connectors.git


  at 79eea1a  PHOENIX-6770 set Log4j dependencies to provided

This branch includes the following new commits:

 new 79eea1a  PHOENIX-6770 set Log4j dependencies to provided

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.




[phoenix] branch 5.1 updated: PHOENIX-6771 Allow only "squash and merge" from GitHub UI

2022-08-16 Thread stoty
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/5.1 by this push:
 new d0959a3362 PHOENIX-6771 Allow only "squash and merge" from GitHub UI
d0959a3362 is described below

commit d0959a3362a03fc8b9a75fd448038e5fb9278606
Author: Istvan Toth 
AuthorDate: Tue Aug 16 09:06:50 2022 +0200

PHOENIX-6771 Allow only "squash and merge" from GitHub UI
---
 .asf.yaml | 14 ++
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 22e3eab02d..2a9f642fa7 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -22,7 +22,13 @@
 # changes with dev@ before committing.
 
 notifications:
-commits:  commits@phoenix.apache.org
-issues:   iss...@phoenix.apache.org
-pullrequests: iss...@phoenix.apache.org
-jira_options: link label comment
+  commits: commits@phoenix.apache.org
+  issues: iss...@phoenix.apache.org
+  pullrequests: iss...@phoenix.apache.org
+  jira_options: link label comment
+
+github:
+  enabled_merge_buttons:
+squash: true
+merge: false
+rebase: false



Apache-Phoenix | master | HBase 2.4 | Build #447 FAILURE

2022-08-16 Thread Apache Jenkins Server

master branch  HBase 2.4  build #447 status FAILURE
Build #447 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-mulitbranch/job/master/447/


Apache-Phoenix-Connectors | Build #63 ABORTED

2022-08-16 Thread Apache Jenkins Server

build #63 status ABORTED
Build #63 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-connectors/63/


Apache-Phoenix-Connectors | Build #62 ABORTED

2022-08-16 Thread Apache Jenkins Server

build #62 status ABORTED
Build #62 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-connectors/62/


Apache-Phoenix | master | HBase 2.3 | Build #447 SUCCESS

2022-08-16 Thread Apache Jenkins Server

master branch  HBase 2.3  build #447 status SUCCESS
Build #447 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-mulitbranch/job/master/447/


Apache-Phoenix | 5.1 | HBase 2.1 | Build #157 FAILURE

2022-08-16 Thread Apache Jenkins Server

5.1 branch  HBase 2.1  build #157 status FAILURE
Build #157 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-mulitbranch/job/5.1/157/


[phoenix-queryserver] branch master updated (f7fd09d -> 0c1b57e)

2022-08-16 Thread stoty
This is an automated email from the ASF dual-hosted git repository.

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


from f7fd09d  PHOENIX-6762 Phoenix QueryServer cannot run correctly with 
python 3.8+
 add 0c1b57e  PHOENIX-6771 Allow only "squash and merge" from GitHub UI

No new revisions were added by this update.

Summary of changes:
 .../replace_jars_with_symlinks.sh => .asf.yaml | 35 +++---
 1 file changed, 18 insertions(+), 17 deletions(-)
 copy phoenix-queryserver-assembly/src/scripts/replace_jars_with_symlinks.sh => 
.asf.yaml (55%)
 mode change 100755 => 100644



[phoenix] branch master updated: PHOENIX-6771 Allow only "squash and merge" from GitHub UI

2022-08-16 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.git


The following commit(s) were added to refs/heads/master by this push:
 new 2497b173bf PHOENIX-6771 Allow only "squash and merge" from GitHub UI
2497b173bf is described below

commit 2497b173bf1aa8cee39cacba07fbbf006110f298
Author: Istvan Toth 
AuthorDate: Tue Aug 16 09:06:50 2022 +0200

PHOENIX-6771 Allow only "squash and merge" from GitHub UI
---
 .asf.yaml | 14 ++
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 22e3eab02d..2a9f642fa7 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -22,7 +22,13 @@
 # changes with dev@ before committing.
 
 notifications:
-commits:  commits@phoenix.apache.org
-issues:   iss...@phoenix.apache.org
-pullrequests: iss...@phoenix.apache.org
-jira_options: link label comment
+  commits: commits@phoenix.apache.org
+  issues: iss...@phoenix.apache.org
+  pullrequests: iss...@phoenix.apache.org
+  jira_options: link label comment
+
+github:
+  enabled_merge_buttons:
+squash: true
+merge: false
+rebase: false



Apache-Phoenix | 5.1 | HBase 2.2 | Build #157 SUCCESS

2022-08-16 Thread Apache Jenkins Server

5.1 branch  HBase 2.2  build #157 status SUCCESS
Build #157 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-mulitbranch/job/5.1/157/


[phoenix-thirdparty] branch master updated: PHOENIX-6771 Allow only "squash and merge" from GitHub UI

2022-08-16 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-thirdparty.git


The following commit(s) were added to refs/heads/master by this push:
 new fbfbabe  PHOENIX-6771 Allow only "squash and merge" from GitHub UI
fbfbabe is described below

commit fbfbabed7415a00db00964298efc0314fb1c7136
Author: Istvan Toth 
AuthorDate: Tue Aug 16 10:12:12 2022 +0200

PHOENIX-6771 Allow only "squash and merge" from GitHub UI
---
 .asf.yaml | 34 ++
 1 file changed, 34 insertions(+)

diff --git a/.asf.yaml b/.asf.yaml
new file mode 100644
index 000..84aef84
--- /dev/null
+++ b/.asf.yaml
@@ -0,0 +1,34 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# This file controls the integration of the Phoenix Thirdpary repo with ASF
+# infrastructure. Refer to
+# https://cwiki.apache.org/confluence/display/INFRA/git+-+.asf.yaml+features
+# for details. Be careful when changing the contents of this file since it
+# may affect many developers of the project and make sure to discuss the
+# changes with dev@ before committing.
+
+notifications:
+  commits: commits@phoenix.apache.org
+  issues: iss...@phoenix.apache.org
+  pullrequests: iss...@phoenix.apache.org
+  jira_options: link label comment
+
+github:
+  enabled_merge_buttons:
+squash: true
+merge: false
+rebase: false



[phoenix-omid] branch master updated (fcaa4724 -> f6676c46)

2022-08-16 Thread stoty
This is an automated email from the ASF dual-hosted git repository.

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


from fcaa4724 Merge pull request #113 from apurtell/OMID-228
 add f6676c46 OMID-229 Allow only "squash and merge" from GitHub UI

No new revisions were added by this update.

Summary of changes:
 RELEASENOTES.md => .asf.yaml | 36 +++-
 1 file changed, 19 insertions(+), 17 deletions(-)
 copy RELEASENOTES.md => .asf.yaml (52%)



[phoenix-connectors] branch master updated: PHOENIX-6771 Allow only "squash and merge" from GitHub UI

2022-08-16 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-connectors.git


The following commit(s) were added to refs/heads/master by this push:
 new f792d33  PHOENIX-6771 Allow only "squash and merge" from GitHub UI
f792d33 is described below

commit f792d33bd5dc47a8795565cdf35c2529444a84b1
Author: Istvan Toth 
AuthorDate: Tue Aug 16 09:10:03 2022 +0200

PHOENIX-6771 Allow only "squash and merge" from GitHub UI
---
 .asf.yaml | 16 +++-
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index eeed404..26eaad3 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# This file controls the integration of the Phoenix Connectors subproject 
+# This file controls the integration of the Phoenix Connectors repo
 # with ASF infrastructure. Refer to
 # https://cwiki.apache.org/confluence/display/INFRA/git+-+.asf.yaml+features
 # for details. Be careful when changing the contents of this file since it
@@ -22,7 +22,13 @@
 # changes with dev@ before committing.
 
 notifications:
-commits:  commits@phoenix.apache.org
-issues:   iss...@phoenix.apache.org
-pullrequests: iss...@phoenix.apache.org
-jira_options: link label comment
+  commits: commits@phoenix.apache.org
+  issues: iss...@phoenix.apache.org
+  pullrequests: iss...@phoenix.apache.org
+  jira_options: link label comment
+
+github:
+  enabled_merge_buttons:
+squash: true
+merge: false
+rebase: false



Apache-Phoenix | 5.1 | HBase 2.4 | Build #157 SUCCESS

2022-08-16 Thread Apache Jenkins Server

5.1 branch  HBase 2.4  build #157 status SUCCESS
Build #157 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-mulitbranch/job/5.1/157/


Apache-Phoenix | 5.1 | HBase 2.3 | Build #157 SUCCESS

2022-08-16 Thread Apache Jenkins Server

5.1 branch  HBase 2.3  build #157 status SUCCESS
Build #157 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-mulitbranch/job/5.1/157/


[phoenix-connectors] branch master updated: PHOENIX-6772 org.apache.phoenix.spark.DataSourceApiIT.DataSourceApiIT is missing ASF header

2022-08-16 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-connectors.git


The following commit(s) were added to refs/heads/master by this push:
 new c461308  PHOENIX-6772 
org.apache.phoenix.spark.DataSourceApiIT.DataSourceApiIT is missing ASF header
c461308 is described below

commit c461308e53e1295d95d2b5e070bdf96208b25005
Author: Istvan Toth 
AuthorDate: Tue Aug 16 11:33:11 2022 +0200

PHOENIX-6772 org.apache.phoenix.spark.DataSourceApiIT.DataSourceApiIT is 
missing ASF header
---
 .../java/org/apache/phoenix/spark/DataSourceApiIT.java | 18 +-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git 
a/phoenix5-spark3-it/src/it/java/org/apache/phoenix/spark/DataSourceApiIT.java 
b/phoenix5-spark3-it/src/it/java/org/apache/phoenix/spark/DataSourceApiIT.java
index bbf05e1..dbcf45f 100644
--- 
a/phoenix5-spark3-it/src/it/java/org/apache/phoenix/spark/DataSourceApiIT.java
+++ 
b/phoenix5-spark3-it/src/it/java/org/apache/phoenix/spark/DataSourceApiIT.java
@@ -1,6 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.phoenix.spark;
 
-import org.apache.phoenix.end2end.BaseQueryIT;
 import org.apache.phoenix.end2end.ParallelStatsDisabledIT;
 import org.apache.spark.SparkConf;
 import org.apache.spark.api.java.JavaSparkContext;



Apache-Phoenix | master | HBase 2.3 | Build #446 FAILURE

2022-08-16 Thread Apache Jenkins Server

master branch  HBase 2.3  build #446 status FAILURE
Build #446 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-mulitbranch/job/master/446/


Apache-Phoenix | master | HBase 2.4 | Build #446 SUCCESS

2022-08-16 Thread Apache Jenkins Server

master branch  HBase 2.4  build #446 status SUCCESS
Build #446 https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-mulitbranch/job/master/446/


[phoenix] branch 5.1 updated: PHOENIX-6653 Add upgrade tests based on HBase snapshots

2022-08-16 Thread richardantal
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/5.1 by this push:
 new 0ba34c74f3 PHOENIX-6653 Add upgrade tests based on HBase snapshots
0ba34c74f3 is described below

commit 0ba34c74f341443c1ca54e77300b7828c4365c26
Author: Richard Antal 
AuthorDate: Mon Aug 15 16:26:20 2022 +0200

PHOENIX-6653 Add upgrade tests based on HBase snapshots
---
 phoenix-core/pom.xml   |   5 ++
 ...plateIT.java => LoadSystemTableSnapshotIT.java} |  86 +
 .../it/resources/snapshots4_7/snapshots47.tar.gz   | Bin 0 -> 76288 bytes
 pom.xml|   6 ++
 4 files changed, 83 insertions(+), 14 deletions(-)

diff --git a/phoenix-core/pom.xml b/phoenix-core/pom.xml
index 5969913fef..bf33f88a7c 100644
--- a/phoenix-core/pom.xml
+++ b/phoenix-core/pom.xml
@@ -494,6 +494,11 @@
   org.apache.commons
   commons-csv
 
+
+  org.apache.commons
+  commons-compress
+  test
+
 
   org.apache.commons
   commons-lang3
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/SnapshotTestTemplateIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/LoadSystemTableSnapshotIT.java
similarity index 61%
rename from 
phoenix-core/src/it/java/org/apache/phoenix/end2end/SnapshotTestTemplateIT.java
rename to 
phoenix-core/src/it/java/org/apache/phoenix/end2end/LoadSystemTableSnapshotIT.java
index 767baf2fe5..c8c0a95a99 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/SnapshotTestTemplateIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/LoadSystemTableSnapshotIT.java
@@ -20,27 +20,43 @@ package org.apache.phoenix.end2end;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
 
+
+import java.io.File;
 import java.io.IOException;
+
+import java.net.URL;
+
 import java.util.HashMap;
+
 import java.util.Map;
 import java.util.Map.Entry;
 
 import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.fs.Path;
+
 import org.apache.hadoop.hbase.snapshot.ExportSnapshot;
 import org.apache.hadoop.hbase.util.CommonFSUtils;
+
 import org.apache.phoenix.query.BaseTest;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.query.QueryServicesOptions;
 import org.apache.phoenix.thirdparty.com.google.common.collect.Maps;
 import org.apache.phoenix.util.ReadOnlyProps;
 import org.junit.BeforeClass;
-import org.junit.Ignore;
+
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
+import org.apache.commons.compress.archivers.tar.TarArchiveInputStream;
+import org.apache.commons.compress.utils.IOUtils;
+
+
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+
 /**
  * This is a not a standard IT.
  * It is starting point for writing ITs that load specific tables from a 
snapshot.
@@ -49,19 +65,43 @@ import org.slf4j.LoggerFactory;
  * (or even being committed to the ASF branches)
  */
 
-@Ignore
 @Category(NeedsOwnMiniClusterTest.class)
-public class SnapshotTestTemplateIT extends BaseTest {
+public class LoadSystemTableSnapshotIT extends BaseTest {
 
 private static final Logger LOGGER = LoggerFactory.getLogger(
-SnapshotTestTemplateIT.class);
+LoadSystemTableSnapshotIT.class);
+
+public static final String SNAPSHOT_DIR = "snapshots4_7/";
+public static String rootDir;
 
 private static final HashMap SNAPSHOTS_TO_LOAD;
+//private static final HashMap SNAPSHOTS_TO_RESTORE;
 
 static {
 SNAPSHOTS_TO_LOAD = new HashMap<>();
 //Add any HBase tables, including Phoenix System tables
-SNAPSHOTS_TO_LOAD.put("SYSTEM.CATALOG_SNAPSHOT", 
"/path/to/local/snapshot_dir");
+
+SNAPSHOTS_TO_LOAD.put("SYSTEM.CATALOG_SNAPSHOT", "SYSTEM.CATALOG");
+SNAPSHOTS_TO_LOAD.put("SYSTEM.FUNCTION_SNAPSHOT", "SYSTEM.FUNCTION");
+SNAPSHOTS_TO_LOAD.put("SYSTEM.SEQUENCE_SNAPSHOT", "SYSTEM.SEQUENCE");
+SNAPSHOTS_TO_LOAD.put("SYSTEM.STATS_SNAPSHOT", "SYSTEM.STATS");
+}
+
+private static void decompress(String in, File out) throws IOException {
+try (TarArchiveInputStream fin = new TarArchiveInputStream(new 
FileInputStream(in))){
+TarArchiveEntry entry;
+while ((entry = fin.getNextTarEntry()) != null) {
+if (entry.isDirectory()) {
+continue;
+}
+File curfile = new File(out, entry.getName());
+File parent = curfile.getParentFile();
+if (!parent.exists()) {
+parent.mkdirs();
+}
+IOUtils.copy(fin, new FileOutputStream(curfile));
+

[phoenix] branch master updated (c6c7a12426 -> fed272836f)

2022-08-16 Thread richardantal
This is an automated email from the ASF dual-hosted git repository.

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


from c6c7a12426 PHOENIX-6754 Upgrades from pre 4.10 versions are broken 
again
 add fed272836f PHOENIX-6653 Add upgrade tests based on HBase snapshots

No new revisions were added by this update.

Summary of changes:
 phoenix-core/pom.xml   |   5 ++
 ...plateIT.java => LoadSystemTableSnapshotIT.java} |  86 +
 .../it/resources/snapshots4_7/snapshots47.tar.gz   | Bin 0 -> 76288 bytes
 .../phoenix/jdbc/PhoenixDatabaseMetaData.java  |   1 +
 .../java/org/apache/phoenix/util/UpgradeUtil.java  |  22 --
 pom.xml|   6 ++
 6 files changed, 100 insertions(+), 20 deletions(-)
 rename 
phoenix-core/src/it/java/org/apache/phoenix/end2end/{SnapshotTestTemplateIT.java
 => LoadSystemTableSnapshotIT.java} (61%)
 create mode 100644 
phoenix-core/src/it/resources/snapshots4_7/snapshots47.tar.gz



[phoenix] branch master updated (394f47222b -> c6c7a12426)

2022-08-16 Thread richardantal
This is an automated email from the ASF dual-hosted git repository.

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


from 394f47222b PHOENIX-6766 Fix failure of sqlline due to conflicting 
jline dependency pulled from Hadoop 3.3.
 add c6c7a12426 PHOENIX-6754 Upgrades from pre 4.10 versions are broken 
again

No new revisions were added by this update.

Summary of changes:
 .../apache/phoenix/schema/ColumnMetaDataOps.java| 21 +++--
 .../org/apache/phoenix/schema/MetaDataClient.java   |  4 ++--
 2 files changed, 17 insertions(+), 8 deletions(-)