Build failed in Jenkins: Phoenix | 3.0 | Hadoop1 #148

2014-07-25 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-3.0-hadoop1/148/changes

Changes:

[jtaylor] Better test coverage for IN list with RVC (KyleBuzsaki)

--
[...truncated 2557 lines...]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec - in 
org.apache.phoenix.iterate.AggregateResultScannerTest
Running org.apache.phoenix.iterate.SpoolingResultIteratorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.075 sec - in 
org.apache.phoenix.iterate.SpoolingResultIteratorTest
Running org.apache.phoenix.hbase.index.util.TestIndexManagementUtil
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in 
org.apache.phoenix.hbase.index.util.TestIndexManagementUtil
Running org.apache.phoenix.hbase.index.parallel.TestThreadPoolBuilder
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in 
org.apache.phoenix.hbase.index.parallel.TestThreadPoolBuilder
Running org.apache.phoenix.hbase.index.parallel.TestThreadPoolManager
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in 
org.apache.phoenix.hbase.index.parallel.TestThreadPoolManager
Running 
org.apache.phoenix.hbase.index.write.recovery.TestPerRegionIndexWriteCache
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec - in 
org.apache.phoenix.hbase.index.write.recovery.TestPerRegionIndexWriteCache
Running org.apache.phoenix.hbase.index.write.TestCachingHTableFactory
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec - in 
org.apache.phoenix.hbase.index.write.TestCachingHTableFactory
Running org.apache.phoenix.hbase.index.write.TestParalleIndexWriter
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.327 sec - in 
org.apache.phoenix.hbase.index.write.TestParalleIndexWriter
Running org.apache.phoenix.hbase.index.write.TestWALRecoveryCaching
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.01 sec - in 
org.apache.phoenix.hbase.index.write.TestWALRecoveryCaching
Running org.apache.phoenix.hbase.index.write.TestParalleWriterIndexCommitter
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec - in 
org.apache.phoenix.hbase.index.write.TestParalleWriterIndexCommitter
Running org.apache.phoenix.hbase.index.write.TestIndexWriter
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec - in 
org.apache.phoenix.hbase.index.write.TestIndexWriter
Running org.apache.phoenix.hbase.index.covered.TestLocalTableState
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.113 sec - in 
org.apache.phoenix.hbase.index.covered.TestLocalTableState
Running 
org.apache.phoenix.hbase.index.covered.example.TestCoveredIndexSpecifierBuilder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestCoveredIndexSpecifierBuilder
Running 
org.apache.phoenix.hbase.index.covered.example.TestCoveredColumnIndexCodec
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestCoveredColumnIndexCodec
Running org.apache.phoenix.hbase.index.covered.example.TestColumnTracker
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestColumnTracker
Running org.apache.phoenix.hbase.index.covered.update.TestIndexUpdateManager
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec - in 
org.apache.phoenix.hbase.index.covered.update.TestIndexUpdateManager
Running org.apache.phoenix.hbase.index.covered.TestCoveredColumns
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in 
org.apache.phoenix.hbase.index.covered.TestCoveredColumns
Running org.apache.phoenix.hbase.index.covered.filter.TestNewerTimestampFilter
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in 
org.apache.phoenix.hbase.index.covered.filter.TestNewerTimestampFilter
Running 
org.apache.phoenix.hbase.index.covered.filter.TestApplyAndFilterDeletesFilter
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.phoenix.hbase.index.covered.filter.TestApplyAndFilterDeletesFilter
Running org.apache.phoenix.hbase.index.covered.filter.TestFamilyOnlyFilter
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.phoenix.hbase.index.covered.filter.TestFamilyOnlyFilter
Running org.apache.phoenix.hbase.index.covered.data.TestIndexMemStore
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec - in 
org.apache.phoenix.hbase.index.covered.data.TestIndexMemStore
Running org.apache.phoenix.filter.SkipScanFilterTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec - in 
org.apache.phoenix.filter.SkipScanFilterTest
Running org.apache.phoenix.filter.SkipScanFilterIntersectTest
Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, 

Apache-Phoenix | Master | Hadoop1 | Build Successful

2014-07-25 Thread Apache Jenkins Server
Master branch build status Successful
Source repository https://git-wip-us.apache.org/repos/asf/incubator-phoenix.git

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

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

Changes
[jtaylor] Better test coverage for IN list with RVC (KyleBuzsaki)



Apache-Phoenix | 4.0 | Hadoop1 | Build Successful

2014-07-25 Thread Apache Jenkins Server
4.0 branch build status Successful

Source repository https://git-wip-us.apache.org/repos/asf/incubator-phoenix.git

Compiled Artifacts https://builds.apache.org/job/Phoenix-4.0-hadoop1/lastSuccessfulBuild/artifact/

Test Report https://builds.apache.org/job/Phoenix-4.0-hadoop1/lastCompletedBuild/testReport/

Changes
[jtaylor] Better test coverage for IN list with RVC (KyleBuzsaki)



git commit: Remove 2.2.x-3.0/4.0 upgrade code

2014-07-25 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/3.0 0d9c398fe - f13db3fc8


Remove 2.2.x-3.0/4.0 upgrade code


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

Branch: refs/heads/3.0
Commit: f13db3fc8295bee1eafd0879d1d9cc434db0e1e6
Parents: 0d9c398
Author: James Taylor jtay...@salesforce.com
Authored: Fri Jul 25 00:17:07 2014 -0700
Committer: James Taylor jtay...@salesforce.com
Committed: Fri Jul 25 00:17:07 2014 -0700

--
 .../org/apache/phoenix/end2end/InListIT.java|   3 +-
 .../query/ConnectionQueryServicesImpl.java  | 506 ---
 2 files changed, 2 insertions(+), 507 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f13db3fc/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
index 19e5037..9ac2452 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
@@ -11,6 +11,7 @@ import java.sql.DriverManager;
 import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.util.Arrays;
+import java.util.Collections;
 import java.util.List;
 import java.util.Properties;
 
@@ -22,7 +23,6 @@ import org.junit.experimental.categories.Category;
 import com.google.common.base.Function;
 import com.google.common.base.Joiner;
 import com.google.common.collect.Lists;
-import java.util.Collections;
 
 @Category(ClientManagedTimeTest.class)
 public class InListIT extends BaseHBaseManagedTimeIT {
@@ -196,6 +196,7 @@ public class InListIT extends BaseHBaseManagedTimeIT {
 }
 }
 
+@SuppressWarnings(unchecked)
 ListListObject DEFAULT_UPSERTS = 
Arrays.asList(Arrays.ObjectasList(1, 2, 4, 5, 6, row1),

Arrays.ObjectasList(2, 3, 4, 5, 6, row2),

Arrays.ObjectasList(2, 3, 6, 4, 5, row3),

http://git-wip-us.apache.org/repos/asf/phoenix/blob/f13db3fc/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
index 4d21bdd..3ad7ecc 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
@@ -18,51 +18,20 @@
 package org.apache.phoenix.query;
 
 import static com.google.common.io.Closeables.closeQuietly;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.COLUMN_COUNT;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.COLUMN_FAMILY;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.COLUMN_NAME;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.COLUMN_SIZE;
 import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CYCLE_FLAG;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.DATA_TABLE_NAME;
-import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.DATA_TABLE_NAME_BYTES;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.DATA_TYPE;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.DECIMAL_DIGITS;
-import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.DEFAULT_COLUMN_FAMILY_NAME;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.IMMUTABLE_ROWS;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.INDEX_STATE;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.KEY_SEQ;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LINK_TYPE;
 import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.MAX_VALUE;
 import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.MIN_VALUE;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.NULLABLE;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.ORDINAL_POSITION;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PK_NAME;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SALT_BUCKETS;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SORT_ORDER;
-import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME;
 import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES;

Build failed in Jenkins: Phoenix | 3.0 | Hadoop1 #149

2014-07-25 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-3.0-hadoop1/149/changes

Changes:

[jtaylor] Remove 2.2.x-3.0/4.0 upgrade code

--
[...truncated 217 lines...]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec - in 
org.apache.phoenix.iterate.AggregateResultScannerTest
Running org.apache.phoenix.iterate.SpoolingResultIteratorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.091 sec - in 
org.apache.phoenix.iterate.SpoolingResultIteratorTest
Running org.apache.phoenix.hbase.index.util.TestIndexManagementUtil
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in 
org.apache.phoenix.hbase.index.util.TestIndexManagementUtil
Running org.apache.phoenix.hbase.index.parallel.TestThreadPoolBuilder
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in 
org.apache.phoenix.hbase.index.parallel.TestThreadPoolBuilder
Running org.apache.phoenix.hbase.index.parallel.TestThreadPoolManager
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in 
org.apache.phoenix.hbase.index.parallel.TestThreadPoolManager
Running 
org.apache.phoenix.hbase.index.write.recovery.TestPerRegionIndexWriteCache
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec - in 
org.apache.phoenix.hbase.index.write.recovery.TestPerRegionIndexWriteCache
Running org.apache.phoenix.hbase.index.write.TestCachingHTableFactory
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.044 sec - in 
org.apache.phoenix.hbase.index.write.TestCachingHTableFactory
Running org.apache.phoenix.hbase.index.write.TestParalleIndexWriter
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.254 sec - in 
org.apache.phoenix.hbase.index.write.TestParalleIndexWriter
Running org.apache.phoenix.hbase.index.write.TestWALRecoveryCaching
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.015 sec - in 
org.apache.phoenix.hbase.index.write.TestWALRecoveryCaching
Running org.apache.phoenix.hbase.index.write.TestParalleWriterIndexCommitter
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec - in 
org.apache.phoenix.hbase.index.write.TestParalleWriterIndexCommitter
Running org.apache.phoenix.hbase.index.write.TestIndexWriter
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec - in 
org.apache.phoenix.hbase.index.write.TestIndexWriter
Running org.apache.phoenix.hbase.index.covered.TestLocalTableState
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec - in 
org.apache.phoenix.hbase.index.covered.TestLocalTableState
Running 
org.apache.phoenix.hbase.index.covered.example.TestCoveredIndexSpecifierBuilder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestCoveredIndexSpecifierBuilder
Running 
org.apache.phoenix.hbase.index.covered.example.TestCoveredColumnIndexCodec
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestCoveredColumnIndexCodec
Running org.apache.phoenix.hbase.index.covered.example.TestColumnTracker
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestColumnTracker
Running org.apache.phoenix.hbase.index.covered.update.TestIndexUpdateManager
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec - in 
org.apache.phoenix.hbase.index.covered.update.TestIndexUpdateManager
Running org.apache.phoenix.hbase.index.covered.TestCoveredColumns
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in 
org.apache.phoenix.hbase.index.covered.TestCoveredColumns
Running org.apache.phoenix.hbase.index.covered.filter.TestNewerTimestampFilter
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in 
org.apache.phoenix.hbase.index.covered.filter.TestNewerTimestampFilter
Running 
org.apache.phoenix.hbase.index.covered.filter.TestApplyAndFilterDeletesFilter
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in 
org.apache.phoenix.hbase.index.covered.filter.TestApplyAndFilterDeletesFilter
Running org.apache.phoenix.hbase.index.covered.filter.TestFamilyOnlyFilter
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.phoenix.hbase.index.covered.filter.TestFamilyOnlyFilter
Running org.apache.phoenix.hbase.index.covered.data.TestIndexMemStore
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in 
org.apache.phoenix.hbase.index.covered.data.TestIndexMemStore
Running org.apache.phoenix.filter.SkipScanFilterTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.057 sec - in 
org.apache.phoenix.filter.SkipScanFilterTest
Running org.apache.phoenix.filter.SkipScanFilterIntersectTest
Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 

git commit: Remove 2.2.x-3.0/4.0 upgrade code

2014-07-25 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/master 3d3bbe219 - fb01cd5a7


Remove 2.2.x-3.0/4.0 upgrade code


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

Branch: refs/heads/master
Commit: fb01cd5a7a6d5798f872493439551b1496bd7764
Parents: 3d3bbe2
Author: James Taylor jtay...@salesforce.com
Authored: Fri Jul 25 00:17:07 2014 -0700
Committer: James Taylor jtay...@salesforce.com
Committed: Fri Jul 25 00:37:27 2014 -0700

--
 .../org/apache/phoenix/end2end/InListIT.java|   3 +-
 .../query/ConnectionQueryServicesImpl.java  | 507 ---
 2 files changed, 2 insertions(+), 508 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/fb01cd5a/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
index 19e5037..9ac2452 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
@@ -11,6 +11,7 @@ import java.sql.DriverManager;
 import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.util.Arrays;
+import java.util.Collections;
 import java.util.List;
 import java.util.Properties;
 
@@ -22,7 +23,6 @@ import org.junit.experimental.categories.Category;
 import com.google.common.base.Function;
 import com.google.common.base.Joiner;
 import com.google.common.collect.Lists;
-import java.util.Collections;
 
 @Category(ClientManagedTimeTest.class)
 public class InListIT extends BaseHBaseManagedTimeIT {
@@ -196,6 +196,7 @@ public class InListIT extends BaseHBaseManagedTimeIT {
 }
 }
 
+@SuppressWarnings(unchecked)
 ListListObject DEFAULT_UPSERTS = 
Arrays.asList(Arrays.ObjectasList(1, 2, 4, 5, 6, row1),

Arrays.ObjectasList(2, 3, 4, 5, 6, row2),

Arrays.ObjectasList(2, 3, 6, 4, 5, row3),

http://git-wip-us.apache.org/repos/asf/phoenix/blob/fb01cd5a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
index 80e1e6b..ae34f69 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
@@ -18,58 +18,26 @@
 package org.apache.phoenix.query;
 
 import static com.google.common.io.Closeables.closeQuietly;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.COLUMN_COUNT;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.COLUMN_FAMILY;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.COLUMN_NAME;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.COLUMN_SIZE;
 import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CYCLE_FLAG;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.DATA_TABLE_NAME;
-import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.DATA_TABLE_NAME_BYTES;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.DATA_TYPE;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.DECIMAL_DIGITS;
-import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.DEFAULT_COLUMN_FAMILY_NAME;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.IMMUTABLE_ROWS;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.INDEX_STATE;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.KEY_SEQ;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LINK_TYPE;
 import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.MAX_VALUE;
 import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.MIN_VALUE;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.NULLABLE;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.ORDINAL_POSITION;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PK_NAME;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SALT_BUCKETS;
-import static org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SORT_ORDER;
-import static 
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME;
 import static 

git commit: Change InListIT annotation to HBaseManagedTimeTest

2014-07-25 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.0 cadb258fc - ef16bbc78


Change InListIT annotation to HBaseManagedTimeTest


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

Branch: refs/heads/4.0
Commit: ef16bbc78a643d1dc481afb3c600fe91d5e502cf
Parents: cadb258
Author: James Taylor jtay...@salesforce.com
Authored: Fri Jul 25 00:39:24 2014 -0700
Committer: James Taylor jtay...@salesforce.com
Committed: Fri Jul 25 00:40:28 2014 -0700

--
 phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/ef16bbc7/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
index 9ac2452..2205159 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
@@ -24,7 +24,7 @@ import com.google.common.base.Function;
 import com.google.common.base.Joiner;
 import com.google.common.collect.Lists;
 
-@Category(ClientManagedTimeTest.class)
+@Category(HBaseManagedTimeTest.class)
 public class InListIT extends BaseHBaseManagedTimeIT {
 
 @Test



git commit: Change InListIT annotation to HBaseManagedTimeTest

2014-07-25 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/master fb01cd5a7 - ba7da1963


Change InListIT annotation to HBaseManagedTimeTest


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

Branch: refs/heads/master
Commit: ba7da19638253ce95131eed992e68b6c844a3c5c
Parents: fb01cd5
Author: James Taylor jtay...@salesforce.com
Authored: Fri Jul 25 00:39:24 2014 -0700
Committer: James Taylor jtay...@salesforce.com
Committed: Fri Jul 25 00:40:45 2014 -0700

--
 phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/ba7da196/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
index 9ac2452..2205159 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/InListIT.java
@@ -24,7 +24,7 @@ import com.google.common.base.Function;
 import com.google.common.base.Joiner;
 import com.google.common.collect.Lists;
 
-@Category(ClientManagedTimeTest.class)
+@Category(HBaseManagedTimeTest.class)
 public class InListIT extends BaseHBaseManagedTimeIT {
 
 @Test



Build failed in Jenkins: Phoenix | 3.0 | Hadoop1 #150

2014-07-25 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-3.0-hadoop1/150/changes

Changes:

[jtaylor] Change InListIT annotation to HBaseManagedTimeTest

--
[...truncated 217 lines...]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.056 sec - in 
org.apache.phoenix.iterate.AggregateResultScannerTest
Running org.apache.phoenix.iterate.SpoolingResultIteratorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.079 sec - in 
org.apache.phoenix.iterate.SpoolingResultIteratorTest
Running org.apache.phoenix.hbase.index.util.TestIndexManagementUtil
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in 
org.apache.phoenix.hbase.index.util.TestIndexManagementUtil
Running org.apache.phoenix.hbase.index.parallel.TestThreadPoolBuilder
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in 
org.apache.phoenix.hbase.index.parallel.TestThreadPoolBuilder
Running org.apache.phoenix.hbase.index.parallel.TestThreadPoolManager
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec - in 
org.apache.phoenix.hbase.index.parallel.TestThreadPoolManager
Running 
org.apache.phoenix.hbase.index.write.recovery.TestPerRegionIndexWriteCache
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec - in 
org.apache.phoenix.hbase.index.write.recovery.TestPerRegionIndexWriteCache
Running org.apache.phoenix.hbase.index.write.TestCachingHTableFactory
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 sec - in 
org.apache.phoenix.hbase.index.write.TestCachingHTableFactory
Running org.apache.phoenix.hbase.index.write.TestParalleIndexWriter
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.268 sec - in 
org.apache.phoenix.hbase.index.write.TestParalleIndexWriter
Running org.apache.phoenix.hbase.index.write.TestWALRecoveryCaching
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.013 sec - in 
org.apache.phoenix.hbase.index.write.TestWALRecoveryCaching
Running org.apache.phoenix.hbase.index.write.TestParalleWriterIndexCommitter
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec - in 
org.apache.phoenix.hbase.index.write.TestParalleWriterIndexCommitter
Running org.apache.phoenix.hbase.index.write.TestIndexWriter
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.051 sec - in 
org.apache.phoenix.hbase.index.write.TestIndexWriter
Running org.apache.phoenix.hbase.index.covered.TestLocalTableState
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.117 sec - in 
org.apache.phoenix.hbase.index.covered.TestLocalTableState
Running 
org.apache.phoenix.hbase.index.covered.example.TestCoveredIndexSpecifierBuilder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestCoveredIndexSpecifierBuilder
Running 
org.apache.phoenix.hbase.index.covered.example.TestCoveredColumnIndexCodec
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestCoveredColumnIndexCodec
Running org.apache.phoenix.hbase.index.covered.example.TestColumnTracker
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestColumnTracker
Running org.apache.phoenix.hbase.index.covered.update.TestIndexUpdateManager
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec - in 
org.apache.phoenix.hbase.index.covered.update.TestIndexUpdateManager
Running org.apache.phoenix.hbase.index.covered.TestCoveredColumns
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in 
org.apache.phoenix.hbase.index.covered.TestCoveredColumns
Running org.apache.phoenix.hbase.index.covered.filter.TestNewerTimestampFilter
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.phoenix.hbase.index.covered.filter.TestNewerTimestampFilter
Running 
org.apache.phoenix.hbase.index.covered.filter.TestApplyAndFilterDeletesFilter
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in 
org.apache.phoenix.hbase.index.covered.filter.TestApplyAndFilterDeletesFilter
Running org.apache.phoenix.hbase.index.covered.filter.TestFamilyOnlyFilter
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.phoenix.hbase.index.covered.filter.TestFamilyOnlyFilter
Running org.apache.phoenix.hbase.index.covered.data.TestIndexMemStore
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec - in 
org.apache.phoenix.hbase.index.covered.data.TestIndexMemStore
Running org.apache.phoenix.filter.SkipScanFilterTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.045 sec - in 
org.apache.phoenix.filter.SkipScanFilterTest
Running org.apache.phoenix.filter.SkipScanFilterIntersectTest
Tests run: 17, Failures: 0, Errors: 0, Skipped: 

Apache-Phoenix | 4.0 | Hadoop1 | Build Successful

2014-07-25 Thread Apache Jenkins Server
4.0 branch build status Successful

Source repository https://git-wip-us.apache.org/repos/asf/incubator-phoenix.git

Compiled Artifacts https://builds.apache.org/job/Phoenix-4.0-hadoop1/lastSuccessfulBuild/artifact/

Test Report https://builds.apache.org/job/Phoenix-4.0-hadoop1/lastCompletedBuild/testReport/

Changes
[jtaylor] Remove 2.2.x-3.0/4.0 upgrade code

[jtaylor] Change InListIT annotation to HBaseManagedTimeTest



Apache-Phoenix | Master | Hadoop1 | Build Successful

2014-07-25 Thread Apache Jenkins Server
Master branch build status Successful
Source repository https://git-wip-us.apache.org/repos/asf/incubator-phoenix.git

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

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

Changes
[jtaylor] Remove 2.2.x-3.0/4.0 upgrade code

[jtaylor] Change InListIT annotation to HBaseManagedTimeTest



git commit: PHOENIX-908 Remove Release unknown lockId warning

2014-07-25 Thread greid
Repository: phoenix
Updated Branches:
  refs/heads/3.0 c4af62375 - ae74afa48


PHOENIX-908 Remove Release unknown lockId warning

Apply remaining portion of patch to avoid the Release unknown
lockId: 5 warning that is regularly logged.


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

Branch: refs/heads/3.0
Commit: ae74afa48b51fcbdfdac01c114258c76ca702e4f
Parents: c4af623
Author: Gabriel Reid gabri...@ngdata.com
Authored: Fri Jul 25 11:39:29 2014 +0200
Committer: Gabriel Reid gabri...@ngdata.com
Committed: Fri Jul 25 11:39:29 2014 +0200

--
 .../java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/ae74afa4/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
--
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
index 499b188..b28fd2d 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
@@ -513,7 +513,7 @@ public class MetaDataEndpointImpl extends 
BaseEndpointCoprocessor implements Met
 if (result != null) {
 return result; 
 }
-ListInteger lids = Lists.newArrayList(5);
+ListInteger lids = Lists.newArrayList();
 long clientTimeStamp = 
MetaDataUtil.getClientTimeStamp(tableMetadata);
 try {
 acquireLock(region, lockKey, lids);



svn commit: r1613476 - /phoenix/site/source/src/site/markdown/secondary_indexing.md

2014-07-25 Thread jyates
Author: jyates
Date: Fri Jul 25 17:02:13 2014
New Revision: 1613476

URL: http://svn.apache.org/r1613476
Log:
Adding docs for removal of mutable secondary index deadlock for 0.98.4+

Modified:
phoenix/site/source/src/site/markdown/secondary_indexing.md

Modified: phoenix/site/source/src/site/markdown/secondary_indexing.md
URL: 
http://svn.apache.org/viewvc/phoenix/site/source/src/site/markdown/secondary_indexing.md?rev=1613476r1=1613475r2=1613476view=diff
==
--- phoenix/site/source/src/site/markdown/secondary_indexing.md (original)
+++ phoenix/site/source/src/site/markdown/secondary_indexing.md Fri Jul 25 
17:02:13 2014
@@ -94,6 +94,7 @@ If the index tables are not setup correc
 Only mutable indexing requires special configuration options in the region 
server to run - phoenix ensures that they are setup correctly when you enable 
mutable indexing on the table; if the correct properties are not set, you will 
not be able to turn it on.
 
 You will need to add the following parameters to `hbase-site.xml`:
+
 ```
 property
   namehbase.regionserver.wal.codec/name
@@ -103,6 +104,65 @@ You will need to add the following param
 
 This enables custom WAL edits to be written, ensuring proper writing/replay of 
the index updates. This codec supports the usual host of WALEdit options, most 
notably WALEdit compression.
 
+### Advanced Setup - Removing Index Deadlocks (0.98.4+)
+
+Phoenix releases that include these changes (4.1+, 5.0.0+) are still backwards 
compatible with older versions of phoenix (to the extent that they are 
semantically compatible) as well as with older versions of HBase 
(0.98.1-0.98.3).
+
+As of HBase 0.98.4 we can finally remove the change of index deadlocks. In 
HBase you can tune the number of RPC threads to match client writes + index 
writes, but there is still a chance you could have a deadlock in an unlucky 
scenario (i.e. Client A - Server A, Client B - Server B, each taking the last 
RPC thread. Then each server attempts to make an index update to the other, 
Server A - Server B, and vice versa, but they can't as there are no more 
available RPC threads).
+
+As of [PHOENIX-938](https://issues.apache.org/jira/browse/PHOENIX-938) and 
[HBASE-11513](https://issues.apache.org/jira/browse/HBASE-11513) we can remove 
these deadlocks by providing a different set of RPC handlers for index updates 
by giving index updates their own 'rpc priority' and handling the priorities 
via a custom Phoenix RPC Handler.
+
+The properties you need to set to enable this are
+
+ Server Side
+
+```
+property
+  namehbase.region.server.rpc.scheduler.factory.class/name
+  
valueorg.apache.phoenix.hbase.index.ipc.PhoenixIndexRpcSchedulerFactory/value
+  descriptionFactory to create the Phoenix RPC Scheduler that knows to put 
index updates into index queues/description
+/property
+```
+
+After adding these settings to your hbase-site.xml, you just need to do a 
rolling restart of your cluster.
+
+
+Note that having the configs on both client and server side will not impact 
correctness or performance.
+
+ Tuning
+
+By default, index priority range is between (1000, 1050]. Higher priorites 
within the index range, at this time, do not means updates are processed 
sooner. However, we reserve this range to provide that possibility in the 
future.
+
+You can specifiy this range however to suit your individual cluster 
requirements by adjusting the follwing parameters
+
+```
+property
+   nameorg.apache.phoenix.regionserver.index.priority.min/name
+   value1050/value
+   descriptionValue to specify to bottom (inclusive) of the range in 
which index priority may lie/description
+/property
+property
+   nameorg.apache.phoenix.regionserver.index.priority.max/name
+   value1050/value
+   descriptionValue to specify to top (exclusive) of the range in which 
index priority may lie/description
+/property
+```
+
+The number of RPC Handler Threads can be specified via:
+
+```
+property
+   nameorg.apache.phoenix.regionserver.index.handler.count/name
+   value30/value
+   descriptionNumber of threads to use when serving index write 
requests/description
+/property
+```
+
+Though the actual number of threads is dictated by the Max(number of call 
queues, handler count), where the number of call queues is determined by 
standard HBase configuration (see below).
+
+
+To further tune the queues, you can adjust the standard rpc queue length 
parameters (currently, there are no special knobs for the index queues), 
specifically ipc.server.max.callqueue.length and 
ipc.server.callqueue.handler.factor. See the [HBase Reference 
Guide](http://hbase.apache.org/book.html) for more details.
+ 
 ## Tuning
 Out the box, indexing is pretty fast. However, to optimize for your particular 
environment and workload, there are several properties you can tune.
 




git commit: PHOENIX-1111 Fix flapping unit tests by removing inappropriate usage of TestUtil.TEST_PROPERTIES

2014-07-25 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/3.0 ae74afa48 - 41d7afcb8


PHOENIX- Fix flapping unit tests by removing inappropriate usage of 
TestUtil.TEST_PROPERTIES


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

Branch: refs/heads/3.0
Commit: 41d7afcb8b06578cb247f5c6e389bc2839eabcd3
Parents: ae74afa
Author: James Taylor jamestay...@apache.org
Authored: Fri Jul 25 13:21:00 2014 -0700
Committer: James Taylor jamestay...@apache.org
Committed: Fri Jul 25 13:21:00 2014 -0700

--
 .../java/org/apache/phoenix/compile/WhereOptimizerTest.java| 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/41d7afcb/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
--
diff --git 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
index c5ec72f..4ee428c 100644
--- 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
+++ 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
@@ -77,7 +77,7 @@ public class WhereOptimizerTest extends 
BaseConnectionlessQueryTest {
 }
 
 private static StatementContext compileStatement(String query, 
ListObject binds, Integer limit) throws SQLException {
-PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
TEST_PROPERTIES).unwrap(PhoenixConnection.class);
+PhoenixConnection pconn = DriverManager.getConnection(getUrl(), new 
Properties(TEST_PROPERTIES)).unwrap(PhoenixConnection.class);
 PhoenixPreparedStatement pstmt = new PhoenixPreparedStatement(pconn, 
query);
 TestUtil.bindParams(pstmt, binds);
 QueryPlan plan = pstmt.compileQuery();
@@ -1587,7 +1587,7 @@ public class WhereOptimizerTest extends 
BaseConnectionlessQueryTest {
 
 String tenantId = tenantId;
 String tenantViewDDL = CREATE VIEW TENANT_VIEW AS SELECT * FROM 
BASE_MULTI_TENANT_TABLE;
-Properties tenantProps = TEST_PROPERTIES;
+Properties tenantProps = new Properties();
 tenantProps.put(PhoenixRuntime.TENANT_ID_ATTRIB, tenantId);
 conn = DriverManager.getConnection(getUrl(), tenantProps);
 conn.createStatement().execute(tenantViewDDL);
@@ -1634,7 +1634,7 @@ public class WhereOptimizerTest extends 
BaseConnectionlessQueryTest {
 }
 
 private static Connection getTenantSpecificConnection(String tenantId) 
throws Exception {
-   Properties tenantProps = TEST_PROPERTIES;
+   Properties tenantProps = new Properties();
 tenantProps.put(PhoenixRuntime.TENANT_ID_ATTRIB, tenantId);
 Connection conn = DriverManager.getConnection(getUrl(), tenantProps);
 return conn;



git commit: PHOENIX-1111 Fix flapping unit tests by removing inappropriate usage of TestUtil.TEST_PROPERTIES

2014-07-25 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.0 ef16bbc78 - ba75ea131


PHOENIX- Fix flapping unit tests by removing inappropriate usage of 
TestUtil.TEST_PROPERTIES


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

Branch: refs/heads/4.0
Commit: ba75ea13178fd9395634ca2242b13fd9cb3fa97b
Parents: ef16bbc
Author: James Taylor jamestay...@apache.org
Authored: Fri Jul 25 13:21:00 2014 -0700
Committer: James Taylor jamestay...@apache.org
Committed: Fri Jul 25 13:22:32 2014 -0700

--
 .../java/org/apache/phoenix/compile/WhereOptimizerTest.java| 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/ba75ea13/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
--
diff --git 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
index c5ec72f..4ee428c 100644
--- 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
+++ 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
@@ -77,7 +77,7 @@ public class WhereOptimizerTest extends 
BaseConnectionlessQueryTest {
 }
 
 private static StatementContext compileStatement(String query, 
ListObject binds, Integer limit) throws SQLException {
-PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
TEST_PROPERTIES).unwrap(PhoenixConnection.class);
+PhoenixConnection pconn = DriverManager.getConnection(getUrl(), new 
Properties(TEST_PROPERTIES)).unwrap(PhoenixConnection.class);
 PhoenixPreparedStatement pstmt = new PhoenixPreparedStatement(pconn, 
query);
 TestUtil.bindParams(pstmt, binds);
 QueryPlan plan = pstmt.compileQuery();
@@ -1587,7 +1587,7 @@ public class WhereOptimizerTest extends 
BaseConnectionlessQueryTest {
 
 String tenantId = tenantId;
 String tenantViewDDL = CREATE VIEW TENANT_VIEW AS SELECT * FROM 
BASE_MULTI_TENANT_TABLE;
-Properties tenantProps = TEST_PROPERTIES;
+Properties tenantProps = new Properties();
 tenantProps.put(PhoenixRuntime.TENANT_ID_ATTRIB, tenantId);
 conn = DriverManager.getConnection(getUrl(), tenantProps);
 conn.createStatement().execute(tenantViewDDL);
@@ -1634,7 +1634,7 @@ public class WhereOptimizerTest extends 
BaseConnectionlessQueryTest {
 }
 
 private static Connection getTenantSpecificConnection(String tenantId) 
throws Exception {
-   Properties tenantProps = TEST_PROPERTIES;
+   Properties tenantProps = new Properties();
 tenantProps.put(PhoenixRuntime.TENANT_ID_ATTRIB, tenantId);
 Connection conn = DriverManager.getConnection(getUrl(), tenantProps);
 return conn;



git commit: PHOENIX-1111 Fix flapping unit tests by removing inappropriate usage of TestUtil.TEST_PROPERTIES

2014-07-25 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/master ba7da1963 - 14aa52c95


PHOENIX- Fix flapping unit tests by removing inappropriate usage of 
TestUtil.TEST_PROPERTIES


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

Branch: refs/heads/master
Commit: 14aa52c95ae92814680c94de697c2ecca339d442
Parents: ba7da19
Author: James Taylor jamestay...@apache.org
Authored: Fri Jul 25 13:21:00 2014 -0700
Committer: James Taylor jamestay...@apache.org
Committed: Fri Jul 25 13:23:15 2014 -0700

--
 .../java/org/apache/phoenix/compile/WhereOptimizerTest.java| 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/14aa52c9/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
--
diff --git 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
index c5ec72f..4ee428c 100644
--- 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
+++ 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereOptimizerTest.java
@@ -77,7 +77,7 @@ public class WhereOptimizerTest extends 
BaseConnectionlessQueryTest {
 }
 
 private static StatementContext compileStatement(String query, 
ListObject binds, Integer limit) throws SQLException {
-PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
TEST_PROPERTIES).unwrap(PhoenixConnection.class);
+PhoenixConnection pconn = DriverManager.getConnection(getUrl(), new 
Properties(TEST_PROPERTIES)).unwrap(PhoenixConnection.class);
 PhoenixPreparedStatement pstmt = new PhoenixPreparedStatement(pconn, 
query);
 TestUtil.bindParams(pstmt, binds);
 QueryPlan plan = pstmt.compileQuery();
@@ -1587,7 +1587,7 @@ public class WhereOptimizerTest extends 
BaseConnectionlessQueryTest {
 
 String tenantId = tenantId;
 String tenantViewDDL = CREATE VIEW TENANT_VIEW AS SELECT * FROM 
BASE_MULTI_TENANT_TABLE;
-Properties tenantProps = TEST_PROPERTIES;
+Properties tenantProps = new Properties();
 tenantProps.put(PhoenixRuntime.TENANT_ID_ATTRIB, tenantId);
 conn = DriverManager.getConnection(getUrl(), tenantProps);
 conn.createStatement().execute(tenantViewDDL);
@@ -1634,7 +1634,7 @@ public class WhereOptimizerTest extends 
BaseConnectionlessQueryTest {
 }
 
 private static Connection getTenantSpecificConnection(String tenantId) 
throws Exception {
-   Properties tenantProps = TEST_PROPERTIES;
+   Properties tenantProps = new Properties();
 tenantProps.put(PhoenixRuntime.TENANT_ID_ATTRIB, tenantId);
 Connection conn = DriverManager.getConnection(getUrl(), tenantProps);
 return conn;



Build failed in Jenkins: Phoenix | 3.0 | Hadoop1 #152

2014-07-25 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-3.0-hadoop1/152/changes

Changes:

[jamestaylor] PHOENIX- Fix flapping unit tests by removing inappropriate 
usage of TestUtil.TEST_PROPERTIES

--
[...truncated 2433 lines...]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ phoenix-core ---
[INFO] Surefire report directory: 
https://builds.apache.org/job/Phoenix-3.0-hadoop1/ws/phoenix-core/target/surefire-reports
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.17/surefire-junit4-2.17.pom
3/3 KB  
 
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.17/surefire-junit4-2.17.pom
 (3 KB at 21.7 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.17/surefire-junit4-2.17.jar
4/63 KB   
8/63 KB   
12/63 KB   
14/63 KB   
18/63 KB   
22/63 KB   
26/63 KB   
30/63 KB   
34/63 KB   
38/63 KB   
42/63 KB   
46/63 KB   
50/63 KB   
51/63 KB   
55/63 KB   
59/63 KB   
63/63 KB   
63/63 KB   
   
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.17/surefire-junit4-2.17.jar
 (63 KB at 350.9 KB/sec)

---
 T E S T S
---

---
 T E S T S
---
Running org.apache.phoenix.query.ConnectionlessUpsertTest
Running org.apache.phoenix.query.HBaseFactoryProviderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec - in 
org.apache.phoenix.query.HBaseFactoryProviderTest
Running org.apache.phoenix.client.TestClientKeyValueLocal
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.221 sec - in 
org.apache.phoenix.client.TestClientKeyValueLocal
Running org.apache.phoenix.arithmetic.ArithmeticOperationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.173 sec - in 
org.apache.phoenix.arithmetic.ArithmeticOperationTest
Running org.apache.phoenix.expression.SortOrderExpressionTest
Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 sec - in 
org.apache.phoenix.expression.SortOrderExpressionTest
Running org.apache.phoenix.expression.ColumnExpressionTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in 
org.apache.phoenix.expression.ColumnExpressionTest
Running org.apache.phoenix.expression.LikeExpressionTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in 
org.apache.phoenix.expression.LikeExpressionTest
Running org.apache.phoenix.expression.function.ExternalSqlTypeIdFunctionTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in 
org.apache.phoenix.expression.function.ExternalSqlTypeIdFunctionTest
Running org.apache.phoenix.expression.CoerceExpressionTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in 
org.apache.phoenix.expression.CoerceExpressionTest
Running org.apache.phoenix.parse.QueryParserTest
Tests run: 46, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.252 sec - in 
org.apache.phoenix.parse.QueryParserTest
Running org.apache.phoenix.mapreduce.CsvToKeyValueMapperTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.948 sec - in 
org.apache.phoenix.query.ConnectionlessUpsertTest
Running org.apache.phoenix.mapreduce.CsvBulkImportUtilTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec - in 
org.apache.phoenix.mapreduce.CsvBulkImportUtilTest
Running org.apache.phoenix.mapreduce.CsvBulkLoadToolTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec - in 
org.apache.phoenix.mapreduce.CsvBulkLoadToolTest
Running org.apache.phoenix.hbase.index.covered.data.TestIndexMemStore
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec - in 
org.apache.phoenix.hbase.index.covered.data.TestIndexMemStore
Running org.apache.phoenix.hbase.index.covered.example.TestColumnTracker
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestColumnTracker
Running 
org.apache.phoenix.hbase.index.covered.example.TestCoveredIndexSpecifierBuilder
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestCoveredIndexSpecifierBuilder
Running 
org.apache.phoenix.hbase.index.covered.example.TestCoveredColumnIndexCodec
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.243 sec - in 
org.apache.phoenix.mapreduce.CsvToKeyValueMapperTest
Running org.apache.phoenix.hbase.index.covered.TestLocalTableState
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.177 sec - in 
org.apache.phoenix.hbase.index.covered.example.TestCoveredColumnIndexCodec
Running 

Apache-Phoenix | 4.0 | Hadoop1 | Build Successful

2014-07-25 Thread Apache Jenkins Server
4.0 branch build status Successful

Source repository https://git-wip-us.apache.org/repos/asf/incubator-phoenix.git

Compiled Artifacts https://builds.apache.org/job/Phoenix-4.0-hadoop1/lastSuccessfulBuild/artifact/

Test Report https://builds.apache.org/job/Phoenix-4.0-hadoop1/lastCompletedBuild/testReport/

Changes
[jamestaylor] PHOENIX- Fix flapping unit tests by removing inappropriate usage of TestUtil.TEST_PROPERTIES



Apache-Phoenix | Master | Hadoop1 | Build Successful

2014-07-25 Thread Apache Jenkins Server
Master branch build status Successful
Source repository https://git-wip-us.apache.org/repos/asf/incubator-phoenix.git

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

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

Changes
[jamestaylor] PHOENIX- Fix flapping unit tests by removing inappropriate usage of TestUtil.TEST_PROPERTIES



[3/6] PHOENIX-1122 Ensure TEST_PROPERTIES is not updated to prevent test flapping

2014-07-25 Thread jamestaylor
http://git-wip-us.apache.org/repos/asf/phoenix/blob/a411c7b2/phoenix-core/src/it/java/org/apache/phoenix/end2end/RowValueConstructorIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/RowValueConstructorIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/RowValueConstructorIT.java
index dec44c2..bdae151 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/RowValueConstructorIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/RowValueConstructorIT.java
@@ -52,6 +52,7 @@ import java.util.Properties;
 
 import org.apache.phoenix.util.DateUtil;
 import org.apache.phoenix.util.PhoenixRuntime;
+import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.TestUtil;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
@@ -65,7 +66,7 @@ public class RowValueConstructorIT extends 
BaseClientManagedTimeIT {
 String tenantId = getOrganizationId();
 initATableValues(tenantId, getDefaultSplits(tenantId), null, ts);
 String query = SELECT a_integer, x_integer FROM aTable WHERE 
?=organization_id  AND (a_integer, x_integer) = (7, 5);
-Properties props = new Properties(TEST_PROPERTIES);
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts 
+ 2)); // Execute at timestamp 2
 Connection conn = DriverManager.getConnection(getUrl(), props);
 try {
@@ -90,7 +91,7 @@ public class RowValueConstructorIT extends 
BaseClientManagedTimeIT {
 String tenantId = getOrganizationId();
 initATableValues(tenantId, getDefaultSplits(tenantId), null, ts);
 String query = SELECT a_integer, x_integer FROM aTable WHERE 
?=organization_id  AND (a_integer, x_integer) = (4, 4);
-Properties props = new Properties(TEST_PROPERTIES);
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts 
+ 2)); // Execute at timestamp 2
 Connection conn = DriverManager.getConnection(getUrl(), props);
 try {
@@ -116,7 +117,7 @@ public class RowValueConstructorIT extends 
BaseClientManagedTimeIT {
 String tenantId = getOrganizationId();
 initATableValues(tenantId, getDefaultSplits(tenantId), null, ts);
 String query = SELECT a_integer, x_integer FROM aTable WHERE 
?=organization_id  AND (a_integer, x_integer, y_integer) = (7, 5);
-Properties props = new Properties(TEST_PROPERTIES);
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts 
+ 2)); // Execute at timestamp 2
 Connection conn = DriverManager.getConnection(getUrl(), props);
 try {
@@ -142,7 +143,7 @@ public class RowValueConstructorIT extends 
BaseClientManagedTimeIT {
 String tenantId = getOrganizationId();
 initATableValues(tenantId, getDefaultSplits(tenantId), null, ts);
 String query = SELECT a_integer, x_integer FROM aTable WHERE 
?=organization_id  AND (a_integer, x_integer) = (?, ?);
-Properties props = new Properties(TEST_PROPERTIES);
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts 
+ 2)); // Execute at timestamp 2
 Connection conn = DriverManager.getConnection(getUrl(), props);
 try {
@@ -169,7 +170,7 @@ public class RowValueConstructorIT extends 
BaseClientManagedTimeIT {
 String tenantId = getOrganizationId();
 initATableValues(tenantId, getDefaultSplits(tenantId), null, ts);
 String query = SELECT a_integer, x_integer FROM aTable WHERE 
?=organization_id  AND (a_integer, x_integer) = 7;
-Properties props = new Properties(TEST_PROPERTIES);
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts 
+ 2)); // Execute at timestamp 2
 Connection conn = DriverManager.getConnection(getUrl(), props);
 try {
@@ -193,7 +194,7 @@ public class RowValueConstructorIT extends 
BaseClientManagedTimeIT {
 String tenantId = getOrganizationId();
 initATableValues(tenantId, getDefaultSplits(tenantId), null, ts);
 String query = SELECT a_integer, x_integer FROM aTable WHERE 
?=organization_id  AND 7 = (a_integer, x_integer);
-Properties props = new Properties(TEST_PROPERTIES);
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts 
+ 2)); // Execute at timestamp 2
 Connection conn = DriverManager.getConnection(getUrl(), props);
 try {
@@ -217,7 +218,7 @@ public class RowValueConstructorIT extends 

[1/6] PHOENIX-1122 Ensure TEST_PROPERTIES is not updated to prevent test flapping

2014-07-25 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/3.0 41d7afcb8 - a411c7b23


http://git-wip-us.apache.org/repos/asf/phoenix/blob/a411c7b2/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereCompilerTest.java
--
diff --git 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereCompilerTest.java 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereCompilerTest.java
index 5122963..b3b8ac0 100644
--- 
a/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereCompilerTest.java
+++ 
b/phoenix-core/src/test/java/org/apache/phoenix/compile/WhereCompilerTest.java
@@ -65,6 +65,7 @@ import org.apache.phoenix.schema.SaltingUtil;
 import org.apache.phoenix.util.ByteUtil;
 import org.apache.phoenix.util.DateUtil;
 import org.apache.phoenix.util.NumberUtil;
+import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.SchemaUtil;
 import org.apache.phoenix.util.StringUtil;
 import org.junit.Ignore;
@@ -79,7 +80,7 @@ public class WhereCompilerTest extends 
BaseConnectionlessQueryTest {
 public void testSingleEqualFilter() throws SQLException {
 String tenantId = 001;
 String query = select * from atable where organization_id=' + 
tenantId + ' and a_integer=0;
-PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
TEST_PROPERTIES).unwrap(PhoenixConnection.class);
+PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
PropertiesUtil.deepCopy(TEST_PROPERTIES)).unwrap(PhoenixConnection.class);
 PhoenixPreparedStatement pstmt = new PhoenixPreparedStatement(pconn, 
query);
 QueryPlan plan = pstmt.optimizeQuery();
 Scan scan = plan.getContext().getScan();
@@ -94,7 +95,7 @@ public class WhereCompilerTest extends 
BaseConnectionlessQueryTest {
 
 @Test
 public void testSingleFixedFullPkSalted() throws SQLException {
-PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
TEST_PROPERTIES).unwrap(PhoenixConnection.class);
+PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
PropertiesUtil.deepCopy(TEST_PROPERTIES)).unwrap(PhoenixConnection.class);
 pconn.createStatement().execute(CREATE TABLE t (k bigint not null 
primary key, v varchar) SALT_BUCKETS=20);
 String query = select * from t where k= + 1;
 PhoenixPreparedStatement pstmt = new PhoenixPreparedStatement(pconn, 
query);
@@ -115,7 +116,7 @@ public class WhereCompilerTest extends 
BaseConnectionlessQueryTest {
 
 @Test
 public void testSingleVariableFullPkSalted() throws SQLException {
-PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
TEST_PROPERTIES).unwrap(PhoenixConnection.class);
+PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
PropertiesUtil.deepCopy(TEST_PROPERTIES)).unwrap(PhoenixConnection.class);
 pconn.createStatement().execute(CREATE TABLE t (k varchar primary 
key, v varchar) SALT_BUCKETS=20);
 String query = select * from t where k='a';
 PhoenixPreparedStatement pstmt = new PhoenixPreparedStatement(pconn, 
query);
@@ -136,7 +137,7 @@ public class WhereCompilerTest extends 
BaseConnectionlessQueryTest {
 
 @Test
 public void testMultiFixedFullPkSalted() throws SQLException {
-PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
TEST_PROPERTIES).unwrap(PhoenixConnection.class);
+PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
PropertiesUtil.deepCopy(TEST_PROPERTIES)).unwrap(PhoenixConnection.class);
 pconn.createStatement().execute(CREATE TABLE t (k bigint not null 
primary key, v varchar) SALT_BUCKETS=20);
 String query = select * from t where k in (1,3);
 PhoenixPreparedStatement pstmt = new PhoenixPreparedStatement(pconn, 
query);
@@ -185,7 +186,7 @@ public class WhereCompilerTest extends 
BaseConnectionlessQueryTest {
 public void testMultiColumnEqualFilter() throws SQLException {
 String tenantId = 001;
 String query = select * from atable where organization_id=' + 
tenantId + ' and a_string=b_string;
-PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
TEST_PROPERTIES).unwrap(PhoenixConnection.class);
+PhoenixConnection pconn = DriverManager.getConnection(getUrl(), 
PropertiesUtil.deepCopy(TEST_PROPERTIES)).unwrap(PhoenixConnection.class);
 PhoenixPreparedStatement pstmt = new PhoenixPreparedStatement(pconn, 
query);
 QueryPlan plan = pstmt.optimizeQuery();
 Scan scan = plan.getContext().getScan();
@@ -202,7 +203,7 @@ public class WhereCompilerTest extends 
BaseConnectionlessQueryTest {
 public void testCollapseFunctionToNull() throws SQLException {
 String tenantId = 001;
 String query = select * from atable where organization_id=' + 
tenantId + ' and substr(entity_id,null) = 'foo';
-PhoenixConnection pconn 

[5/6] PHOENIX-1122 Ensure TEST_PROPERTIES is not updated to prevent test flapping

2014-07-25 Thread jamestaylor
http://git-wip-us.apache.org/repos/asf/phoenix/blob/a411c7b2/phoenix-core/src/it/java/org/apache/phoenix/end2end/DefaultParallelIteratorsRegionSplitterIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DefaultParallelIteratorsRegionSplitterIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DefaultParallelIteratorsRegionSplitterIT.java
index 3ebbc8b..cd8f1fb 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DefaultParallelIteratorsRegionSplitterIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DefaultParallelIteratorsRegionSplitterIT.java
@@ -43,6 +43,7 @@ import org.apache.phoenix.query.KeyRange;
 import org.apache.phoenix.schema.PDataType;
 import org.apache.phoenix.schema.TableRef;
 import org.apache.phoenix.util.PhoenixRuntime;
+import org.apache.phoenix.util.PropertiesUtil;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
 
@@ -85,7 +86,7 @@ public class DefaultParallelIteratorsRegionSplitterIT extends 
BaseParallelIterat
 long ts = nextTimestamp();
 initTableValues(ts);
 String url = getUrl() + ; + PhoenixRuntime.CURRENT_SCN_ATTRIB + = 
+ ts;
-Properties props = new Properties(TEST_PROPERTIES);
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 Connection conn = DriverManager.getConnection(url, props);
 
 Scan scan = new Scan();
@@ -127,12 +128,12 @@ public class DefaultParallelIteratorsRegionSplitterIT 
extends BaseParallelIterat
 long ts = nextTimestamp();
 initTableValues(ts);
 String url = getUrl() + ; + PhoenixRuntime.CURRENT_SCN_ATTRIB + = 
+ ts;
-Properties props = new Properties(TEST_PROPERTIES);
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 Connection conn = DriverManager.getConnection(url, props);
 
 Scan scan = new Scan();
 
-ConnectionQueryServices services = 
driver.getConnectionQueryServices(getUrl(), TEST_PROPERTIES);
+ConnectionQueryServices services = 
driver.getConnectionQueryServices(getUrl(), 
PropertiesUtil.deepCopy(TEST_PROPERTIES));
 TableRef table = getTableRef(conn,ts);
 services.getStatsManager().updateStats(table);
 scan.setStartRow(HConstants.EMPTY_START_ROW);

http://git-wip-us.apache.org/repos/asf/phoenix/blob/a411c7b2/phoenix-core/src/it/java/org/apache/phoenix/end2end/DerivedTableIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DerivedTableIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DerivedTableIT.java
index d2b0c8a..2e45313 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/DerivedTableIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/DerivedTableIT.java
@@ -47,6 +47,7 @@ import java.util.List;
 import java.util.Properties;
 
 import org.apache.phoenix.util.PhoenixRuntime;
+import org.apache.phoenix.util.PropertiesUtil;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
@@ -74,7 +75,7 @@ public class DerivedTableIT extends BaseClientManagedTimeIT {
  ts = nextTimestamp();
 initATableValues(tenantId, getDefaultSplits(tenantId), null, ts);
 if (indexDDL != null  indexDDL.length()  0) {
-Properties props = new Properties(TEST_PROPERTIES);
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, 
Long.toString(ts));
 Connection conn = DriverManager.getConnection(getUrl(), props);
 conn.createStatement().execute(indexDDL);
@@ -93,7 +94,7 @@ public class DerivedTableIT extends BaseClientManagedTimeIT {
 @Test
 public void testDerivedTableWithWhere() throws Exception {
 long ts = nextTimestamp();
-Properties props = new Properties(TEST_PROPERTIES);
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts 
+ 1));
 Connection conn = DriverManager.getConnection(getUrl(), props);
 try {
@@ -205,7 +206,7 @@ public class DerivedTableIT extends BaseClientManagedTimeIT 
{
 @Test
 public void testDerivedTableWithGroupBy() throws Exception {
 long ts = nextTimestamp();
-Properties props = new Properties(TEST_PROPERTIES);
+Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
 props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts 
+ 1));
 Connection conn = DriverManager.getConnection(getUrl(), props);
 try {
@@ -240,7 +241,7 @@ public class DerivedTableIT extends BaseClientManagedTimeIT 
{
 @Test
 public void testDerivedTableWithOrderBy() throws Exception {
 long ts = 

Build failed in Jenkins: Phoenix | 3.0 | Hadoop1 #153

2014-07-25 Thread Apache Jenkins Server
See https://builds.apache.org/job/Phoenix-3.0-hadoop1/153/changes

Changes:

[jtaylor] PHOENIX-1122 Ensure TEST_PROPERTIES is not updated to prevent test 
flapping

--
[...truncated 114 lines...]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ phoenix-core 
---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
phoenix-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to META-INF/services
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ phoenix-core 
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 641 source files to 
https://builds.apache.org/job/Phoenix-3.0-hadoop1/ws/phoenix-core/target/classes
[WARNING] 
https://builds.apache.org/job/Phoenix-3.0-hadoop1/ws/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixResultSet.java:
 Some input files use or override a deprecated API.
[WARNING] 
https://builds.apache.org/job/Phoenix-3.0-hadoop1/ws/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixResultSet.java:
 Recompile with -Xlint:deprecation for details.
[WARNING] 
https://builds.apache.org/job/Phoenix-3.0-hadoop1/ws/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixStatement.java:
 
https://builds.apache.org/job/Phoenix-3.0-hadoop1/ws/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixStatement.java
 uses unchecked or unsafe operations.
[WARNING] 
https://builds.apache.org/job/Phoenix-3.0-hadoop1/ws/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixStatement.java:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
phoenix-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ 
phoenix-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 214 source files to 
https://builds.apache.org/job/Phoenix-3.0-hadoop1/ws/phoenix-core/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ phoenix-core ---
[INFO] Surefire report directory: 
https://builds.apache.org/job/Phoenix-3.0-hadoop1/ws/phoenix-core/target/surefire-reports

---
 T E S T S
---

---
 T E S T S
---
Running org.apache.phoenix.mapreduce.CsvBulkLoadToolTest
Running org.apache.phoenix.mapreduce.CsvToKeyValueMapperTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.325 sec - in 
org.apache.phoenix.mapreduce.CsvBulkLoadToolTest
Running org.apache.phoenix.mapreduce.CsvBulkImportUtilTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.116 sec - in 
org.apache.phoenix.mapreduce.CsvBulkImportUtilTest
Running org.apache.phoenix.jdbc.PhoenixEmbeddedDriverTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.058 sec - in 
org.apache.phoenix.jdbc.PhoenixEmbeddedDriverTest
Running org.apache.phoenix.jdbc.PhoenixDriverTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.668 sec - in 
org.apache.phoenix.mapreduce.CsvToKeyValueMapperTest
Running org.apache.phoenix.util.ScanUtilTest
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.085 sec - in 
org.apache.phoenix.util.ScanUtilTest
Running org.apache.phoenix.util.PropertiesUtilTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.phoenix.util.PropertiesUtilTest
Running org.apache.phoenix.util.MetaDataUtilTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec - in 
org.apache.phoenix.util.MetaDataUtilTest
Running org.apache.phoenix.util.DateUtilTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec - in 
org.apache.phoenix.util.DateUtilTest
Running org.apache.phoenix.util.ColumnInfoTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in 
org.apache.phoenix.util.ColumnInfoTest
Running org.apache.phoenix.util.SequenceUtilTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec - in 
org.apache.phoenix.util.SequenceUtilTest
Running org.apache.phoenix.util.PhoenixContextExecutorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.phoenix.util.PhoenixContextExecutorTest
Running org.apache.phoenix.util.Base62EncoderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec - in 
org.apache.phoenix.util.Base62EncoderTest
Running org.apache.phoenix.util.PhoenixRuntimeTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.862 sec - in 
org.apache.phoenix.jdbc.PhoenixDriverTest