[phoenix] branch master updated: modify index state based on client version to support old clients

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

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


The following commit(s) were added to refs/heads/master by this push:
 new 3bd426f  modify index state based on client version to support old 
clients
3bd426f is described below

commit 3bd426f10337b6e109ab7394bd4a4023039fd0e8
Author: kiran.maturi 
AuthorDate: Wed Jan 9 11:36:26 2019 +0530

modify index state based on client version to support old clients
---
 .../index/InvalidIndexStateClientSideIT.java   | 144 +
 .../phoenix/coprocessor/MetaDataEndpointImpl.java  |  41 --
 2 files changed, 174 insertions(+), 11 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
new file mode 100644
index 000..5c1b4b5
--- /dev/null
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
@@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.phoenix.end2end.index;
+
+import static 
org.apache.phoenix.coprocessor.MetaDataProtocol.PHOENIX_MAJOR_VERSION;
+import static 
org.apache.phoenix.coprocessor.MetaDataProtocol.PHOENIX_PATCH_NUMBER;
+import static org.junit.Assert.assertEquals;
+
+import java.io.IOException;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.util.Map;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.hadoop.hbase.HConstants;
+import org.apache.hadoop.hbase.client.Table;
+import org.apache.hadoop.hbase.client.coprocessor.Batch;
+import org.apache.hadoop.hbase.ipc.CoprocessorRpcUtils.BlockingRpcCallback;
+import org.apache.hadoop.hbase.ipc.ServerRpcController;
+import org.apache.hadoop.hbase.util.ByteStringer;
+import org.apache.phoenix.coprocessor.MetaDataProtocol.MutationCode;
+import org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest;
+import 
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse;
+import org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataService;
+import org.apache.phoenix.end2end.ParallelStatsDisabledIT;
+import org.apache.phoenix.hbase.index.util.VersionUtil;
+import org.apache.phoenix.jdbc.PhoenixConnection;
+import org.apache.phoenix.jdbc.PhoenixDatabaseMetaData;
+import org.apache.phoenix.query.ConnectionQueryServices;
+import org.apache.phoenix.schema.PIndexState;
+import org.apache.phoenix.schema.PName;
+import org.apache.phoenix.schema.types.PVarchar;
+import org.apache.phoenix.util.ByteUtil;
+import org.apache.phoenix.util.Closeables;
+import org.apache.phoenix.util.EnvironmentEdgeManager;
+import org.apache.phoenix.util.IndexUtil;
+import org.apache.phoenix.util.SchemaUtil;
+import org.junit.Test;
+
+public class InvalidIndexStateClientSideIT extends ParallelStatsDisabledIT {
+private static final Log LOG = 
LogFactory.getLog(InvalidIndexStateClientSideIT.class);
+
+@Test
+public void testCachedConnections() throws Throwable {
+final String schemaName = generateUniqueName();
+final String tableName = generateUniqueName();
+final String fullTableName = SchemaUtil.getTableName(schemaName, 
tableName);
+final String indexName = generateUniqueName();
+final String fullIndexName = SchemaUtil.getTableName(schemaName, 
indexName);
+final Connection conn = DriverManager.getConnection(getUrl());
+
+// create table and indices
+String createTableSql =
+"CREATE TABLE " + fullTableName
++ "(org_id VARCHAR NOT NULL PRIMARY KEY, v1 INTEGER, 
v2 INTEGER, v3 INTEGER)";
+conn.createStatement().execute(createTableSql);
+conn.createStatement()
+.execute("CREATE INDEX " + indexName + " ON " + fullTableName 
+ "(v1)");
+conn.commit();
+PhoenixConnection phoenixConn = conn.unwrap(PhoenixConnection.class);
+ConnectionQueryServices queryServices = phoenixConn.getQueryServices();
+Table m

[phoenix] branch 4.x-HBase-1.4 updated: PHOENIX-5073 modify index state based on client version to support old clients

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

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


The following commit(s) were added to refs/heads/4.x-HBase-1.4 by this push:
 new 4a745a7  PHOENIX-5073 modify index state based on client version to 
support old clients
4a745a7 is described below

commit 4a745a7bbf200ac4a5051bd592c6f1f759d5a124
Author: kiran.maturi 
AuthorDate: Fri Dec 28 14:46:19 2018 +0530

PHOENIX-5073 modify index state based on client version to support old 
clients
---
 .../index/InvalidIndexStateClientSideIT.java   | 145 +
 .../phoenix/coprocessor/MetaDataEndpointImpl.java  |  41 --
 2 files changed, 175 insertions(+), 11 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
new file mode 100644
index 000..7052ade
--- /dev/null
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
@@ -0,0 +1,145 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.phoenix.end2end.index;
+
+import static 
org.apache.phoenix.coprocessor.MetaDataProtocol.PHOENIX_MAJOR_VERSION;
+import static 
org.apache.phoenix.coprocessor.MetaDataProtocol.PHOENIX_PATCH_NUMBER;
+import static org.junit.Assert.assertEquals;
+
+import java.io.IOException;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.util.Map;
+
+import org.apache.hadoop.hbase.HConstants;
+import org.apache.hadoop.hbase.client.HTableInterface;
+import org.apache.hadoop.hbase.client.coprocessor.Batch;
+import org.apache.hadoop.hbase.ipc.BlockingRpcCallback;
+import org.apache.hadoop.hbase.ipc.ServerRpcController;
+import org.apache.hadoop.hbase.util.ByteStringer;
+import org.apache.phoenix.coprocessor.MetaDataProtocol.MutationCode;
+import org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest;
+import 
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse;
+import org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataService;
+import org.apache.phoenix.end2end.ParallelStatsDisabledIT;
+import org.apache.phoenix.hbase.index.util.VersionUtil;
+import org.apache.phoenix.jdbc.PhoenixConnection;
+import org.apache.phoenix.jdbc.PhoenixDatabaseMetaData;
+import org.apache.phoenix.query.ConnectionQueryServices;
+import org.apache.phoenix.schema.PIndexState;
+import org.apache.phoenix.schema.PName;
+import org.apache.phoenix.schema.types.PVarchar;
+import org.apache.phoenix.util.ByteUtil;
+import org.apache.phoenix.util.Closeables;
+import org.apache.phoenix.util.EnvironmentEdgeManager;
+import org.apache.phoenix.util.IndexUtil;
+import org.apache.phoenix.util.SchemaUtil;
+import org.junit.Test;
+
+import com.sun.org.apache.commons.logging.Log;
+import com.sun.org.apache.commons.logging.LogFactory;
+
+public class InvalidIndexStateClientSideIT extends ParallelStatsDisabledIT {
+private static final Log LOG = 
LogFactory.getLog(InvalidIndexStateClientSideIT.class);
+
+@Test
+public void testCachedConnections() throws Throwable {
+final String schemaName = generateUniqueName();
+final String tableName = generateUniqueName();
+final String fullTableName = SchemaUtil.getTableName(schemaName, 
tableName);
+final String indexName = generateUniqueName();
+final String fullIndexName = SchemaUtil.getTableName(schemaName, 
indexName);
+final Connection conn = DriverManager.getConnection(getUrl());
+
+// create table and indices
+String createTableSql =
+"CREATE TABLE " + fullTableName
++ "(org_id VARCHAR NOT NULL PRIMARY KEY, v1 INTEGER, 
v2 INTEGER, v3 INTEGER)";
+conn.createStatement().execute(createTableSql);
+conn.createStatement()
+.execute("CREATE INDEX " + indexName + " ON " + fullTableName 
+ "(v1)");
+conn.commit();
+PhoenixConnection phoenixConn = conn.unwrap(PhoenixConnection.class);
+ConnectionQueryServices queryServices 

[phoenix] branch 4.x-HBase-1.3 updated: PHOENIX-5073 modify index state based on client version to support old clients

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

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


The following commit(s) were added to refs/heads/4.x-HBase-1.3 by this push:
 new 0e01a15  PHOENIX-5073 modify index state based on client version to 
support old clients
0e01a15 is described below

commit 0e01a15acf02a2679a90d7f14870719480aa9adf
Author: kiran.maturi 
AuthorDate: Fri Dec 28 14:46:19 2018 +0530

PHOENIX-5073 modify index state based on client version to support old 
clients
---
 .../index/InvalidIndexStateClientSideIT.java   | 145 +
 .../phoenix/coprocessor/MetaDataEndpointImpl.java  |  41 --
 2 files changed, 175 insertions(+), 11 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
new file mode 100644
index 000..7052ade
--- /dev/null
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
@@ -0,0 +1,145 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.phoenix.end2end.index;
+
+import static 
org.apache.phoenix.coprocessor.MetaDataProtocol.PHOENIX_MAJOR_VERSION;
+import static 
org.apache.phoenix.coprocessor.MetaDataProtocol.PHOENIX_PATCH_NUMBER;
+import static org.junit.Assert.assertEquals;
+
+import java.io.IOException;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.util.Map;
+
+import org.apache.hadoop.hbase.HConstants;
+import org.apache.hadoop.hbase.client.HTableInterface;
+import org.apache.hadoop.hbase.client.coprocessor.Batch;
+import org.apache.hadoop.hbase.ipc.BlockingRpcCallback;
+import org.apache.hadoop.hbase.ipc.ServerRpcController;
+import org.apache.hadoop.hbase.util.ByteStringer;
+import org.apache.phoenix.coprocessor.MetaDataProtocol.MutationCode;
+import org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest;
+import 
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse;
+import org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataService;
+import org.apache.phoenix.end2end.ParallelStatsDisabledIT;
+import org.apache.phoenix.hbase.index.util.VersionUtil;
+import org.apache.phoenix.jdbc.PhoenixConnection;
+import org.apache.phoenix.jdbc.PhoenixDatabaseMetaData;
+import org.apache.phoenix.query.ConnectionQueryServices;
+import org.apache.phoenix.schema.PIndexState;
+import org.apache.phoenix.schema.PName;
+import org.apache.phoenix.schema.types.PVarchar;
+import org.apache.phoenix.util.ByteUtil;
+import org.apache.phoenix.util.Closeables;
+import org.apache.phoenix.util.EnvironmentEdgeManager;
+import org.apache.phoenix.util.IndexUtil;
+import org.apache.phoenix.util.SchemaUtil;
+import org.junit.Test;
+
+import com.sun.org.apache.commons.logging.Log;
+import com.sun.org.apache.commons.logging.LogFactory;
+
+public class InvalidIndexStateClientSideIT extends ParallelStatsDisabledIT {
+private static final Log LOG = 
LogFactory.getLog(InvalidIndexStateClientSideIT.class);
+
+@Test
+public void testCachedConnections() throws Throwable {
+final String schemaName = generateUniqueName();
+final String tableName = generateUniqueName();
+final String fullTableName = SchemaUtil.getTableName(schemaName, 
tableName);
+final String indexName = generateUniqueName();
+final String fullIndexName = SchemaUtil.getTableName(schemaName, 
indexName);
+final Connection conn = DriverManager.getConnection(getUrl());
+
+// create table and indices
+String createTableSql =
+"CREATE TABLE " + fullTableName
++ "(org_id VARCHAR NOT NULL PRIMARY KEY, v1 INTEGER, 
v2 INTEGER, v3 INTEGER)";
+conn.createStatement().execute(createTableSql);
+conn.createStatement()
+.execute("CREATE INDEX " + indexName + " ON " + fullTableName 
+ "(v1)");
+conn.commit();
+PhoenixConnection phoenixConn = conn.unwrap(PhoenixConnection.class);
+ConnectionQueryServices queryServices 

[phoenix] branch 4.x-HBase-1.2 updated: PHOENIX-5073 modify index state based on client version to support old clients

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

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


The following commit(s) were added to refs/heads/4.x-HBase-1.2 by this push:
 new defb57a  PHOENIX-5073 modify index state based on client version to 
support old clients
defb57a is described below

commit defb57a09a50c3038421688213a10754fcb2897d
Author: kiran.maturi 
AuthorDate: Fri Dec 28 14:46:19 2018 +0530

PHOENIX-5073 modify index state based on client version to support old 
clients
---
 .../index/InvalidIndexStateClientSideIT.java   | 145 +
 .../phoenix/coprocessor/MetaDataEndpointImpl.java  |  41 --
 2 files changed, 175 insertions(+), 11 deletions(-)

diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
new file mode 100644
index 000..7052ade
--- /dev/null
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/InvalidIndexStateClientSideIT.java
@@ -0,0 +1,145 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.phoenix.end2end.index;
+
+import static 
org.apache.phoenix.coprocessor.MetaDataProtocol.PHOENIX_MAJOR_VERSION;
+import static 
org.apache.phoenix.coprocessor.MetaDataProtocol.PHOENIX_PATCH_NUMBER;
+import static org.junit.Assert.assertEquals;
+
+import java.io.IOException;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.util.Map;
+
+import org.apache.hadoop.hbase.HConstants;
+import org.apache.hadoop.hbase.client.HTableInterface;
+import org.apache.hadoop.hbase.client.coprocessor.Batch;
+import org.apache.hadoop.hbase.ipc.BlockingRpcCallback;
+import org.apache.hadoop.hbase.ipc.ServerRpcController;
+import org.apache.hadoop.hbase.util.ByteStringer;
+import org.apache.phoenix.coprocessor.MetaDataProtocol.MutationCode;
+import org.apache.phoenix.coprocessor.generated.MetaDataProtos.GetTableRequest;
+import 
org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataResponse;
+import org.apache.phoenix.coprocessor.generated.MetaDataProtos.MetaDataService;
+import org.apache.phoenix.end2end.ParallelStatsDisabledIT;
+import org.apache.phoenix.hbase.index.util.VersionUtil;
+import org.apache.phoenix.jdbc.PhoenixConnection;
+import org.apache.phoenix.jdbc.PhoenixDatabaseMetaData;
+import org.apache.phoenix.query.ConnectionQueryServices;
+import org.apache.phoenix.schema.PIndexState;
+import org.apache.phoenix.schema.PName;
+import org.apache.phoenix.schema.types.PVarchar;
+import org.apache.phoenix.util.ByteUtil;
+import org.apache.phoenix.util.Closeables;
+import org.apache.phoenix.util.EnvironmentEdgeManager;
+import org.apache.phoenix.util.IndexUtil;
+import org.apache.phoenix.util.SchemaUtil;
+import org.junit.Test;
+
+import com.sun.org.apache.commons.logging.Log;
+import com.sun.org.apache.commons.logging.LogFactory;
+
+public class InvalidIndexStateClientSideIT extends ParallelStatsDisabledIT {
+private static final Log LOG = 
LogFactory.getLog(InvalidIndexStateClientSideIT.class);
+
+@Test
+public void testCachedConnections() throws Throwable {
+final String schemaName = generateUniqueName();
+final String tableName = generateUniqueName();
+final String fullTableName = SchemaUtil.getTableName(schemaName, 
tableName);
+final String indexName = generateUniqueName();
+final String fullIndexName = SchemaUtil.getTableName(schemaName, 
indexName);
+final Connection conn = DriverManager.getConnection(getUrl());
+
+// create table and indices
+String createTableSql =
+"CREATE TABLE " + fullTableName
++ "(org_id VARCHAR NOT NULL PRIMARY KEY, v1 INTEGER, 
v2 INTEGER, v3 INTEGER)";
+conn.createStatement().execute(createTableSql);
+conn.createStatement()
+.execute("CREATE INDEX " + indexName + " ON " + fullTableName 
+ "(v1)");
+conn.commit();
+PhoenixConnection phoenixConn = conn.unwrap(PhoenixConnection.class);
+ConnectionQueryServices queryServices 

Build failed in Jenkins: Phoenix | Master #2275

2019-01-09 Thread Apache Jenkins Server
See 


Changes:

[tdsilva] PHOENIX-5059 Use the Datasource v2 api in the spark connector 
(addendum)

--
[...truncated 283.55 KB...]

[ERROR] 
testStatementOrderMaintainedInConnection[PartialCommitIT_transactionProvider=OMID](org.apache.phoenix.execute.PartialCommitIT)
  Time elapsed: 13.227 s  <<< ERROR!
org.apache.phoenix.execute.CommitException: java.lang.NullPointerException
at 
org.apache.phoenix.execute.PartialCommitIT.populateTables(PartialCommitIT.java:140)
at 
org.apache.phoenix.execute.PartialCommitIT.resetGlobalMetrics(PartialCommitIT.java:147)
Caused by: java.lang.NullPointerException
at 
org.apache.phoenix.execute.PartialCommitIT.populateTables(PartialCommitIT.java:140)
at 
org.apache.phoenix.execute.PartialCommitIT.resetGlobalMetrics(PartialCommitIT.java:147)

[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.995 s 
- in org.apache.phoenix.iterate.RoundRobinResultIteratorWithStatsIT
[INFO] Running org.apache.phoenix.iterate.ScannerLeaseRenewalIT
[INFO] Running org.apache.phoenix.monitoring.PhoenixLoggingMetricsIT
[INFO] Running org.apache.phoenix.monitoring.PhoenixMetricsDisabledIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 s 
- in org.apache.phoenix.monitoring.PhoenixMetricsDisabledIT
[INFO] Running org.apache.phoenix.monitoring.PhoenixMetricsIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 42.967 s 
- in org.apache.phoenix.monitoring.PhoenixLoggingMetricsIT
[INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1,184.225 s - in org.apache.phoenix.end2end.SystemCatalogCreationOnConnectionIT
[INFO] Running org.apache.phoenix.rpc.PhoenixClientRpcIT
[INFO] Running org.apache.phoenix.rpc.PhoenixServerRpcIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.967 s 
- in org.apache.phoenix.rpc.PhoenixClientRpcIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.945 s 
- in org.apache.phoenix.rpc.PhoenixServerRpcIT
[INFO] Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 451.552 
s - in org.apache.phoenix.end2end.index.PartialIndexRebuilderIT
[INFO] Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 113.153 
s - in org.apache.phoenix.monitoring.PhoenixMetricsIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 169.916 
s - in org.apache.phoenix.iterate.ScannerLeaseRenewalIT
[ERROR] Tests run: 120, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 
2,067.306 s <<< FAILURE! - in org.apache.phoenix.end2end.IndexToolIT
[ERROR] 
testSecondaryIndex[transactionProvider=OMID,mutable=false,localIndex=false,directApi=false,useSnapshot=false](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 5.392 s  <<< ERROR!
org.apache.phoenix.execute.CommitException: java.lang.NullPointerException
at 
org.apache.phoenix.end2end.IndexToolIT.testSecondaryIndex(IndexToolIT.java:158)
Caused by: java.lang.NullPointerException
at 
org.apache.phoenix.end2end.IndexToolIT.testSecondaryIndex(IndexToolIT.java:158)

[ERROR] 
testSecondaryIndex[transactionProvider=OMID,mutable=false,localIndex=false,directApi=false,useSnapshot=true](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 4.596 s  <<< ERROR!
org.apache.phoenix.execute.CommitException: java.lang.NullPointerException
at 
org.apache.phoenix.end2end.IndexToolIT.testSecondaryIndex(IndexToolIT.java:158)
Caused by: java.lang.NullPointerException
at 
org.apache.phoenix.end2end.IndexToolIT.testSecondaryIndex(IndexToolIT.java:158)

[ERROR] 
testSecondaryIndex[transactionProvider=OMID,mutable=false,localIndex=false,directApi=true,useSnapshot=false](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 4.429 s  <<< ERROR!
org.apache.phoenix.execute.CommitException: java.lang.NullPointerException
at 
org.apache.phoenix.end2end.IndexToolIT.testSecondaryIndex(IndexToolIT.java:158)
Caused by: java.lang.NullPointerException
at 
org.apache.phoenix.end2end.IndexToolIT.testSecondaryIndex(IndexToolIT.java:158)

[ERROR] 
testSecondaryIndex[transactionProvider=OMID,mutable=false,localIndex=false,directApi=true,useSnapshot=true](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 4.397 s  <<< ERROR!
org.apache.phoenix.execute.CommitException: java.lang.NullPointerException
at 
org.apache.phoenix.end2end.IndexToolIT.testSecondaryIndex(IndexToolIT.java:158)
Caused by: java.lang.NullPointerException
at 
org.apache.phoenix.end2end.IndexToolIT.testSecondaryIndex(IndexToolIT.java:158)

[ERROR] 
testSecondaryIndex[transactionProvider=OMID,mutable=true,localIndex=false,directApi=false,useSnapshot=false](org.apache.phoenix.end2end.IndexToolIT)
  Time elapsed: 4.372 s  <<< ERROR!
org.apache.phoenix.execute.CommitException: java.lang.NullPointerException
at 
org.apache.phoenix.en

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

2019-01-09 Thread Apache Jenkins Server
See 

--
[...truncated 99.17 KB...]
[INFO] Running org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Running org.apache.phoenix.end2end.salted.SaltedTableVarLengthRowKeyIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.303 s 
- in org.apache.phoenix.end2end.salted.SaltedTableVarLengthRowKeyIT
[INFO] Running org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.099 s 
- in org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Running org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 71.399 s 
- in org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Running org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 61.967 s 
- in org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Running org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.379 s 
- in org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Running org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 793.909 
s - in org.apache.phoenix.end2end.join.HashJoinLocalIndexIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 35.669 s 
- in org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 365.076 
s - in org.apache.phoenix.end2end.join.SubqueryIT
[INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 251.089 
s - in org.apache.phoenix.end2end.join.SubqueryUsingSortMergeJoinIT
[INFO] Running org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] Running org.apache.phoenix.tx.TransactionIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 106.039 
s - in org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[INFO] Running org.apache.phoenix.tx.TxCheckpointIT
[INFO] Running org.apache.phoenix.util.IndexScrutinyIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 806.817 
s - in org.apache.phoenix.end2end.join.SortMergeJoinLocalIndexIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.073 s 
- in org.apache.phoenix.util.IndexScrutinyIT
[INFO] Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 162.123 
s - in org.apache.phoenix.tx.TransactionIT
[INFO] Tests run: 117, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1,358.602 s - in org.apache.phoenix.end2end.index.MutableIndexIT
[INFO] Tests run: 50, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 427.321 
s - in org.apache.phoenix.tx.TxCheckpointIT
[INFO] Tests run: 78, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 723.187 
s - in org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   HashJoinMoreIT.testBug2961:903 ยป IllegalArgument 6 > 5
[INFO] 
[ERROR] Tests run: 3614, Failures: 0, Errors: 1, Skipped: 1
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test (HBaseManagedTimeTests) 
@ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.20:integration-test 
(NeedTheirOwnClusterTests) @ phoenix-core ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running org.apache.phoenix.end2end.ChangePermissionsIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 46.937 s 
- in 
org.apache.hadoop.hbase.regionserver.wal.WALReplayWithIndexWritesAndCompressedWALIT
[INFO] Running 
org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.627 s 
- in org.apache.hadoop.hbase.regionserver.wal.WALRecoveryRegionPostOpenIT
[INFO] Running org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[INFO] Running 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 51.033 s 
- in org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Test

[phoenix] branch master updated: PHOENIX-5059 Use the Datasource v2 api in the spark connector (addendum)

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

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


The following commit(s) were added to refs/heads/master by this push:
 new 7d6d8e4  PHOENIX-5059 Use the Datasource v2 api in the spark connector 
(addendum)
7d6d8e4 is described below

commit 7d6d8e478b54448b88ede3f80ae245f627cb
Author: Thomas D'Silva 
AuthorDate: Wed Jan 9 17:08:19 2019 -0800

PHOENIX-5059 Use the Datasource v2 api in the spark connector (addendum)
---
 .../phoenix/spark/datasource/v2/reader/PhoenixDataSourceReader.java| 2 +-
 .../spark/datasource/v2/reader/PhoenixInputPartitionReader.java| 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/phoenix-spark/src/main/java/org/apache/phoenix/spark/datasource/v2/reader/PhoenixDataSourceReader.java
 
b/phoenix-spark/src/main/java/org/apache/phoenix/spark/datasource/v2/reader/PhoenixDataSourceReader.java
index 446d96f..c76d9c8 100644
--- 
a/phoenix-spark/src/main/java/org/apache/phoenix/spark/datasource/v2/reader/PhoenixDataSourceReader.java
+++ 
b/phoenix-spark/src/main/java/org/apache/phoenix/spark/datasource/v2/reader/PhoenixDataSourceReader.java
@@ -23,7 +23,7 @@ import org.apache.hadoop.hbase.HRegionLocation;
 import org.apache.hadoop.hbase.TableName;
 import org.apache.hadoop.hbase.client.RegionLocator;
 import org.apache.hadoop.hbase.client.Scan;
-import org.apache.hadoop.hbase.util.RegionSizeCalculator;
+import org.apache.hadoop.hbase.mapreduce.RegionSizeCalculator;
 import org.apache.phoenix.compile.QueryPlan;
 import org.apache.phoenix.iterate.MapReduceParallelScanGrouper;
 import org.apache.phoenix.jdbc.PhoenixConnection;
diff --git 
a/phoenix-spark/src/main/java/org/apache/phoenix/spark/datasource/v2/reader/PhoenixInputPartitionReader.java
 
b/phoenix-spark/src/main/java/org/apache/phoenix/spark/datasource/v2/reader/PhoenixInputPartitionReader.java
index 30e84db..664a887 100644
--- 
a/phoenix-spark/src/main/java/org/apache/phoenix/spark/datasource/v2/reader/PhoenixInputPartitionReader.java
+++ 
b/phoenix-spark/src/main/java/org/apache/phoenix/spark/datasource/v2/reader/PhoenixInputPartitionReader.java
@@ -25,6 +25,7 @@ import java.sql.Statement;
 import java.util.List;
 import java.util.Properties;
 
+import org.apache.hadoop.hbase.TableName;
 import org.apache.hadoop.hbase.client.Scan;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.phoenix.compile.QueryPlan;
@@ -108,7 +109,7 @@ public class PhoenixInputPartitionReader implements 
InputPartitionReader

[phoenix-queryserver] branch 4.x-HBase-1.4 updated (87ad707 -> 0543cf1)

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

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


from 87ad707  Initial Commit
 add eeb3849  PHOENIX-5063 Create a new repo for the phoenix query server
 add 2f7bfb6  PHOENIX-5063 Update scm tag values
 add fa8b846  PHOENIX-5063 Removed unused properties from pom.xml
 new 0543cf1  PHOENIX-5063 Specify phoenix version via property

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.


Summary of changes:
 pom.xml| 551 +++
 queryserver-client/pom.xml | 203 +++
 .../apache/phoenix/queryserver/client/Driver.java  |  49 ++
 .../phoenix/queryserver/client/SqllineWrapper.java |  97 
 .../phoenix/queryserver/client/ThinClientUtil.java |  42 ++
 .../resources/META-INF/services/java.sql.Driver|   1 +
 .../org-apache-phoenix-remote-jdbc.properties  |  25 +
 queryserver/pom.xml| 188 +++
 queryserver/src/build/query-server-runnable.xml|  52 ++
 queryserver/src/it/bin/test_phoenixdb.py   |  39 ++
 queryserver/src/it/bin/test_phoenixdb.sh   |  79 +++
 .../HttpParamImpersonationQueryServerIT.java   | 438 +++
 .../phoenix/end2end/QueryServerBasicsIT.java   | 346 
 .../phoenix/end2end/QueryServerTestUtil.java   | 187 +++
 .../apache/phoenix/end2end/QueryServerThread.java  |  45 ++
 .../phoenix/end2end/SecureQueryServerIT.java   | 323 +++
 .../end2end/SecureQueryServerPhoenixDBIT.java  | 424 ++
 .../phoenix/end2end/ServerCustomizersIT.java   | 149 +
 queryserver/src/it/resources/log4j.properties  |  68 +++
 .../service/LoadBalanceZookeeperConf.java  |  42 ++
 .../phoenix/queryserver/register/Registry.java |  48 ++
 .../server/AvaticaServerConfigurationFactory.java  |  37 ++
 .../queryserver/server/PhoenixMetaFactory.java |  28 +
 .../queryserver/server/PhoenixMetaFactoryImpl.java |  76 +++
 .../phoenix/queryserver/server/QueryServer.java| 606 +
 .../server/RemoteUserExtractorFactory.java |  36 ++
 .../server/ServerCustomizersFactory.java   |  52 ++
 .../org/apache/phoenix/DriverCohabitationTest.java |  65 +++
 .../CustomAvaticaServerConfigurationTest.java  |  37 ++
 .../server/PhoenixDoAsCallbackTest.java|  89 +++
 .../server/PhoenixRemoteUserExtractorTest.java | 108 
 .../server/QueryServerConfigurationTest.java   |  92 
 .../server/RemoteUserExtractorFactoryTest.java |  35 ++
 .../queryserver/server/ServerCustomizersTest.java  |  92 
 34 files changed, 4749 insertions(+)
 create mode 100644 pom.xml
 create mode 100644 queryserver-client/pom.xml
 create mode 100644 
queryserver-client/src/main/java/org/apache/phoenix/queryserver/client/Driver.java
 create mode 100644 
queryserver-client/src/main/java/org/apache/phoenix/queryserver/client/SqllineWrapper.java
 create mode 100644 
queryserver-client/src/main/java/org/apache/phoenix/queryserver/client/ThinClientUtil.java
 create mode 100644 
queryserver-client/src/main/resources/META-INF/services/java.sql.Driver
 create mode 100644 
queryserver-client/src/main/resources/version/org-apache-phoenix-remote-jdbc.properties
 create mode 100644 queryserver/pom.xml
 create mode 100644 queryserver/src/build/query-server-runnable.xml
 create mode 100644 queryserver/src/it/bin/test_phoenixdb.py
 create mode 100755 queryserver/src/it/bin/test_phoenixdb.sh
 create mode 100644 
queryserver/src/it/java/org/apache/phoenix/end2end/HttpParamImpersonationQueryServerIT.java
 create mode 100644 
queryserver/src/it/java/org/apache/phoenix/end2end/QueryServerBasicsIT.java
 create mode 100644 
queryserver/src/it/java/org/apache/phoenix/end2end/QueryServerTestUtil.java
 create mode 100644 
queryserver/src/it/java/org/apache/phoenix/end2end/QueryServerThread.java
 create mode 100644 
queryserver/src/it/java/org/apache/phoenix/end2end/SecureQueryServerIT.java
 create mode 100644 
queryserver/src/it/java/org/apache/phoenix/end2end/SecureQueryServerPhoenixDBIT.java
 create mode 100644 
queryserver/src/it/java/org/apache/phoenix/end2end/ServerCustomizersIT.java
 create mode 100644 queryserver/src/it/resources/log4j.properties
 create mode 100644 
queryserver/src/main/java/org/apache/phoenix/loadbalancer/service/LoadBalanceZookeeperConf.java
 create mode 100644 
queryserver/src/main/java/org/apache/phoenix/queryserver/register/Registry.java
 create mode 100644 
queryserver/src/main/java/org/apache/phoenix/queryserver/server/AvaticaServerConfigurationFactory.java
 create mode 100644 
queryserver/src/main/java/org/apache/phoenix/queryserver/se

[phoenix-queryserver] 01/01: PHOENIX-5063 Specify phoenix version via property

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

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

commit 0543cf143aff79b5353182e4cdc93086d5bc9bba
Author: Karan Mehta 
AuthorDate: Wed Jan 9 11:51:24 2019 -0800

PHOENIX-5063 Specify phoenix version via property
---
 pom.xml | 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index da10477..29f0983 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
 
 org.apache.phoenix
 phoenix-queryserver
-4.15.0-HBase-1.4-SNAPSHOT
+1.0.0-SNAPSHOT
 pom
 Phoenix Query Server
 
@@ -46,6 +46,9 @@
 
 ${project.basedir}
 
+
+4.14.1-HBase-1.4
+
 
 1.4.0
 2.7.5
@@ -385,12 +388,12 @@
 
 org.apache.phoenix
 phoenix-core
-${project.version}
+${phoenix.version}
 
 
 org.apache.phoenix
 phoenix-core
-${project.version}
+${phoenix.version}
 tests
 test
 



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

2019-01-09 Thread Apache Jenkins Server
See 


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

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


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

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