svn commit: r22108 - in /dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0: ./ bin/ src/

2017-10-03 Thread jamestaylor
Author: jamestaylor
Date: Wed Oct  4 01:23:30 2017
New Revision: 22108

Log:
Push apache-phoenix-v4.12.0-HBase-0.98-rc0

Added:
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/

dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz
   (with props)

dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.asc

dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.md5

dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.sha
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/src/

dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/src/apache-phoenix-4.12.0-HBase-0.98-src.tar.gz
   (with props)

dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/src/apache-phoenix-4.12.0-HBase-0.98-src.tar.gz.asc

dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/src/apache-phoenix-4.12.0-HBase-0.98-src.tar.gz.md5

dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/src/apache-phoenix-4.12.0-HBase-0.98-src.tar.gz.sha

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz
==
Binary file - no diff available.

Propchange: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz
--
svn:mime-type = application/octet-stream

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.asc
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.asc
 (added)
+++ 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.asc
 Wed Oct  4 01:23:30 2017
@@ -0,0 +1,16 @@
+-BEGIN PGP SIGNATURE-
+
+iQIzBAABCAAdFiEEgsuRaigMAZrKh3zlMI++4GCIvg8FAlnULWMACgkQMI++4GCI
+vg+uBw//d1JlTTyQXUR1fHCI2mPJeREi3iDO2ZuwIE1UdRLuxyxaggcf4EXJKvtR
+/3ZLANJIvnxQNr4DjLdQCx8+k7wtPlL6jgbk/DXV2CkIBXUAf83zU7eXgudrgX2o
+m86UYj3thz0MM+gLA8dxS0c48fqNROwG32VCF4HidybPpsilhZ1Cly9rTb7eT7G+
+d5imX2SAeAanNsD5kG7YvzkxMTl5bsGzqcaJXnv1fpC+R87yiTFgUuWi9+0pT5tV
+VVKNp14K4ZgxirotQSh0ncdAHAaO1b3hbWcmV8gdEH4bQyw7jbHddlEtkyxes4Wg
+V3IJgScsF98QO9cowZ7yzwvepgdd324GJPWqLdyKF0gPsWEGEJD0vowhvD+LuVve
+5hkIlZ7el2mmkmas75B1JbjOqhP+yZTaU1TVboN40zGqfSPqUP8gmeeT1VLdIlAn
+M2YNTYGMr4HrojIlGwFQ+fODhi5aXDLsJEcs/O52c0WlqthJCCDQCA4tvBY8THI4
+fOkXimFgELKboM8GZGZva8pJn/g/9nZJ2cJvswlaK299SkJRJZXQa9hnnZylugGU
+wIoYueQwlKrBqCbB0K0sI20BrGboOe7GK+eRC1KMV4BoPy6FuJk0VjlaFdKToCeW
+8wHFbqfRmym6/g2r70ygxbj+SdnHoaeKrBg/QM8SavcexJ47DeI=
+=Xfa4
+-END PGP SIGNATURE-

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.md5
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.md5
 (added)
+++ 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.md5
 Wed Oct  4 01:23:30 2017
@@ -0,0 +1 @@
+531f5c7344fd5633b6a77e6a3156bab0 *apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.sha
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.sha
 (added)
+++ 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/bin/apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz.sha
 Wed Oct  4 01:23:30 2017
@@ -0,0 +1,2 @@
+c79ab489211bdca717ac2bb3b45a05697977dc7d46c19bcd2759afba2ed3b5eca36b205aa3138352d6d1386899bbc366f431e1a24955dd7a788ec0a6a451b6f9
 *apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz
+1e84da1ec9268ee5a79682e528a8d5076fde39032ee99b6e62b6a6a33a45b5a4 
*apache-phoenix-4.12.0-HBase-0.98-bin.tar.gz

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/src/apache-phoenix-4.12.0-HBase-0.98-src.tar.gz
==
Binary file - no diff available.

Propchange: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/src/apache-phoenix-4.12.0-HBase-0.98-src.tar.gz
--
svn:mime-type = application/octet-stream

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/src/apache-phoenix-4.12.0-HBase-0.98-src.tar.gz.asc
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-0.98-rc0/src/apache-phoenix-4.12.0-HBase-0.98-src.tar.gz.asc
 (added)
+++ 
dev/phoenix/apach

svn commit: r22107 - in /dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0: ./ bin/ src/

2017-10-03 Thread jamestaylor
Author: jamestaylor
Date: Wed Oct  4 01:01:40 2017
New Revision: 22107

Log:
Push apache-phoenix-v4.12.0-HBase-1.1-rc0

Added:
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz
   (with props)

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.asc

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.md5

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.sha
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/src/

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/src/apache-phoenix-4.12.0-HBase-1.1-src.tar.gz
   (with props)

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/src/apache-phoenix-4.12.0-HBase-1.1-src.tar.gz.asc

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/src/apache-phoenix-4.12.0-HBase-1.1-src.tar.gz.md5

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/src/apache-phoenix-4.12.0-HBase-1.1-src.tar.gz.sha

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz
==
Binary file - no diff available.

Propchange: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz
--
svn:mime-type = application/octet-stream

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.asc
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.asc
 (added)
+++ 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.asc
 Wed Oct  4 01:01:40 2017
@@ -0,0 +1,16 @@
+-BEGIN PGP SIGNATURE-
+
+iQIzBAABCAAdFiEEgsuRaigMAZrKh3zlMI++4GCIvg8FAlnUKzQACgkQMI++4GCI
+vg9JlxAArR+doI0rilPn/eXW4If+IdH9bX8A3WZKO7d99M9QkQWS6HkQSfpMq/dF
+WXcieSiWw3KXs4MEgXiSAALhH6ZjxXYaJrNAoLo5gZX0uBwvFHYuYwQOwCcSxb1y
+VXMf7K3ORCilLzQ7uU1FNn28i6zLjx9TINjv0sObHmXFcZ1E3pLcd05VLdxpJPpl
+FCkNC8b0ayv7sIjDnWpRiM20ak/dE3lLDCEaN7cwqcjZFF4hvJeXnEFdjVNNsIe8
+hcXKG6AyPIZXm/kiQj+6h8ztqczUFdi/2s2XdN3c6MAWRc9iYbkLJ2r9+iwzC1K/
+pDWk0U/un5mQkXcRG/o+zYNCrr5ddUssUFvUuDfAeybHO9v815iLrAarVhWxTsyA
+OrZ8afdHrZNg1Xr50vQ3hYlnCIWyvpX6/T+v7j1PegXCe8miVFGH2ykA0ea712q9
+CmHGuXAnrls12cE6pZUNs0ds037mXXL/v74YlywBgKlOZrXXc51kJZ5Czml47121
+BFewTOXQmsG0PTbBJUlC7oV7D0fG7xcJcrhqCPy1H9OT/bvwwiyJ+1ChXke8K83c
+rpijkvqfR1N6KuICDKYzVn2gRhFIB2kJJacoobWw/+7d/fBF+dlpSoTI1dY6+6o2
+A2dbz5OkPslhsQwFOllGoxr5J7aWSSQnl1BAAad4qWUBO+9xxGs=
+=ODaJ
+-END PGP SIGNATURE-

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.md5
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.md5
 (added)
+++ 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.md5
 Wed Oct  4 01:01:40 2017
@@ -0,0 +1 @@
+e87d23b57197ac2cdc9ce8499d81b30c *apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.sha
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.sha
 (added)
+++ 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz.sha
 Wed Oct  4 01:01:40 2017
@@ -0,0 +1,2 @@
+91ce063491f5c4d22118b6e6501abbcf87668c636e79f887aec4a2abf04fc45e077ba8398e847f23ca49c83bcbbcf0b96e9b6ed8a065d9daed10131ebd5a7f69
 *apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz
+ee639869815905f98663cd1b5d5bc54c3f212d83d8e358730084c96814b342a5 
*apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/src/apache-phoenix-4.12.0-HBase-1.1-src.tar.gz
==
Binary file - no diff available.

Propchange: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/src/apache-phoenix-4.12.0-HBase-1.1-src.tar.gz
--
svn:mime-type = application/octet-stream

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/src/apache-phoenix-4.12.0-HBase-1.1-src.tar.gz.asc
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/src/apache-phoenix-4.12.0-HBase-1.1-src.tar.gz.asc
 (added)
+++ 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.1-rc0/src/apache-phoenix-4.

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

2017-10-03 Thread Apache Jenkins Server
4.x-HBase-1.1 branch build status Successful

Source repository https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=shortlog;h=refs/heads/4.x-HBase-1.1

Compiled Artifacts https://builds.apache.org/job/Phoenix-4.x-HBase-1.1/lastSuccessfulBuild/artifact/

Test Report https://builds.apache.org/job/Phoenix-4.x-HBase-1.1/lastCompletedBuild/testReport/

Changes
[samarth] PHOENIX-4272 Dial down number of threads and repeats in

[samarth] PHOENIX-4273 Don't run MutableIndexSplitIT tests till fixed

[jtaylor] PHOENIX-4275 Use unique table names for ViewIT

[jtaylor] PHOENIX-4274 Test case for Hint query for index on view does not use



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


[phoenix] Git Push Summary

2017-10-03 Thread jamestaylor
Repository: phoenix
Updated Tags:  refs/tags/v4.12.0-HBase-0.98-rc0 [created] c76baa451


svn commit: r22106 - in /dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0: ./ bin/ src/

2017-10-03 Thread jamestaylor
Author: jamestaylor
Date: Wed Oct  4 00:43:51 2017
New Revision: 22106

Log:
Push apache-phoenix-v4.12.0-HBase-1.2-rc0

Added:
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz
   (with props)

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.asc

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.md5

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.sha
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/src/

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/src/apache-phoenix-4.12.0-HBase-1.2-src.tar.gz
   (with props)

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/src/apache-phoenix-4.12.0-HBase-1.2-src.tar.gz.asc

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/src/apache-phoenix-4.12.0-HBase-1.2-src.tar.gz.md5

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/src/apache-phoenix-4.12.0-HBase-1.2-src.tar.gz.sha

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz
==
Binary file - no diff available.

Propchange: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz
--
svn:mime-type = application/octet-stream

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.asc
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.asc
 (added)
+++ 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.asc
 Wed Oct  4 00:43:51 2017
@@ -0,0 +1,16 @@
+-BEGIN PGP SIGNATURE-
+
+iQIzBAABCAAdFiEEgsuRaigMAZrKh3zlMI++4GCIvg8FAlnUJsQACgkQMI++4GCI
+vg/SZA//aVO5aWLEgb5EBjlHwCS3L2Y6WVmXDD7jYoHjqXRqUiKKPnTtgshP6msM
+ccbRNO5emG0bfX4J6yu1Eyo1sZAnYmMPJo4AChdUtZZIduY339uoGbaBX2T0EjZa
+Jq9VuSLHmYjRwXMxGcKGFBg5seTqSdTt/a98T3hkWfmCma6yNxGne02e8TqOSenk
+GfaeFDZK355qKCpqG2AiI+O7tySjIPP0h/2f4k+m7WqavEhabLZzmFOReX2SNTGl
+Pj8gSKVGPw/jKF8nRFid0OdUYCrGbV5EJ86oZdbUcl7zF2EnAtdQO40f6V+Fk42i
+lOKW0tjbAS7f8tnNl2k5JMqOL9IeSx4NO1DClFgtzDxSWUoRLXuLDJm3dLH1Kr6Y
+6Eqjrwm7HxUKz22gatSAPCLvFzSUoeJlvcBxbarqR1n3fn8tl6JDar+nGQAfS+cN
+qrJjhB5S79Edw5kBWGHGmul8phOH5x6Slt2ApD/X6/N0sd3Bvm8ns9dscdiND2Da
+zFEHQg13ngy3dwmyEOBXjwmBzTvcDVHwV1khu3OurVjJ/BZ8BU+8Uy3h7cLZDoD4
+KKj1jz17fzFKP7OO6CEipU/gpfKoHZA+RrMfvbE/n54nsqio3Jopv8+taf1H/3u5
+kB3F06BYcp1CW4OUMd9qWoRdR8KBcMinAZlHGUW8A5esboc21sI=
+=ubkL
+-END PGP SIGNATURE-

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.md5
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.md5
 (added)
+++ 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.md5
 Wed Oct  4 00:43:51 2017
@@ -0,0 +1 @@
+66f742293ac46cb9a414912b3da380a1 *apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.sha
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.sha
 (added)
+++ 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/bin/apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz.sha
 Wed Oct  4 00:43:51 2017
@@ -0,0 +1,2 @@
+9b509a50f8973b01513976e9e3fa37f60edfdd503646bbbe1fafa495c51f61a76951395e404382449da588fb8f2321fd7cc6a63b2dec350804f467a0a25487f4
 *apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz
+0d72d4d2763c41e9ff99a6f97e4fbfd308ed618806b5f8a9874dbf2bb13d688d 
*apache-phoenix-4.12.0-HBase-1.2-bin.tar.gz

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/src/apache-phoenix-4.12.0-HBase-1.2-src.tar.gz
==
Binary file - no diff available.

Propchange: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/src/apache-phoenix-4.12.0-HBase-1.2-src.tar.gz
--
svn:mime-type = application/octet-stream

Added: 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/src/apache-phoenix-4.12.0-HBase-1.2-src.tar.gz.asc
==
--- 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/src/apache-phoenix-4.12.0-HBase-1.2-src.tar.gz.asc
 (added)
+++ 
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.2-rc0/src/apache-phoenix-4.

[phoenix] Git Push Summary

2017-10-03 Thread jamestaylor
Repository: phoenix
Updated Tags:  refs/tags/v4.12.0-HBase-1.1-rc0 [created] 0282974c9


svn commit: r22105 - in /dev/phoenix: ./ apache-phoenix-4.11.0-HBase-0.98-rc0/ apache-phoenix-4.11.0-HBase-1.1-rc0/ apache-phoenix-4.11.0-HBase-1.2-rc0/ apache-phoenix-4.11.0-HBase-1.3-rc0/ apache-pho

2017-10-03 Thread jamestaylor
Author: jamestaylor
Date: Wed Oct  4 00:26:24 2017
New Revision: 22105

Log:
Add myself to KEYS and push apache-phoenix-v4.12.0-HBase-1.3-rc0

Added:
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.3-rc0/
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.3-rc0/bin/

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.3-rc0/bin/apache-phoenix-4.12.0-HBase-1.3-bin.tar.gz
   (with props)

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.3-rc0/bin/apache-phoenix-4.12.0-HBase-1.3-bin.tar.gz.asc

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.3-rc0/bin/apache-phoenix-4.12.0-HBase-1.3-bin.tar.gz.md5

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.3-rc0/bin/apache-phoenix-4.12.0-HBase-1.3-bin.tar.gz.sha
dev/phoenix/apache-phoenix-v4.12.0-HBase-1.3-rc0/src/

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.3-rc0/src/apache-phoenix-4.12.0-HBase-1.3-src.tar.gz
   (with props)

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.3-rc0/src/apache-phoenix-4.12.0-HBase-1.3-src.tar.gz.asc

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.3-rc0/src/apache-phoenix-4.12.0-HBase-1.3-src.tar.gz.md5

dev/phoenix/apache-phoenix-v4.12.0-HBase-1.3-rc0/src/apache-phoenix-4.12.0-HBase-1.3-src.tar.gz.sha
Removed:
dev/phoenix/apache-phoenix-4.11.0-HBase-0.98-rc0/
dev/phoenix/apache-phoenix-4.11.0-HBase-1.1-rc0/
dev/phoenix/apache-phoenix-4.11.0-HBase-1.2-rc0/
dev/phoenix/apache-phoenix-4.11.0-HBase-1.3-rc0/
Modified:
dev/phoenix/KEYS

Modified: dev/phoenix/KEYS
==
--- dev/phoenix/KEYS (original)
+++ dev/phoenix/KEYS Wed Oct  4 00:26:24 2017
@@ -71,6 +71,100 @@ fMFOWYmlNK8cL+Z7zaEOFYF5ug/i0hZhhzKZc03r
 GR2wPntvTGNAWEcuwD1/D1gws5A=
 =nO9e
 -END PGP PUBLIC KEY BLOCK-
+pub   4096R/9461178E 2014-08-20
+uid  Mujtaba Chohan (CODE SIGNING KEY) 
+sig 39461178E 2014-08-20  Mujtaba Chohan (CODE SIGNING KEY) 

+sub   4096R/040CE8A4 2014-08-20
+sig  9461178E 2014-08-20  Mujtaba Chohan (CODE SIGNING KEY) 

+
+-BEGIN PGP PUBLIC KEY BLOCK-
+Version: GnuPG v1.4.11 (GNU/Linux)
+
+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

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

2017-10-03 Thread Apache Jenkins Server
4.x-HBase-1.2 branch build status Successful

Source repository https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=shortlog;h=refs/heads/4.x-HBase-1.2

Compiled Artifacts https://builds.apache.org/job/Phoenix-4.x-HBase-1.2/lastSuccessfulBuild/artifact/

Test Report https://builds.apache.org/job/Phoenix-4.x-HBase-1.2/lastCompletedBuild/testReport/

Changes
[samarth] PHOENIX-4272 Dial down number of threads and repeats in

[samarth] PHOENIX-4273 Don't run MutableIndexSplitIT tests till fixed

[jtaylor] PHOENIX-4275 Use unique table names for ViewIT

[jtaylor] PHOENIX-4274 Test case for Hint query for index on view does not use



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


[phoenix] Git Push Summary

2017-10-03 Thread jamestaylor
Repository: phoenix
Updated Tags:  refs/tags/v4.12.0-HBase-1.2-rc0 [created] 827d8c8c8


Apache-Phoenix | Master | Build Successful

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

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

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

Changes
[samarth] PHOENIX-4273 Don't run MutableIndexSplitIT tests till fixed

[jtaylor] PHOENIX-4275 Use unique table names for ViewIT

[jtaylor] PHOENIX-4274 Test case for Hint query for index on view does not use



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


svn commit: r22102 - /release/phoenix/KEYS

2017-10-03 Thread jamestaylor
Author: jamestaylor
Date: Tue Oct  3 23:46:49 2017
New Revision: 22102

Log:
Removed extra block in KEYS file

Modified:
release/phoenix/KEYS

Modified: release/phoenix/KEYS
==
--- release/phoenix/KEYS (original)
+++ release/phoenix/KEYS Tue Oct  3 23:46:49 2017
@@ -287,58 +287,6 @@ Q1dstkNAtnDWggNEHwCR3djS6/gmxHBRG1Qvrbgj
 mV9cuf9lf5RFMNgxjdiM4A==
 =vI7i
 -END PGP PUBLIC KEY BLOCK-
--BEGIN PGP PUBLIC KEY BLOCK-
-
-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
-FEq24aBs/3TZTZDFTPqKsAWrRFc=
-=RCo0
--END PGP PUBLIC KEY BLOCK-
 pub   rsa4096 2017-10-03 [SC]
   82CB916A280C019ACA877CE5308FBEE06088BE0F
 uid   [ultimate] James Taylor (CODE SIGNING KEY) 





[phoenix] Git Push Summary

2017-10-03 Thread jamestaylor
Repository: phoenix
Updated Tags:  refs/tags/v4.12.0-HBase-1.3-rc0 [created] 9abb64829


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

2017-10-03 Thread Apache Jenkins Server
4.x-HBase-1.1 branch build status Successful

Source repository https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=shortlog;h=refs/heads/4.x-HBase-1.1

Compiled Artifacts https://builds.apache.org/job/Phoenix-4.x-HBase-1.1/lastSuccessfulBuild/artifact/

Test Report https://builds.apache.org/job/Phoenix-4.x-HBase-1.1/lastCompletedBuild/testReport/

Changes
[jtaylor] PHOENIX-4271 MutableIndexFailureIT failing for local indexes on



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


Jenkins build is back to normal : Phoenix-4.x-HBase-1.2 #197

2017-10-03 Thread Apache Jenkins Server
See 




svn commit: r22101 - /release/phoenix/KEYS

2017-10-03 Thread jamestaylor
Author: jamestaylor
Date: Tue Oct  3 22:28:47 2017
New Revision: 22101

Log:
Adding James Taylor to KEYS file

Modified:
release/phoenix/KEYS

Modified: release/phoenix/KEYS
==
--- release/phoenix/KEYS (original)
+++ release/phoenix/KEYS Tue Oct  3 22:28:47 2017
@@ -287,3 +287,114 @@ Q1dstkNAtnDWggNEHwCR3djS6/gmxHBRG1Qvrbgj
 mV9cuf9lf5RFMNgxjdiM4A==
 =vI7i
 -END PGP PUBLIC KEY BLOCK-
+-BEGIN PGP PUBLIC KEY BLOCK-
+
+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
+FEq24aBs/3TZTZDFTPqKsAWrRFc=
+=RCo0
+-END PGP PUBLIC KEY BLOCK-
+pub   rsa4096 2017-10-03 [SC]
+  82CB916A280C019ACA877CE5308FBEE06088BE0F
+uid   [ultimate] James Taylor (CODE SIGNING KEY) 

+sig 3308FBEE06088BE0F 2017-10-03  James Taylor (CODE SIGNING KEY) 

+sub   rsa4096 2017-10-03 [E]
+sig  308FBEE06088BE0F 2017-10-03  James Taylor (CODE SIGNING KEY) 

+
+-BEGIN PGP PUBLIC KEY BLOCK-
+
+mQINBFnT16oBEADQaVC0JP1mgw+h2O7X6ygkwVfQ+8TeFy4I417CyVCwqSiqhL/M
+5OBJkK2yTYwKaozji24xivSrv9iTBPKCfRIao60cm/gJg5tjrCEgDDBfh6L7h5y9
+mGn/bIBhQ/uaAmKlP7xGFFPfYORrFE2258m81+o9rNHgZiMa4g32YC+y3yLigEmx
+ib1AN01GkAGprFs5TrvnYQN/9wDQijWmohRTWe7sRmGEvHWME3KsamfLA+OzV1jM
+lCVW/UBirKqr1JepK7D6N+jn3nZI+zTbM3UT7YLLBLVM9GFJpOnRd5eWbZypVPWH
+UYPgJV93nkZbPvO5P5WHAfPrVaBP/r2j6sHDbI7gwo1RSepeGP0xHQeFJYr3JnY9
+VdKV4qhkDnqOfDnKVuBKtjx7n+b7vMpz4iogGo37CSHhGXU5+/Wk2EcaFTAbbOt3
+13zQ/B7KyAArF4Zv9qBBv9jjZsDu/4mB73J81ylFGOmouAHyG3d7zLef/r107nCo
+W8cLCTuBn21XHwwZD4V7j7AsF4Usjr4Yeum1iRgm3bwFZoRJSKwBgjGxJuiHrNrY
+povv45TmJFvmjLLzNNgGbGvxDHdblwl5M95yHFo/DkoQe/6czgF8dFubrsA6Bxya
+Mw6kp9grru7K5U9SdK0Top9+dPhOCbyFlgfHBk32K5DXiCjTp2tt1pKQOwARAQAB
+tDhKYW1lcyBUYXlsb3IgKENPREUgU0lHTklORyBLRVkpIDxqYW1lc3RheWxvckBh
+cGFjaGUub3JnPokCTgQTAQgAOAIbAwIeAQIXgBYhBILLkWooDAGayod85TCPvuBg
+iL4PBQJZ09hHBQsJCAcDBRUKCQgLBRYCAwEAAAoJEDCPvuBgiL4PYgkP/0wYE9Rs
+YZIsFKbZix/z6/FOGed

[2/2] phoenix git commit: PHOENIX-4274 Test case for Hint query for index on view does not use include

2017-10-03 Thread jamestaylor
PHOENIX-4274 Test case for Hint query for index on view does not use include


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

Branch: refs/heads/4.x-HBase-0.98
Commit: 13a7f97b49704642d67481c58a118a68c2e4c2e5
Parents: dc2c40b
Author: James Taylor 
Authored: Tue Oct 3 15:04:30 2017 -0700
Committer: James Taylor 
Committed: Tue Oct 3 15:10:08 2017 -0700

--
 .../phoenix/end2end/index/ViewIndexIT.java  | 33 +++-
 1 file changed, 32 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/13a7f97b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
index 8ea6c27..53bb550 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
@@ -44,7 +44,6 @@ import org.apache.phoenix.jdbc.PhoenixStatement;
 import org.apache.phoenix.query.KeyRange;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.schema.PNameFactory;
-import org.apache.phoenix.schema.PTableType;
 import org.apache.phoenix.schema.TableNotFoundException;
 import org.apache.phoenix.util.MetaDataUtil;
 import org.apache.phoenix.util.PhoenixRuntime;
@@ -52,6 +51,7 @@ import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.QueryUtil;
 import org.apache.phoenix.util.SchemaUtil;
 import org.apache.phoenix.util.TestUtil;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -413,4 +413,35 @@ public class ViewIndexIT extends ParallelStatsDisabledIT {
 conn.close();
 }
 }
+
+@Test
+public void testHintForIndexOnViewWithInclude() throws Exception {
+testHintForIndexOnView(true);
+}
+
+@Ignore("PHOENIX-4274 Hint query for index on view does not use include")
+@Test
+public void testHintForIndexOnViewWithoutInclude() throws Exception {
+testHintForIndexOnView(false);
+}
+
+private void testHintForIndexOnView(boolean includeColumns) throws 
Exception {
+Properties props = new Properties();
+Connection conn1 = DriverManager.getConnection(getUrl(), props);
+conn1.setAutoCommit(true);
+String tableName=generateUniqueName();
+String viewName=generateUniqueName();
+String indexName=generateUniqueName();
+conn1.createStatement().execute(
+  "CREATE TABLE "+tableName+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
+conn1.createStatement().execute("upsert into "+tableName+" values 
('row1', 'value1', 'key1')");
+conn1.createStatement().execute(
+  "CREATE VIEW "+viewName+" (v3 VARCHAR, v4 VARCHAR) AS SELECT * FROM 
"+tableName+" WHERE v1 = 'value1'");
+conn1.createStatement().execute("CREATE INDEX " + indexName + " ON " + 
viewName + "(v3)" + (includeColumns ? " INCLUDE(v4)" : ""));
+PhoenixStatement stmt = 
conn1.createStatement().unwrap(PhoenixStatement.class);
+ResultSet rs = stmt.executeQuery("SELECT /*+ INDEX(" + viewName + " " 
+ indexName + ") */ v1 FROM " + viewName + " WHERE v3 = 'foo' ORDER BY v4");
+assertFalse(rs.next());
+assertEquals(indexName, 
stmt.getQueryPlan().getContext().getCurrentTable().getTable().getName().getString());
+}
+
 }



[1/2] phoenix git commit: PHOENIX-4275 Use unique table names for ViewIT

2017-10-03 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 82fab2233 -> 13a7f97b4


PHOENIX-4275 Use unique table names for ViewIT


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

Branch: refs/heads/4.x-HBase-0.98
Commit: dc2c40bc63eb45e615495d5d2d530e154884e6ed
Parents: 82fab22
Author: James Taylor 
Authored: Tue Oct 3 15:03:03 2017 -0700
Committer: James Taylor 
Committed: Tue Oct 3 15:10:05 2017 -0700

--
 .../src/it/java/org/apache/phoenix/end2end/ViewIT.java  | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/dc2c40bc/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
index 267dbc9..1953f79 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
@@ -701,15 +701,15 @@ public class ViewIT extends BaseViewIT {
   Properties props = new Properties();
   Connection conn1 = DriverManager.getConnection(getUrl(), props);
   conn1.setAutoCommit(true);
-  String TABLE_NAME="UpdateCacheViewTest"+System.currentTimeMillis();
-  String VIEW_NAME="VIEW_"+System.currentTimeMillis();
+  String tableName=generateUniqueName();
+  String viewName=generateUniqueName();
   conn1.createStatement().execute(
-"CREATE TABLE "+TABLE_NAME+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
-  conn1.createStatement().execute("upsert into "+TABLE_NAME+" values 
('row1', 'value1', 'key1')");
+"CREATE TABLE "+tableName+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
+  conn1.createStatement().execute("upsert into "+tableName+" values 
('row1', 'value1', 'key1')");
   conn1.createStatement().execute(
-"CREATE VIEW "+VIEW_NAME+" (v43 VARCHAR) AS SELECT * FROM 
"+TABLE_NAME+" WHERE v1 = 'value1'");
+"CREATE VIEW "+viewName+" (v43 VARCHAR) AS SELECT * FROM "+tableName+" 
WHERE v1 = 'value1'");
   ResultSet rs = conn1.createStatement()
-  .executeQuery("SELECT * FROM "+TABLE_NAME+" WHERE v1 = 'value1'");
+  .executeQuery("SELECT * FROM "+tableName+" WHERE v1 = 'value1'");
   assertTrue(rs.next());
 }
 



[1/2] phoenix git commit: PHOENIX-4275 Use unique table names for ViewIT

2017-10-03 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 940377dc4 -> e40bbfff1


PHOENIX-4275 Use unique table names for ViewIT


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

Branch: refs/heads/4.x-HBase-1.1
Commit: 347304ea8a707fe6e5ee3cf5df94b2d9f9b4f602
Parents: 940377d
Author: James Taylor 
Authored: Tue Oct 3 15:03:03 2017 -0700
Committer: James Taylor 
Committed: Tue Oct 3 15:08:40 2017 -0700

--
 .../src/it/java/org/apache/phoenix/end2end/ViewIT.java  | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/347304ea/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
index 267dbc9..1953f79 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
@@ -701,15 +701,15 @@ public class ViewIT extends BaseViewIT {
   Properties props = new Properties();
   Connection conn1 = DriverManager.getConnection(getUrl(), props);
   conn1.setAutoCommit(true);
-  String TABLE_NAME="UpdateCacheViewTest"+System.currentTimeMillis();
-  String VIEW_NAME="VIEW_"+System.currentTimeMillis();
+  String tableName=generateUniqueName();
+  String viewName=generateUniqueName();
   conn1.createStatement().execute(
-"CREATE TABLE "+TABLE_NAME+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
-  conn1.createStatement().execute("upsert into "+TABLE_NAME+" values 
('row1', 'value1', 'key1')");
+"CREATE TABLE "+tableName+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
+  conn1.createStatement().execute("upsert into "+tableName+" values 
('row1', 'value1', 'key1')");
   conn1.createStatement().execute(
-"CREATE VIEW "+VIEW_NAME+" (v43 VARCHAR) AS SELECT * FROM 
"+TABLE_NAME+" WHERE v1 = 'value1'");
+"CREATE VIEW "+viewName+" (v43 VARCHAR) AS SELECT * FROM "+tableName+" 
WHERE v1 = 'value1'");
   ResultSet rs = conn1.createStatement()
-  .executeQuery("SELECT * FROM "+TABLE_NAME+" WHERE v1 = 'value1'");
+  .executeQuery("SELECT * FROM "+tableName+" WHERE v1 = 'value1'");
   assertTrue(rs.next());
 }
 



[2/2] phoenix git commit: PHOENIX-4274 Test case for Hint query for index on view does not use include

2017-10-03 Thread jamestaylor
PHOENIX-4274 Test case for Hint query for index on view does not use include


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

Branch: refs/heads/4.x-HBase-1.1
Commit: e40bbfff1150e56e1ecb7cd22c49cee298496c2b
Parents: 347304e
Author: James Taylor 
Authored: Tue Oct 3 15:04:30 2017 -0700
Committer: James Taylor 
Committed: Tue Oct 3 15:08:44 2017 -0700

--
 .../phoenix/end2end/index/ViewIndexIT.java  | 33 +++-
 1 file changed, 32 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/e40bbfff/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
index 8ea6c27..53bb550 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
@@ -44,7 +44,6 @@ import org.apache.phoenix.jdbc.PhoenixStatement;
 import org.apache.phoenix.query.KeyRange;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.schema.PNameFactory;
-import org.apache.phoenix.schema.PTableType;
 import org.apache.phoenix.schema.TableNotFoundException;
 import org.apache.phoenix.util.MetaDataUtil;
 import org.apache.phoenix.util.PhoenixRuntime;
@@ -52,6 +51,7 @@ import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.QueryUtil;
 import org.apache.phoenix.util.SchemaUtil;
 import org.apache.phoenix.util.TestUtil;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -413,4 +413,35 @@ public class ViewIndexIT extends ParallelStatsDisabledIT {
 conn.close();
 }
 }
+
+@Test
+public void testHintForIndexOnViewWithInclude() throws Exception {
+testHintForIndexOnView(true);
+}
+
+@Ignore("PHOENIX-4274 Hint query for index on view does not use include")
+@Test
+public void testHintForIndexOnViewWithoutInclude() throws Exception {
+testHintForIndexOnView(false);
+}
+
+private void testHintForIndexOnView(boolean includeColumns) throws 
Exception {
+Properties props = new Properties();
+Connection conn1 = DriverManager.getConnection(getUrl(), props);
+conn1.setAutoCommit(true);
+String tableName=generateUniqueName();
+String viewName=generateUniqueName();
+String indexName=generateUniqueName();
+conn1.createStatement().execute(
+  "CREATE TABLE "+tableName+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
+conn1.createStatement().execute("upsert into "+tableName+" values 
('row1', 'value1', 'key1')");
+conn1.createStatement().execute(
+  "CREATE VIEW "+viewName+" (v3 VARCHAR, v4 VARCHAR) AS SELECT * FROM 
"+tableName+" WHERE v1 = 'value1'");
+conn1.createStatement().execute("CREATE INDEX " + indexName + " ON " + 
viewName + "(v3)" + (includeColumns ? " INCLUDE(v4)" : ""));
+PhoenixStatement stmt = 
conn1.createStatement().unwrap(PhoenixStatement.class);
+ResultSet rs = stmt.executeQuery("SELECT /*+ INDEX(" + viewName + " " 
+ indexName + ") */ v1 FROM " + viewName + " WHERE v3 = 'foo' ORDER BY v4");
+assertFalse(rs.next());
+assertEquals(indexName, 
stmt.getQueryPlan().getContext().getCurrentTable().getTable().getName().getString());
+}
+
 }



[2/2] phoenix git commit: PHOENIX-4274 Test case for Hint query for index on view does not use include

2017-10-03 Thread jamestaylor
PHOENIX-4274 Test case for Hint query for index on view does not use include


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

Branch: refs/heads/4.x-HBase-1.2
Commit: d79dd50ff732f2673e1414d970cd4742e2c135de
Parents: 4bf1b22
Author: James Taylor 
Authored: Tue Oct 3 15:04:30 2017 -0700
Committer: James Taylor 
Committed: Tue Oct 3 15:06:56 2017 -0700

--
 .../phoenix/end2end/index/ViewIndexIT.java  | 33 +++-
 1 file changed, 32 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/d79dd50f/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
index 8ea6c27..53bb550 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
@@ -44,7 +44,6 @@ import org.apache.phoenix.jdbc.PhoenixStatement;
 import org.apache.phoenix.query.KeyRange;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.schema.PNameFactory;
-import org.apache.phoenix.schema.PTableType;
 import org.apache.phoenix.schema.TableNotFoundException;
 import org.apache.phoenix.util.MetaDataUtil;
 import org.apache.phoenix.util.PhoenixRuntime;
@@ -52,6 +51,7 @@ import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.QueryUtil;
 import org.apache.phoenix.util.SchemaUtil;
 import org.apache.phoenix.util.TestUtil;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -413,4 +413,35 @@ public class ViewIndexIT extends ParallelStatsDisabledIT {
 conn.close();
 }
 }
+
+@Test
+public void testHintForIndexOnViewWithInclude() throws Exception {
+testHintForIndexOnView(true);
+}
+
+@Ignore("PHOENIX-4274 Hint query for index on view does not use include")
+@Test
+public void testHintForIndexOnViewWithoutInclude() throws Exception {
+testHintForIndexOnView(false);
+}
+
+private void testHintForIndexOnView(boolean includeColumns) throws 
Exception {
+Properties props = new Properties();
+Connection conn1 = DriverManager.getConnection(getUrl(), props);
+conn1.setAutoCommit(true);
+String tableName=generateUniqueName();
+String viewName=generateUniqueName();
+String indexName=generateUniqueName();
+conn1.createStatement().execute(
+  "CREATE TABLE "+tableName+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
+conn1.createStatement().execute("upsert into "+tableName+" values 
('row1', 'value1', 'key1')");
+conn1.createStatement().execute(
+  "CREATE VIEW "+viewName+" (v3 VARCHAR, v4 VARCHAR) AS SELECT * FROM 
"+tableName+" WHERE v1 = 'value1'");
+conn1.createStatement().execute("CREATE INDEX " + indexName + " ON " + 
viewName + "(v3)" + (includeColumns ? " INCLUDE(v4)" : ""));
+PhoenixStatement stmt = 
conn1.createStatement().unwrap(PhoenixStatement.class);
+ResultSet rs = stmt.executeQuery("SELECT /*+ INDEX(" + viewName + " " 
+ indexName + ") */ v1 FROM " + viewName + " WHERE v3 = 'foo' ORDER BY v4");
+assertFalse(rs.next());
+assertEquals(indexName, 
stmt.getQueryPlan().getContext().getCurrentTable().getTable().getName().getString());
+}
+
 }



[1/2] phoenix git commit: PHOENIX-4275 Use unique table names for ViewIT

2017-10-03 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 af5716c1b -> d79dd50ff


PHOENIX-4275 Use unique table names for ViewIT


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

Branch: refs/heads/4.x-HBase-1.2
Commit: 4bf1b2242e78be31e751a12455a1d98eb7fcbc8a
Parents: af5716c
Author: James Taylor 
Authored: Tue Oct 3 15:03:03 2017 -0700
Committer: James Taylor 
Committed: Tue Oct 3 15:06:40 2017 -0700

--
 .../src/it/java/org/apache/phoenix/end2end/ViewIT.java  | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/4bf1b224/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
index 267dbc9..1953f79 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
@@ -701,15 +701,15 @@ public class ViewIT extends BaseViewIT {
   Properties props = new Properties();
   Connection conn1 = DriverManager.getConnection(getUrl(), props);
   conn1.setAutoCommit(true);
-  String TABLE_NAME="UpdateCacheViewTest"+System.currentTimeMillis();
-  String VIEW_NAME="VIEW_"+System.currentTimeMillis();
+  String tableName=generateUniqueName();
+  String viewName=generateUniqueName();
   conn1.createStatement().execute(
-"CREATE TABLE "+TABLE_NAME+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
-  conn1.createStatement().execute("upsert into "+TABLE_NAME+" values 
('row1', 'value1', 'key1')");
+"CREATE TABLE "+tableName+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
+  conn1.createStatement().execute("upsert into "+tableName+" values 
('row1', 'value1', 'key1')");
   conn1.createStatement().execute(
-"CREATE VIEW "+VIEW_NAME+" (v43 VARCHAR) AS SELECT * FROM 
"+TABLE_NAME+" WHERE v1 = 'value1'");
+"CREATE VIEW "+viewName+" (v43 VARCHAR) AS SELECT * FROM "+tableName+" 
WHERE v1 = 'value1'");
   ResultSet rs = conn1.createStatement()
-  .executeQuery("SELECT * FROM "+TABLE_NAME+" WHERE v1 = 'value1'");
+  .executeQuery("SELECT * FROM "+tableName+" WHERE v1 = 'value1'");
   assertTrue(rs.next());
 }
 



[2/2] phoenix git commit: PHOENIX-4275 Use unique table names for ViewIT

2017-10-03 Thread jamestaylor
PHOENIX-4275 Use unique table names for ViewIT


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

Branch: refs/heads/master
Commit: 8e91c62bdde4998896418453d260401224a21f74
Parents: 68b5db5
Author: James Taylor 
Authored: Tue Oct 3 15:03:03 2017 -0700
Committer: James Taylor 
Committed: Tue Oct 3 15:05:36 2017 -0700

--
 .../src/it/java/org/apache/phoenix/end2end/ViewIT.java  | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/8e91c62b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
--
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
index 267dbc9..1953f79 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java
@@ -701,15 +701,15 @@ public class ViewIT extends BaseViewIT {
   Properties props = new Properties();
   Connection conn1 = DriverManager.getConnection(getUrl(), props);
   conn1.setAutoCommit(true);
-  String TABLE_NAME="UpdateCacheViewTest"+System.currentTimeMillis();
-  String VIEW_NAME="VIEW_"+System.currentTimeMillis();
+  String tableName=generateUniqueName();
+  String viewName=generateUniqueName();
   conn1.createStatement().execute(
-"CREATE TABLE "+TABLE_NAME+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
-  conn1.createStatement().execute("upsert into "+TABLE_NAME+" values 
('row1', 'value1', 'key1')");
+"CREATE TABLE "+tableName+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
+  conn1.createStatement().execute("upsert into "+tableName+" values 
('row1', 'value1', 'key1')");
   conn1.createStatement().execute(
-"CREATE VIEW "+VIEW_NAME+" (v43 VARCHAR) AS SELECT * FROM 
"+TABLE_NAME+" WHERE v1 = 'value1'");
+"CREATE VIEW "+viewName+" (v43 VARCHAR) AS SELECT * FROM "+tableName+" 
WHERE v1 = 'value1'");
   ResultSet rs = conn1.createStatement()
-  .executeQuery("SELECT * FROM "+TABLE_NAME+" WHERE v1 = 'value1'");
+  .executeQuery("SELECT * FROM "+tableName+" WHERE v1 = 'value1'");
   assertTrue(rs.next());
 }
 



[1/2] phoenix git commit: PHOENIX-4274 Test case for Hint query for index on view does not use include

2017-10-03 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/master 68b5db54d -> f0bc4cdb5


PHOENIX-4274 Test case for Hint query for index on view does not use include


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

Branch: refs/heads/master
Commit: f0bc4cdb5bbf96b316c78cc816400b04f63e911b
Parents: 8e91c62
Author: James Taylor 
Authored: Tue Oct 3 15:04:30 2017 -0700
Committer: James Taylor 
Committed: Tue Oct 3 15:05:36 2017 -0700

--
 .../phoenix/end2end/index/ViewIndexIT.java  | 33 +++-
 1 file changed, 32 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f0bc4cdb/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
index 8ea6c27..53bb550 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java
@@ -44,7 +44,6 @@ import org.apache.phoenix.jdbc.PhoenixStatement;
 import org.apache.phoenix.query.KeyRange;
 import org.apache.phoenix.query.QueryServices;
 import org.apache.phoenix.schema.PNameFactory;
-import org.apache.phoenix.schema.PTableType;
 import org.apache.phoenix.schema.TableNotFoundException;
 import org.apache.phoenix.util.MetaDataUtil;
 import org.apache.phoenix.util.PhoenixRuntime;
@@ -52,6 +51,7 @@ import org.apache.phoenix.util.PropertiesUtil;
 import org.apache.phoenix.util.QueryUtil;
 import org.apache.phoenix.util.SchemaUtil;
 import org.apache.phoenix.util.TestUtil;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -413,4 +413,35 @@ public class ViewIndexIT extends ParallelStatsDisabledIT {
 conn.close();
 }
 }
+
+@Test
+public void testHintForIndexOnViewWithInclude() throws Exception {
+testHintForIndexOnView(true);
+}
+
+@Ignore("PHOENIX-4274 Hint query for index on view does not use include")
+@Test
+public void testHintForIndexOnViewWithoutInclude() throws Exception {
+testHintForIndexOnView(false);
+}
+
+private void testHintForIndexOnView(boolean includeColumns) throws 
Exception {
+Properties props = new Properties();
+Connection conn1 = DriverManager.getConnection(getUrl(), props);
+conn1.setAutoCommit(true);
+String tableName=generateUniqueName();
+String viewName=generateUniqueName();
+String indexName=generateUniqueName();
+conn1.createStatement().execute(
+  "CREATE TABLE "+tableName+" (k VARCHAR PRIMARY KEY, v1 VARCHAR, v2 
VARCHAR) UPDATE_CACHE_FREQUENCY=100");
+conn1.createStatement().execute("upsert into "+tableName+" values 
('row1', 'value1', 'key1')");
+conn1.createStatement().execute(
+  "CREATE VIEW "+viewName+" (v3 VARCHAR, v4 VARCHAR) AS SELECT * FROM 
"+tableName+" WHERE v1 = 'value1'");
+conn1.createStatement().execute("CREATE INDEX " + indexName + " ON " + 
viewName + "(v3)" + (includeColumns ? " INCLUDE(v4)" : ""));
+PhoenixStatement stmt = 
conn1.createStatement().unwrap(PhoenixStatement.class);
+ResultSet rs = stmt.executeQuery("SELECT /*+ INDEX(" + viewName + " " 
+ indexName + ") */ v1 FROM " + viewName + " WHERE v3 = 'foo' ORDER BY v4");
+assertFalse(rs.next());
+assertEquals(indexName, 
stmt.getQueryPlan().getContext().getCurrentTable().getTable().getName().getString());
+}
+
 }



phoenix git commit: PHOENIX-4273 Don't run MutableIndexSplitIT tests till fixed

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 587b79b52 -> 82fab2233


PHOENIX-4273 Don't run MutableIndexSplitIT tests till fixed


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

Branch: refs/heads/4.x-HBase-0.98
Commit: 82fab2233f266deb5623158f18bc3dee11615b3f
Parents: 587b79b
Author: Samarth Jain 
Authored: Tue Oct 3 14:48:42 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 14:48:42 2017 -0700

--
 .../phoenix/end2end/index/MutableIndexSplitForwardScanIT.java | 3 ++-
 .../phoenix/end2end/index/MutableIndexSplitReverseScanIT.java | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/82fab223/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
index 75e2ae2..83320c2 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
@@ -19,7 +19,8 @@ package org.apache.phoenix.end2end.index;
 
 import org.junit.Test;
 
-public class MutableIndexSplitForwardScanIT extends MutableIndexSplitIT {
+//TODO: re-enable once PHOENIX-4273 is fixed
+public abstract class MutableIndexSplitForwardScanIT extends 
MutableIndexSplitIT {
 
 public MutableIndexSplitForwardScanIT(boolean localIndex, boolean 
multiTenant) {
 super(localIndex, multiTenant);

http://git-wip-us.apache.org/repos/asf/phoenix/blob/82fab223/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
index d7afb31..f57dfdd 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
@@ -19,7 +19,8 @@ package org.apache.phoenix.end2end.index;
 
 import org.junit.Test;
 
-public class MutableIndexSplitReverseScanIT extends MutableIndexSplitIT {
+//TODO: re-enable once PHOENIX-4273 is fixeds
+public abstract class MutableIndexSplitReverseScanIT extends 
MutableIndexSplitIT {
 
 public MutableIndexSplitReverseScanIT(boolean localIndex, boolean 
multiTenant) {
 super(localIndex, multiTenant);



phoenix git commit: PHOENIX-4273 Don't run MutableIndexSplitIT tests till fixed

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 0b5ec9ab9 -> 940377dc4


PHOENIX-4273 Don't run MutableIndexSplitIT tests till fixed


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

Branch: refs/heads/4.x-HBase-1.1
Commit: 940377dc46ca8acee7ce0ed0c98590e883dd790d
Parents: 0b5ec9a
Author: Samarth Jain 
Authored: Tue Oct 3 14:48:14 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 14:48:14 2017 -0700

--
 .../phoenix/end2end/index/MutableIndexSplitForwardScanIT.java | 3 ++-
 .../phoenix/end2end/index/MutableIndexSplitReverseScanIT.java | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/940377dc/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
index 75e2ae2..83320c2 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
@@ -19,7 +19,8 @@ package org.apache.phoenix.end2end.index;
 
 import org.junit.Test;
 
-public class MutableIndexSplitForwardScanIT extends MutableIndexSplitIT {
+//TODO: re-enable once PHOENIX-4273 is fixed
+public abstract class MutableIndexSplitForwardScanIT extends 
MutableIndexSplitIT {
 
 public MutableIndexSplitForwardScanIT(boolean localIndex, boolean 
multiTenant) {
 super(localIndex, multiTenant);

http://git-wip-us.apache.org/repos/asf/phoenix/blob/940377dc/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
index d7afb31..f57dfdd 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
@@ -19,7 +19,8 @@ package org.apache.phoenix.end2end.index;
 
 import org.junit.Test;
 
-public class MutableIndexSplitReverseScanIT extends MutableIndexSplitIT {
+//TODO: re-enable once PHOENIX-4273 is fixeds
+public abstract class MutableIndexSplitReverseScanIT extends 
MutableIndexSplitIT {
 
 public MutableIndexSplitReverseScanIT(boolean localIndex, boolean 
multiTenant) {
 super(localIndex, multiTenant);



phoenix git commit: PHOENIX-4273 Don't run MutableIndexSplitIT tests till fixed

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 94d4716e3 -> af5716c1b


PHOENIX-4273 Don't run MutableIndexSplitIT tests till fixed


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

Branch: refs/heads/4.x-HBase-1.2
Commit: af5716c1b3dbb3b8da6db8d210966f426225cf70
Parents: 94d4716
Author: Samarth Jain 
Authored: Tue Oct 3 14:47:45 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 14:47:45 2017 -0700

--
 .../phoenix/end2end/index/MutableIndexSplitForwardScanIT.java | 3 ++-
 .../phoenix/end2end/index/MutableIndexSplitReverseScanIT.java | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/af5716c1/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
index 75e2ae2..83320c2 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
@@ -19,7 +19,8 @@ package org.apache.phoenix.end2end.index;
 
 import org.junit.Test;
 
-public class MutableIndexSplitForwardScanIT extends MutableIndexSplitIT {
+//TODO: re-enable once PHOENIX-4273 is fixed
+public abstract class MutableIndexSplitForwardScanIT extends 
MutableIndexSplitIT {
 
 public MutableIndexSplitForwardScanIT(boolean localIndex, boolean 
multiTenant) {
 super(localIndex, multiTenant);

http://git-wip-us.apache.org/repos/asf/phoenix/blob/af5716c1/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
index d7afb31..f57dfdd 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
@@ -19,7 +19,8 @@ package org.apache.phoenix.end2end.index;
 
 import org.junit.Test;
 
-public class MutableIndexSplitReverseScanIT extends MutableIndexSplitIT {
+//TODO: re-enable once PHOENIX-4273 is fixeds
+public abstract class MutableIndexSplitReverseScanIT extends 
MutableIndexSplitIT {
 
 public MutableIndexSplitReverseScanIT(boolean localIndex, boolean 
multiTenant) {
 super(localIndex, multiTenant);



phoenix git commit: PHOENIX-4273 Don't run MutableIndexSplitIT tests till fixed

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/master 54e2bbf83 -> 68b5db54d


PHOENIX-4273 Don't run MutableIndexSplitIT tests till fixed


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

Branch: refs/heads/master
Commit: 68b5db54d6dd79d521cf29dd84cef8e9b362cbf4
Parents: 54e2bbf
Author: Samarth Jain 
Authored: Tue Oct 3 14:47:05 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 14:47:05 2017 -0700

--
 .../phoenix/end2end/index/MutableIndexSplitForwardScanIT.java | 3 ++-
 .../phoenix/end2end/index/MutableIndexSplitReverseScanIT.java | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/68b5db54/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
index 75e2ae2..83320c2 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitForwardScanIT.java
@@ -19,7 +19,8 @@ package org.apache.phoenix.end2end.index;
 
 import org.junit.Test;
 
-public class MutableIndexSplitForwardScanIT extends MutableIndexSplitIT {
+//TODO: re-enable once PHOENIX-4273 is fixed
+public abstract class MutableIndexSplitForwardScanIT extends 
MutableIndexSplitIT {
 
 public MutableIndexSplitForwardScanIT(boolean localIndex, boolean 
multiTenant) {
 super(localIndex, multiTenant);

http://git-wip-us.apache.org/repos/asf/phoenix/blob/68b5db54/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
index d7afb31..f57dfdd 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexSplitReverseScanIT.java
@@ -19,7 +19,8 @@ package org.apache.phoenix.end2end.index;
 
 import org.junit.Test;
 
-public class MutableIndexSplitReverseScanIT extends MutableIndexSplitIT {
+//TODO: re-enable once PHOENIX-4273 is fixeds
+public abstract class MutableIndexSplitReverseScanIT extends 
MutableIndexSplitIT {
 
 public MutableIndexSplitReverseScanIT(boolean localIndex, boolean 
multiTenant) {
 super(localIndex, multiTenant);



phoenix git commit: PHOENIX-4272 Dial down number of threads and repeats in ConcurrentMutationsIT

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 f8454650a -> 0b5ec9ab9


PHOENIX-4272 Dial down number of threads and repeats in ConcurrentMutationsIT


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

Branch: refs/heads/4.x-HBase-1.1
Commit: 0b5ec9ab9ca267f7a575ed5163460a6b8ab43cb8
Parents: f845465
Author: Samarth Jain 
Authored: Tue Oct 3 13:54:52 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 13:54:52 2017 -0700

--
 .../java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/0b5ec9ab/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
index e5f22da..d1f30c6 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
@@ -215,9 +215,9 @@ public class ConcurrentMutationsIT extends 
ParallelStatsDisabledIT {
 }
 
 @Test
-@Repeat(10)
+@Repeat(5)
 public void testConcurrentUpserts() throws Exception {
-int nThreads = 8;
+int nThreads = 4;
 final int batchSize = 200;
 final int nRows = 51;
 final int nIndexValues = 23;



phoenix git commit: PHOENIX-4272 Dial down number of threads and repeats in ConcurrentMutationsIT

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 57bdb344a -> 587b79b52


PHOENIX-4272 Dial down number of threads and repeats in ConcurrentMutationsIT


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

Branch: refs/heads/4.x-HBase-0.98
Commit: 587b79b52c72b847ea77b1286f844d91ffbe8610
Parents: 57bdb34
Author: Samarth Jain 
Authored: Tue Oct 3 13:54:32 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 13:54:32 2017 -0700

--
 .../java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/587b79b5/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
index e5f22da..d1f30c6 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
@@ -215,9 +215,9 @@ public class ConcurrentMutationsIT extends 
ParallelStatsDisabledIT {
 }
 
 @Test
-@Repeat(10)
+@Repeat(5)
 public void testConcurrentUpserts() throws Exception {
-int nThreads = 8;
+int nThreads = 4;
 final int batchSize = 200;
 final int nRows = 51;
 final int nIndexValues = 23;



phoenix git commit: PHOENIX-4272 Dial down number of threads and repeats in ConcurrentMutationsIT

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/master 119f86e0c -> 54e2bbf83


PHOENIX-4272 Dial down number of threads and repeats in ConcurrentMutationsIT


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

Branch: refs/heads/master
Commit: 54e2bbf83ba3493dc70eb3d68965453475da2f73
Parents: 119f86e
Author: Samarth Jain 
Authored: Tue Oct 3 13:54:11 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 13:54:11 2017 -0700

--
 .../java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/54e2bbf8/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
index e5f22da..d1f30c6 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
@@ -215,9 +215,9 @@ public class ConcurrentMutationsIT extends 
ParallelStatsDisabledIT {
 }
 
 @Test
-@Repeat(10)
+@Repeat(5)
 public void testConcurrentUpserts() throws Exception {
-int nThreads = 8;
+int nThreads = 4;
 final int batchSize = 200;
 final int nRows = 51;
 final int nIndexValues = 23;



phoenix git commit: PHOENIX-4272 Dial down number of threads and repeats in ConcurrentMutationsIT

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 dd3112d03 -> 94d4716e3


PHOENIX-4272 Dial down number of threads and repeats in ConcurrentMutationsIT


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

Branch: refs/heads/4.x-HBase-1.2
Commit: 94d4716e386d4ffb2e832f2b68e46794653c77a2
Parents: dd3112d
Author: Samarth Jain 
Authored: Tue Oct 3 13:53:32 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 13:53:44 2017 -0700

--
 .../java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/94d4716e/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
index e5f22da..d1f30c6 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
@@ -215,9 +215,9 @@ public class ConcurrentMutationsIT extends 
ParallelStatsDisabledIT {
 }
 
 @Test
-@Repeat(10)
+@Repeat(5)
 public void testConcurrentUpserts() throws Exception {
-int nThreads = 8;
+int nThreads = 4;
 final int batchSize = 200;
 final int nRows = 51;
 final int nIndexValues = 23;



phoenix git commit: PHOENIX-4271 MutableIndexFailureIT failing for local indexes on 4.x-HBase-1.2 branch

2017-10-03 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 e5c9b2fa8 -> dd3112d03


PHOENIX-4271 MutableIndexFailureIT failing for local indexes on 4.x-HBase-1.2 
branch


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

Branch: refs/heads/4.x-HBase-1.2
Commit: dd3112d0328d178bb7b6f6a81fb589d3dbaf3d6c
Parents: e5c9b2f
Author: James Taylor 
Authored: Tue Oct 3 13:13:45 2017 -0700
Committer: James Taylor 
Committed: Tue Oct 3 13:13:45 2017 -0700

--
 .../end2end/index/MutableIndexFailureIT.java   | 17 -
 1 file changed, 12 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/dd3112d0/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
index 7daee4e..0318925 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
@@ -302,10 +302,13 @@ public class MutableIndexFailureIT extends BaseTest {
 assertTrue(PIndexState.ACTIVE.toString().equals(indexState) || 
PIndexState.PENDING_ACTIVE.toString().equals(indexState));
 } else {
 assertTrue(PIndexState.DISABLE.toString().equals(indexState) 
|| PIndexState.INACTIVE.toString().equals(indexState));
-// non-failing index should remain active
-ResultSet thirdRs = 
conn.createStatement().executeQuery(getSysCatQuery(thirdIndexName));
-assertTrue(thirdRs.next());
-assertEquals(PIndexState.ACTIVE.getSerializedValue(), 
thirdRs.getString(1));
+// non-failing index should remain active unless the failure 
came from a local index
+// in which case all local indexes are marked as disabled.
+if (!localIndex) {
+ResultSet thirdRs = 
conn.createStatement().executeQuery(getSysCatQuery(thirdIndexName));
+assertTrue(thirdRs.next());
+assertEquals(PIndexState.ACTIVE.getSerializedValue(), 
thirdRs.getString(1));
+}
 }
 assertFalse(rs.next());
 
@@ -335,7 +338,11 @@ public class MutableIndexFailureIT extends BaseTest {
 assertEquals("d", rs.getString(2));
 assertFalse(rs.next());
 }
-IndexScrutiny.scrutinizeIndex(conn, fullTableName, 
thirdFullIndexName);
+// See comment above. All local indexes are disabled when a write 
failure occurs
+// to any of them.
+if (!localIndex) {
+IndexScrutiny.scrutinizeIndex(conn, fullTableName, 
thirdFullIndexName);
+}
 
 if (!failRebuildTask) {
 // re-enable index table



phoenix git commit: PHOENIX-4271 MutableIndexFailureIT failing for local indexes on 4.x-HBase branches

2017-10-03 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 acc6f3b5b -> 57bdb344a


PHOENIX-4271 MutableIndexFailureIT failing for local indexes on 4.x-HBase 
branches


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

Branch: refs/heads/4.x-HBase-0.98
Commit: 57bdb344a50572a1fa53da41aacd7a6715c529a0
Parents: acc6f3b
Author: James Taylor 
Authored: Tue Oct 3 13:33:41 2017 -0700
Committer: James Taylor 
Committed: Tue Oct 3 13:33:41 2017 -0700

--
 .../end2end/index/MutableIndexFailureIT.java| 42 +++-
 1 file changed, 23 insertions(+), 19 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/57bdb344/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
index 7e829e4..0318925 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
@@ -165,22 +165,20 @@ public class MutableIndexFailureIT extends BaseTest {
 { false, false, true, true, false, null},
 { false, false, true, true, false, true},
 { false, false, false, true, false, null},
-// FIXME: PHOENIX-4036 and PHOENIX-4037. Test cases with 
transactional or local
-// indexes don't pass reliably.
-//{ true, false, false, true, true, false, null},
-//{ true, false, true, true, true, false, null},
-//{ false, true, true, true, true, false, null},
-//{ false, true, false, null, null, false, null},
-//{ true, true, false, true, null, false, null},
-//{ true, true, true, null, true, false, null},
+{ true, false, false, true, false, null},
+{ true, false, true, true, false, null},
+{ false, true, true, true, false, null},
+{ false, true, false, null, false, null},
+{ true, true, false, true, false, null},
+{ true, true, true, null, false, null},
 
 { false, false, false, false, false, null},
-//{ false, true, false, false, null, false, null},
+{ false, true, false, false, false, null},
 { false, false, false, false, false, null},
 { false, false, false, true, false, null},
 { false, false, false, true, false, null},
-//{ false, true, false, true, true, false, null},
-//{ false, true, false, true, true, false, null},
+{ false, true, false, true, false, null},
+{ false, true, false, true, false, null},
 { false, false, false, true, true, null},
 { false, false, true, true, true, null},
 { false, false, false, true, true, false},
@@ -304,10 +302,13 @@ public class MutableIndexFailureIT extends BaseTest {
 assertTrue(PIndexState.ACTIVE.toString().equals(indexState) || 
PIndexState.PENDING_ACTIVE.toString().equals(indexState));
 } else {
 assertTrue(PIndexState.DISABLE.toString().equals(indexState) 
|| PIndexState.INACTIVE.toString().equals(indexState));
-// non-failing index should remain active
-ResultSet thirdRs = 
conn.createStatement().executeQuery(getSysCatQuery(thirdIndexName));
-assertTrue(thirdRs.next());
-assertEquals(PIndexState.ACTIVE.getSerializedValue(), 
thirdRs.getString(1));
+// non-failing index should remain active unless the failure 
came from a local index
+// in which case all local indexes are marked as disabled.
+if (!localIndex) {
+ResultSet thirdRs = 
conn.createStatement().executeQuery(getSysCatQuery(thirdIndexName));
+assertTrue(thirdRs.next());
+assertEquals(PIndexState.ACTIVE.getSerializedValue(), 
thirdRs.getString(1));
+}
 }
 assertFalse(rs.next());
 
@@ -337,7 +338,11 @@ public class MutableIndexFailureIT extends BaseTest {
 assertEquals("d", rs.getString(2));
 assertFalse(rs.next());
 }
-IndexScrutiny.scrutinizeIndex(conn, fullTableName, 
thirdFullIndex

phoenix git commit: PHOENIX-4271 MutableIndexFailureIT failing for local indexes on 4.x-HBase branches

2017-10-03 Thread jamestaylor
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 8688fa603 -> f8454650a


PHOENIX-4271 MutableIndexFailureIT failing for local indexes on 4.x-HBase 
branches


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

Branch: refs/heads/4.x-HBase-1.1
Commit: f8454650a7ca91ced7ae6793f11d48fec70eeef5
Parents: 8688fa6
Author: James Taylor 
Authored: Tue Oct 3 13:20:30 2017 -0700
Committer: James Taylor 
Committed: Tue Oct 3 13:20:30 2017 -0700

--
 .../end2end/index/MutableIndexFailureIT.java | 19 ---
 1 file changed, 12 insertions(+), 7 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f8454650/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
index 2948831..0318925 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java
@@ -70,7 +70,6 @@ import org.apache.phoenix.util.SchemaUtil;
 import org.apache.phoenix.util.StringUtil;
 import org.apache.phoenix.util.TestUtil;
 import org.junit.BeforeClass;
-import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
 import org.junit.runner.RunWith;
@@ -87,7 +86,6 @@ import com.google.common.collect.Maps;
  * 
  */
 
-@Ignore("Not working for HBase 1.1")
 @Category(NeedsOwnMiniClusterTest.class)
 @RunWith(Parameterized.class)
 public class MutableIndexFailureIT extends BaseTest {
@@ -304,10 +302,13 @@ public class MutableIndexFailureIT extends BaseTest {
 assertTrue(PIndexState.ACTIVE.toString().equals(indexState) || 
PIndexState.PENDING_ACTIVE.toString().equals(indexState));
 } else {
 assertTrue(PIndexState.DISABLE.toString().equals(indexState) 
|| PIndexState.INACTIVE.toString().equals(indexState));
-// non-failing index should remain active
-ResultSet thirdRs = 
conn.createStatement().executeQuery(getSysCatQuery(thirdIndexName));
-assertTrue(thirdRs.next());
-assertEquals(PIndexState.ACTIVE.getSerializedValue(), 
thirdRs.getString(1));
+// non-failing index should remain active unless the failure 
came from a local index
+// in which case all local indexes are marked as disabled.
+if (!localIndex) {
+ResultSet thirdRs = 
conn.createStatement().executeQuery(getSysCatQuery(thirdIndexName));
+assertTrue(thirdRs.next());
+assertEquals(PIndexState.ACTIVE.getSerializedValue(), 
thirdRs.getString(1));
+}
 }
 assertFalse(rs.next());
 
@@ -337,7 +338,11 @@ public class MutableIndexFailureIT extends BaseTest {
 assertEquals("d", rs.getString(2));
 assertFalse(rs.next());
 }
-IndexScrutiny.scrutinizeIndex(conn, fullTableName, 
thirdFullIndexName);
+// See comment above. All local indexes are disabled when a write 
failure occurs
+// to any of them.
+if (!localIndex) {
+IndexScrutiny.scrutinizeIndex(conn, fullTableName, 
thirdFullIndexName);
+}
 
 if (!failRebuildTask) {
 // re-enable index table



Jenkins build is back to normal : Phoenix-4.x-HBase-1.1 #613

2017-10-03 Thread Apache Jenkins Server
See 




Jenkins build is back to normal : Phoenix | Master #1833

2017-10-03 Thread Apache Jenkins Server
See 




Build failed in Jenkins: Phoenix-4.x-HBase-1.2 #196

2017-10-03 Thread Apache Jenkins Server
See 


Changes:

[samarth] PHOENIX-4265 NPE when ROW_TIMESTAMP is SQL timestamp column

--
[...truncated 104.09 KB...]
[INFO] Running org.apache.phoenix.end2end.index.txn.RollbackIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 72.537 s 
- in org.apache.phoenix.end2end.index.txn.MutableRollbackIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinCacheIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 148.813 
s - in org.apache.phoenix.end2end.index.MutableIndexSplitReverseScanIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinGlobalIndexIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.687 s 
- in org.apache.phoenix.end2end.join.HashJoinCacheIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinLocalIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 343.701 
s - in org.apache.phoenix.end2end.index.LocalImmutableNonTxIndexIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 52.478 s 
- in org.apache.phoenix.end2end.index.txn.RollbackIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinNoIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 336.02 
s - in org.apache.phoenix.end2end.index.LocalMutableNonTxIndexIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinMoreIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 361.365 
s - in org.apache.phoenix.end2end.index.LocalImmutableTxIndexIT
[INFO] Running org.apache.phoenix.end2end.join.SortMergeJoinGlobalIndexIT
[INFO] Running org.apache.phoenix.end2end.join.SortMergeJoinLocalIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 364.793 
s - in org.apache.phoenix.end2end.index.LocalMutableTxIndexIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 54.685 s 
- in org.apache.phoenix.end2end.join.HashJoinMoreIT
[INFO] Running org.apache.phoenix.end2end.join.SubqueryIT
[INFO] Running org.apache.phoenix.end2end.join.SortMergeJoinNoIndexIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 193.853 
s - in org.apache.phoenix.end2end.join.HashJoinNoIndexIT
[INFO] Running org.apache.phoenix.end2end.join.SubqueryUsingSortMergeJoinIT
[INFO] Tests run: 64, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 493.037 
s - in org.apache.phoenix.end2end.index.MutableIndexIT
[INFO] Running org.apache.phoenix.end2end.salted.SaltedTableIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.983 s 
- in org.apache.phoenix.end2end.salted.SaltedTableIT
[INFO] Running org.apache.phoenix.end2end.salted.SaltedTableUpsertSelectIT
[INFO] Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 225.028 
s - in org.apache.phoenix.end2end.join.SubqueryIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 204.665 
s - in org.apache.phoenix.end2end.join.SortMergeJoinNoIndexIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 330.587 
s - in org.apache.phoenix.end2end.join.HashJoinGlobalIndexIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.449 s 
- in org.apache.phoenix.end2end.salted.SaltedTableUpsertSelectIT
[INFO] Running org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.056 s 
- in org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Running org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Running org.apache.phoenix.end2end.salted.SaltedTableVarLengthRowKeyIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.284 s 
- in org.apache.phoenix.end2end.salted.SaltedTableVarLengthRowKeyIT
[INFO] Running org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Running org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.129 s 
- in org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
[INFO] Running org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[INFO] Running org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.335 s 
- in org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Running org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.467 s 
- in org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.564 s 
- in org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Running org.apache.phoenix.tx.TransactionIT
[INFO] Running org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 347.703 
s - in org.apache.phoenix.end2end.join.SortMergeJoinGlobalIndexIT
[INFO] Tests run: 

phoenix git commit: PHOENIX-4265 NPE when ROW_TIMESTAMP is SQL timestamp column

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 e5a9c72e3 -> e5c9b2fa8


PHOENIX-4265 NPE when ROW_TIMESTAMP is SQL timestamp column


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

Branch: refs/heads/4.x-HBase-1.2
Commit: e5c9b2fa80e2830806333a7e9d85ee40330a5ca9
Parents: e5a9c72
Author: Samarth Jain 
Authored: Tue Oct 3 10:38:28 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 10:38:28 2017 -0700

--
 .../apache/phoenix/end2end/UpsertSelectIT.java  | 66 
 .../org/apache/phoenix/compile/ScanRanges.java  | 14 +++--
 .../org/apache/phoenix/schema/types/PLong.java  |  6 +-
 3 files changed, 80 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/e5c9b2fa/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
index 55f2dd0..99cbe47 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
@@ -42,10 +42,12 @@ import java.sql.DriverManager;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLException;
+import java.sql.Timestamp;
 import java.util.Properties;
 
 import org.apache.phoenix.compile.QueryPlan;
 import org.apache.phoenix.exception.SQLExceptionCode;
+import org.apache.phoenix.jdbc.PhoenixResultSet;
 import org.apache.phoenix.jdbc.PhoenixStatement;
 import org.apache.phoenix.query.QueryConstants;
 import org.apache.phoenix.query.QueryServices;
@@ -1422,6 +1424,70 @@ public class UpsertSelectIT extends 
ParallelStatsDisabledIT {
 conn.close();
 }
 
+@Test // See https://issues.apache.org/jira/browse/PHOENIX-4265
+public void testLongCodecUsedForRowTimestamp() throws Exception {
+String tableName = generateUniqueName();
+String indexName = generateUniqueName();
+try (Connection conn = DriverManager.getConnection(getUrl())) {
+conn.createStatement().execute("CREATE IMMUTABLE TABLE " + 
tableName
++ " (k1 TIMESTAMP not null, k2 bigint not null, v bigint, 
constraint pk primary key (k1 row_timestamp, k2)) SALT_BUCKETS = 9");
+conn.createStatement().execute(
+"CREATE INDEX " + indexName + " ON " + tableName + " (v) 
INCLUDE (k2)");
+PreparedStatement stmt =
+conn.prepareStatement("UPSERT INTO " + tableName + " 
VALUES (?, ?, ?) ");
+stmt.setTimestamp(1, new Timestamp(1000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 1000);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(2000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(3000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(4000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(5000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 10);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(6000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 20);
+stmt.executeUpdate();
+conn.commit();
+ResultSet rs = conn.createStatement().executeQuery("SELECT " +
+" K2 FROM " + tableName + " WHERE V = 5");
+assertTrue("Index " + indexName + " should have been used",
+
rs.unwrap(PhoenixResultSet.class).getStatement().getQueryPlan().getTableRef()
+.getTable().getName().getString().equals(indexName));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertFalse(rs.next());
+rs =
+conn.createStatement().executeQuery("SELECT /*+ INDEX(" + 
tableName + " "
++ indexName + ") */ " + " K2 FROM " + tableName + 
" WHERE V = 5");
+assertTrue("Index " + indexName + " should have been used",
+

phoenix git commit: PHOENIX-4265 NPE when ROW_TIMESTAMP is SQL timestamp column

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 42fb2fd43 -> acc6f3b5b


PHOENIX-4265 NPE when ROW_TIMESTAMP is SQL timestamp column


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

Branch: refs/heads/4.x-HBase-0.98
Commit: acc6f3b5bb9f34dcfa3ccf16486c6b8e8bdf548c
Parents: 42fb2fd
Author: Samarth Jain 
Authored: Tue Oct 3 10:37:40 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 10:37:40 2017 -0700

--
 .../apache/phoenix/end2end/UpsertSelectIT.java  | 66 
 .../org/apache/phoenix/compile/ScanRanges.java  | 14 +++--
 .../org/apache/phoenix/schema/types/PLong.java  |  6 +-
 3 files changed, 80 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/acc6f3b5/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
index c6ad696..087dadf 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
@@ -42,10 +42,12 @@ import java.sql.DriverManager;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLException;
+import java.sql.Timestamp;
 import java.util.Properties;
 
 import org.apache.phoenix.compile.QueryPlan;
 import org.apache.phoenix.exception.SQLExceptionCode;
+import org.apache.phoenix.jdbc.PhoenixResultSet;
 import org.apache.phoenix.jdbc.PhoenixStatement;
 import org.apache.phoenix.query.QueryConstants;
 import org.apache.phoenix.query.QueryServices;
@@ -1420,6 +1422,70 @@ public class UpsertSelectIT extends 
ParallelStatsDisabledIT {
 conn.close();
 }
 
+@Test // See https://issues.apache.org/jira/browse/PHOENIX-4265
+public void testLongCodecUsedForRowTimestamp() throws Exception {
+String tableName = generateUniqueName();
+String indexName = generateUniqueName();
+try (Connection conn = DriverManager.getConnection(getUrl())) {
+conn.createStatement().execute("CREATE IMMUTABLE TABLE " + 
tableName
++ " (k1 TIMESTAMP not null, k2 bigint not null, v bigint, 
constraint pk primary key (k1 row_timestamp, k2)) SALT_BUCKETS = 9");
+conn.createStatement().execute(
+"CREATE INDEX " + indexName + " ON " + tableName + " (v) 
INCLUDE (k2)");
+PreparedStatement stmt =
+conn.prepareStatement("UPSERT INTO " + tableName + " 
VALUES (?, ?, ?) ");
+stmt.setTimestamp(1, new Timestamp(1000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 1000);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(2000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(3000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(4000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(5000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 10);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(6000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 20);
+stmt.executeUpdate();
+conn.commit();
+ResultSet rs = conn.createStatement().executeQuery("SELECT " +
+" K2 FROM " + tableName + " WHERE V = 5");
+assertTrue("Index " + indexName + " should have been used",
+
rs.unwrap(PhoenixResultSet.class).getStatement().getQueryPlan().getTableRef()
+.getTable().getName().getString().equals(indexName));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertFalse(rs.next());
+rs =
+conn.createStatement().executeQuery("SELECT /*+ INDEX(" + 
tableName + " "
++ indexName + ") */ " + " K2 FROM " + tableName + 
" WHERE V = 5");
+assertTrue("Index " + indexName + " should have been used",
+  

phoenix git commit: PHOENIX-4265 NPE when ROW_TIMESTAMP is SQL timestamp column

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 8dfc88db1 -> 8688fa603


PHOENIX-4265 NPE when ROW_TIMESTAMP is SQL timestamp column


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

Branch: refs/heads/4.x-HBase-1.1
Commit: 8688fa603aee3b994e22ce5dda75af3df89224f5
Parents: 8dfc88d
Author: Samarth Jain 
Authored: Tue Oct 3 10:38:05 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 10:38:05 2017 -0700

--
 .../apache/phoenix/end2end/UpsertSelectIT.java  | 66 
 .../org/apache/phoenix/compile/ScanRanges.java  | 14 +++--
 .../org/apache/phoenix/schema/types/PLong.java  |  6 +-
 3 files changed, 80 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/8688fa60/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
index 55f2dd0..99cbe47 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
@@ -42,10 +42,12 @@ import java.sql.DriverManager;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLException;
+import java.sql.Timestamp;
 import java.util.Properties;
 
 import org.apache.phoenix.compile.QueryPlan;
 import org.apache.phoenix.exception.SQLExceptionCode;
+import org.apache.phoenix.jdbc.PhoenixResultSet;
 import org.apache.phoenix.jdbc.PhoenixStatement;
 import org.apache.phoenix.query.QueryConstants;
 import org.apache.phoenix.query.QueryServices;
@@ -1422,6 +1424,70 @@ public class UpsertSelectIT extends 
ParallelStatsDisabledIT {
 conn.close();
 }
 
+@Test // See https://issues.apache.org/jira/browse/PHOENIX-4265
+public void testLongCodecUsedForRowTimestamp() throws Exception {
+String tableName = generateUniqueName();
+String indexName = generateUniqueName();
+try (Connection conn = DriverManager.getConnection(getUrl())) {
+conn.createStatement().execute("CREATE IMMUTABLE TABLE " + 
tableName
++ " (k1 TIMESTAMP not null, k2 bigint not null, v bigint, 
constraint pk primary key (k1 row_timestamp, k2)) SALT_BUCKETS = 9");
+conn.createStatement().execute(
+"CREATE INDEX " + indexName + " ON " + tableName + " (v) 
INCLUDE (k2)");
+PreparedStatement stmt =
+conn.prepareStatement("UPSERT INTO " + tableName + " 
VALUES (?, ?, ?) ");
+stmt.setTimestamp(1, new Timestamp(1000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 1000);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(2000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(3000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(4000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(5000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 10);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(6000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 20);
+stmt.executeUpdate();
+conn.commit();
+ResultSet rs = conn.createStatement().executeQuery("SELECT " +
+" K2 FROM " + tableName + " WHERE V = 5");
+assertTrue("Index " + indexName + " should have been used",
+
rs.unwrap(PhoenixResultSet.class).getStatement().getQueryPlan().getTableRef()
+.getTable().getName().getString().equals(indexName));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertFalse(rs.next());
+rs =
+conn.createStatement().executeQuery("SELECT /*+ INDEX(" + 
tableName + " "
++ indexName + ") */ " + " K2 FROM " + tableName + 
" WHERE V = 5");
+assertTrue("Index " + indexName + " should have been used",
+

phoenix git commit: PHOENIX-4265 NPE when ROW_TIMESTAMP is SQL timestamp column

2017-10-03 Thread samarth
Repository: phoenix
Updated Branches:
  refs/heads/master aaa41a33d -> 119f86e0c


PHOENIX-4265 NPE when ROW_TIMESTAMP is SQL timestamp column


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

Branch: refs/heads/master
Commit: 119f86e0c29ed6331df35028d37f6964393f122b
Parents: aaa41a3
Author: Samarth Jain 
Authored: Tue Oct 3 10:37:15 2017 -0700
Committer: Samarth Jain 
Committed: Tue Oct 3 10:37:15 2017 -0700

--
 .../apache/phoenix/end2end/UpsertSelectIT.java  | 66 
 .../org/apache/phoenix/compile/ScanRanges.java  | 14 +++--
 .../org/apache/phoenix/schema/types/PLong.java  |  6 +-
 3 files changed, 80 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/119f86e0/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
index fef5a25..275d72d 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java
@@ -42,10 +42,12 @@ import java.sql.DriverManager;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.SQLException;
+import java.sql.Timestamp;
 import java.util.Properties;
 
 import org.apache.phoenix.compile.QueryPlan;
 import org.apache.phoenix.exception.SQLExceptionCode;
+import org.apache.phoenix.jdbc.PhoenixResultSet;
 import org.apache.phoenix.jdbc.PhoenixStatement;
 import org.apache.phoenix.query.QueryConstants;
 import org.apache.phoenix.query.QueryServices;
@@ -1420,6 +1422,70 @@ public class UpsertSelectIT extends 
ParallelStatsDisabledIT {
 conn.close();
 }
 
+@Test // See https://issues.apache.org/jira/browse/PHOENIX-4265
+public void testLongCodecUsedForRowTimestamp() throws Exception {
+String tableName = generateUniqueName();
+String indexName = generateUniqueName();
+try (Connection conn = DriverManager.getConnection(getUrl())) {
+conn.createStatement().execute("CREATE IMMUTABLE TABLE " + 
tableName
++ " (k1 TIMESTAMP not null, k2 bigint not null, v bigint, 
constraint pk primary key (k1 row_timestamp, k2)) SALT_BUCKETS = 9");
+conn.createStatement().execute(
+"CREATE INDEX " + indexName + " ON " + tableName + " (v) 
INCLUDE (k2)");
+PreparedStatement stmt =
+conn.prepareStatement("UPSERT INTO " + tableName + " 
VALUES (?, ?, ?) ");
+stmt.setTimestamp(1, new Timestamp(1000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 1000);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(2000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(3000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(4000));
+stmt.setLong(2, 5000);
+stmt.setLong(3, 5);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(5000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 10);
+stmt.executeUpdate();
+stmt.setTimestamp(1, new Timestamp(6000));
+stmt.setLong(2, 2000);
+stmt.setLong(3, 20);
+stmt.executeUpdate();
+conn.commit();
+ResultSet rs = conn.createStatement().executeQuery("SELECT " +
+" K2 FROM " + tableName + " WHERE V = 5");
+assertTrue("Index " + indexName + " should have been used",
+
rs.unwrap(PhoenixResultSet.class).getStatement().getQueryPlan().getTableRef()
+.getTable().getName().getString().equals(indexName));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertTrue(rs.next());
+assertEquals(5000, rs.getLong("k2"));
+assertFalse(rs.next());
+rs =
+conn.createStatement().executeQuery("SELECT /*+ INDEX(" + 
tableName + " "
++ indexName + ") */ " + " K2 FROM " + tableName + 
" WHERE V = 5");
+assertTrue("Index " + indexName + " should have been used",
+
rs.unwrap

Build failed in Jenkins: Phoenix | Master #1832

2017-10-03 Thread Apache Jenkins Server
See 


Changes:

[ssa] PHOENIX-3112 Partial row scan not handled correctly

--
[...truncated 86.48 KB...]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.786 s 
- in org.apache.phoenix.end2end.MappingTableDataTypeIT
[INFO] Running org.apache.phoenix.end2end.NativeHBaseTypesIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.581 s 
- in org.apache.phoenix.end2end.NamespaceSchemaMappingIT
[INFO] Running org.apache.phoenix.end2end.NotQueryWithGlobalImmutableIndexesIT
[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.472 
s - in org.apache.phoenix.end2end.ModulusExpressionIT
[INFO] Running org.apache.phoenix.end2end.NotQueryWithLocalImmutableIndexesIT
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 57.179 s 
- in org.apache.phoenix.end2end.NativeHBaseTypesIT
[INFO] Running org.apache.phoenix.end2end.NthValueFunctionIT
[INFO] Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 35.558 
s - in org.apache.phoenix.end2end.NthValueFunctionIT
[INFO] Running org.apache.phoenix.end2end.NullIT
[WARNING] Tests run: 20, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 
597.446 s - in org.apache.phoenix.end2end.ConcurrentMutationsIT
[INFO] Running org.apache.phoenix.end2end.NumericArithmeticIT
[INFO] Tests run: 44, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 199.303 
s - in org.apache.phoenix.end2end.NotQueryWithGlobalImmutableIndexesIT
[INFO] Running org.apache.phoenix.end2end.OctetLengthFunctionEnd2EndIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.352 s 
- in org.apache.phoenix.end2end.OctetLengthFunctionEnd2EndIT
[INFO] Running org.apache.phoenix.end2end.OnDuplicateKeyIT
[INFO] Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 75.544 
s - in org.apache.phoenix.end2end.NumericArithmeticIT
[INFO] Running org.apache.phoenix.end2end.OrderByIT
[INFO] Tests run: 63, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 422.326 
s - in org.apache.phoenix.end2end.InQueryIT
[INFO] Tests run: 63, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 442.753 
s - in org.apache.phoenix.end2end.GroupByIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 313.601 
s - in org.apache.phoenix.end2end.NotQueryWithLocalImmutableIndexesIT
[INFO] Running org.apache.phoenix.end2end.PartialScannerResultsDisabledIT
[INFO] Running org.apache.phoenix.end2end.PercentileIT
[INFO] Tests run: 70, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 464.542 
s - in org.apache.phoenix.end2end.IntArithmeticIT
[INFO] Running org.apache.phoenix.end2end.PhoenixRuntimeIT
[WARNING] Corrupted stdin stream in forked JVM 5. See the dump file 

[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.201 s 
- in org.apache.phoenix.end2end.PhoenixRuntimeIT
[INFO] Running org.apache.phoenix.end2end.PowerFunctionEnd2EndIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.384 s 
- in org.apache.phoenix.end2end.PowerFunctionEnd2EndIT
[INFO] Running org.apache.phoenix.end2end.PrimitiveTypeIT
[INFO] Running org.apache.phoenix.end2end.PointInTimeQueryIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 58.037 s 
- in org.apache.phoenix.end2end.PartialScannerResultsDisabledIT
[INFO] Running org.apache.phoenix.end2end.ProductMetricsIT
[INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 49.943 
s - in org.apache.phoenix.end2end.PercentileIT
[INFO] Running org.apache.phoenix.end2end.QueryDatabaseMetaDataIT
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.055 s 
- in org.apache.phoenix.end2end.PrimitiveTypeIT
[INFO] Running org.apache.phoenix.end2end.QueryExecWithoutSCNIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.436 s 
- in org.apache.phoenix.end2end.QueryExecWithoutSCNIT
[INFO] Running org.apache.phoenix.end2end.QueryIT
[INFO] Tests run: 56, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 381.566 
s - in org.apache.phoenix.end2end.NullIT
[INFO] Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 103.472 
s - in org.apache.phoenix.end2end.QueryDatabaseMetaDataIT
[INFO] Running org.apache.phoenix.end2end.QueryMoreIT
[INFO] Running org.apache.phoenix.end2end.QueryWithOffsetIT
[INFO] Tests run: 55, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 139.983 
s - in org.apache.phoenix.end2end.ProductMetricsIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.826 s 
- in org.apache.phoenix.end2end.QueryWithOffsetIT
[INFO] Running org.apache.phoenix.end2end.RangeScanIT
[INFO] Running org.apache.phoenix.end2end.RTrimFunctionIT
[INFO] Tests run: 48, Failures: 0, Errors: 0, Skipped: 0, Time elapse

Build failed in Jenkins: Phoenix-4.x-HBase-1.1 #612

2017-10-03 Thread Apache Jenkins Server
See 


Changes:

[ssa] PHOENIX-3112 Partial row scan not handled correctly

--
[...truncated 111.85 KB...]
[INFO] Running org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.56 s 
- in org.apache.phoenix.end2end.ConnectionUtilIT
[INFO] Running org.apache.phoenix.end2end.ContextClassloaderIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.921 s 
- in org.apache.phoenix.end2end.ContextClassloaderIT
[WARNING] Tests run: 24, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
67.864 s - in org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT
[WARNING] Tests run: 24, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
67.949 s - in 
org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT
[WARNING] Tests run: 24, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
70.773 s - in 
org.apache.phoenix.end2end.ColumnEncodedImmutableNonTxStatsCollectorIT
[WARNING] Tests run: 24, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
71.96 s - in org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.732 s 
- in org.apache.phoenix.end2end.CountDistinctCompressionIT
[INFO] Running org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.DropSchemaIT
[INFO] Running org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Running org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.095 s 
- in org.apache.phoenix.end2end.DropSchemaIT
[INFO] Running org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 27.138 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildIT
[INFO] Running 
org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 84.18 s 
- in org.apache.phoenix.end2end.CsvBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.IndexToolIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.796 s 
- in org.apache.phoenix.end2end.IndexToolForPartialBuildWithNamespaceEnabledIT
[INFO] Running org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Tests run: 32, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 114.929 
s - in org.apache.phoenix.end2end.IndexExtendedIT
[INFO] Running 
org.apache.phoenix.end2end.NonColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 136.275 
s - in org.apache.phoenix.end2end.FlappingLocalIndexIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 45.442 s 
- in org.apache.phoenix.end2end.LocalIndexSplitMergeIT
[INFO] Running 
org.apache.phoenix.end2end.NonColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[WARNING] Tests run: 24, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
62.655 s - in 
org.apache.phoenix.end2end.NonColumnEncodedImmutableNonTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.QueryTimeoutIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 38.378 s 
- in org.apache.phoenix.end2end.PartialResultServerConfigurationIT
[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 203.619 
s - in org.apache.phoenix.end2end.IndexScrutinyToolIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.568 s 
- in org.apache.phoenix.end2end.QueryTimeoutIT
[WARNING] Tests run: 24, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 
69.356 s - in 
org.apache.phoenix.end2end.NonColumnEncodedImmutableTxStatsCollectorIT
[INFO] Running org.apache.phoenix.end2end.QueryWithLimitIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.988 s 
- in org.apache.phoenix.end2end.QueryWithLimitIT
[INFO] Running org.apache.phoenix.end2end.RegexBulkLoadToolIT
[INFO] Running org.apache.phoenix.end2end.RebuildIndexConnectionPropsIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.872 s 
- in org.apache.phoenix.end2end.RebuildIndexConnectionPropsIT
[INFO] Running org.apache.phoenix.end2end.SystemTablePermissionsIT
[INFO] Running org.apache.phoenix.end2end.RenewLeaseIT
[INFO] Running org.apache.phoenix.end2end.SpillableGroupByIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.712 s 
- in org.apache.phoenix.end2end.RenewLeaseIT
[INFO] Running 
org.apache.phoenix.end2end.SysTableNamespaceMappedStatsCollectorIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.162 s 
- in org.apache.p

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

2017-10-03 Thread Apache Jenkins Server
See 


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

[Phoenix_Compile_Compat_wHBase] $ /bin/bash /tmp/jenkins7599430691602677201.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) 386417
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:   98958120 kB
MemFree:20889436 kB
Filesystem  Size  Used Avail Use% Mounted on
udev 48G 0   48G   0% /dev
tmpfs   9.5G  994M  8.5G  11% /run
/dev/sda1   364G  171G  175G  50% /
tmpfs48G  516K   48G   1% /dev/shm
tmpfs   5.0M 0  5.0M   0% /run/lock
tmpfs48G 0   48G   0% /sys/fs/cgroup
tmpfs   9.5G 0  9.5G   0% /run/user/10025
apache-maven-2.2.1
apache-maven-3.0.4
apache-maven-3.0.5
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
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.

main:
 [exec] 
~/jenkins-slave/workspace/Phoenix_Compile_Compat_wHBase/hbase/hbase-common 
~/jenkins-slave/workspace/Phoenix_Compile_Compat_wHBase/hbase/hbase-common
 [exec] 
~/jenkins-slave/workspace/Phoenix_Compile_Compat_wHBase/hbase/hbase-common

main:
[mkdir] Created dir: 

 [exec] tar: hadoop-snappy-nativelibs.tar: Cannot open: No such file or 
directory
 [exec] tar: Error is not recoverable: exiting now
 [exec] Result: 2

main:
[mkdir] Created dir: 

 [copy] Copying 20 files to 

[mkdir] Created dir: 

[mkdir] Created dir: 


main:
[mkdir] Created dir: 

 [copy] Copying 17 files to 

[mkdir] Created dir: 


main:
[mkdir] Created dir: 

 [copy] Copying 1 file to 

[mkdir] Created dir: 


HBase pom.xml:

Got HBase version as 0.98.25-SNAPSHOT
Cloning into 'phoenix'...
Switched to a new branch '4.x-HBase-0.98'
Branch 4.x-HBase-0.98 set up to track remote branch 4.x-HBase-0.98 from origin.
ANTLR Parser Generator  Version 3.5.2
Output file 

 does not exist: must build 

PhoenixSQL.g


===
Verifying compile level compatibility with HBase branch-1.3 with Phoenix master
=

Build failed in Jenkins: Phoenix-4.x-HBase-1.2 #195

2017-10-03 Thread Apache Jenkins Server
See 


Changes:

[ssa] PHOENIX-3112 Partial row scan not handled correctly

--
[...truncated 104.18 KB...]
[INFO] Running org.apache.phoenix.end2end.index.txn.MutableRollbackIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 54.052 s 
- in org.apache.phoenix.end2end.index.txn.RollbackIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinCacheIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.645 s 
- in org.apache.phoenix.end2end.join.HashJoinCacheIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinGlobalIndexIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 149.374 
s - in org.apache.phoenix.end2end.index.MutableIndexSplitReverseScanIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinLocalIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 367.687 
s - in org.apache.phoenix.end2end.index.LocalImmutableTxIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 348.291 
s - in org.apache.phoenix.end2end.index.LocalImmutableNonTxIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 341.525 
s - in org.apache.phoenix.end2end.index.LocalMutableNonTxIndexIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 69.567 s 
- in org.apache.phoenix.end2end.index.txn.MutableRollbackIT
[INFO] Running org.apache.phoenix.end2end.join.SortMergeJoinLocalIndexIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinMoreIT
[INFO] Running org.apache.phoenix.end2end.join.HashJoinNoIndexIT
[INFO] Running org.apache.phoenix.end2end.join.SortMergeJoinGlobalIndexIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 53.365 s 
- in org.apache.phoenix.end2end.join.HashJoinMoreIT
[INFO] Running org.apache.phoenix.end2end.join.SortMergeJoinNoIndexIT
[INFO] Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 365.655 
s - in org.apache.phoenix.end2end.index.LocalMutableTxIndexIT
[INFO] Running org.apache.phoenix.end2end.join.SubqueryIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 183.585 
s - in org.apache.phoenix.end2end.join.HashJoinNoIndexIT
[INFO] Tests run: 64, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 493.85 
s - in org.apache.phoenix.end2end.index.MutableIndexIT
[INFO] Running org.apache.phoenix.end2end.join.SubqueryUsingSortMergeJoinIT
[INFO] Running org.apache.phoenix.end2end.salted.SaltedTableIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.943 s 
- in org.apache.phoenix.end2end.salted.SaltedTableIT
[INFO] Running org.apache.phoenix.end2end.salted.SaltedTableUpsertSelectIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 186.557 
s - in org.apache.phoenix.end2end.join.SortMergeJoinNoIndexIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 27.012 s 
- in org.apache.phoenix.end2end.salted.SaltedTableUpsertSelectIT
[INFO] Running org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.129 s 
- in org.apache.phoenix.iterate.PhoenixQueryTimeoutIT
[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: 2.294 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.061 s 
- in org.apache.phoenix.replication.SystemCatalogWALEntryFilterIT
[INFO] Running org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 321.001 
s - in org.apache.phoenix.end2end.join.HashJoinGlobalIndexIT
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.418 s 
- in org.apache.phoenix.rpc.UpdateCacheIT
[INFO] Running org.apache.phoenix.trace.PhoenixTracingEndToEndIT
[INFO] Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 216.318 
s - in org.apache.phoenix.end2end.join.SubqueryIT
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 49.318 s 
- in org.apache.phoenix.iterate.RoundRobinResultIteratorIT
[INFO] Running org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.339 s 
- in org.apache.phoenix.trace.PhoenixTableMetricsWriterIT
[INFO] Running org.apache.phoenix.tx.TransactionIT
[INFO] Running org.apache.phoenix.tx.FlappingTransactionIT
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 325.511 
s - in org.apache.phoenix.end2end.join.SortMergeJoinGlobalIndexIT
[INFO] Running org.apache.phoenix.tx.ParameterizedTransactionIT
[INFO] Tests 

[2/3] phoenix git commit: PHOENIX-3112 Partial row scan not handled correctly

2017-10-03 Thread ssa
PHOENIX-3112 Partial row scan not handled correctly


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

Branch: refs/heads/4.x-HBase-1.2
Commit: e5a9c72e368378f35fec8df3abdeb77cae3d9f64
Parents: d231db8
Author: Sergey Soldatov 
Authored: Wed Aug 2 16:56:04 2017 -0700
Committer: Sergey Soldatov 
Committed: Tue Oct 3 00:44:01 2017 -0700

--
 .../PartialResultServerConfigurationIT.java | 148 ++
 .../PartialScannerResultsDisabledIT.java| 193 +++
 .../DataTableLocalIndexRegionScanner.java   |   7 +-
 .../hbase/regionserver/ScannerContextUtil.java  |  41 
 .../phoenix/coprocessor/BaseRegionScanner.java  |   4 +-
 .../coprocessor/BaseScannerRegionObserver.java  |  11 +-
 .../coprocessor/DelegateRegionScanner.java  |   4 +-
 .../coprocessor/HashJoinRegionScanner.java  |  38 +---
 .../phoenix/iterate/RegionScannerFactory.java   |  51 +
 .../phoenix/schema/stats/StatisticsScanner.java |   4 +-
 10 files changed, 411 insertions(+), 90 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/e5a9c72e/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
new file mode 100644
index 000..1c9ac38
--- /dev/null
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
@@ -0,0 +1,148 @@
+/*
+ * 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;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hadoop.hbase.HBaseTestingUtility;
+import org.apache.hadoop.hbase.HConstants;
+import org.apache.hadoop.hbase.MiniHBaseCluster;
+import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest;
+import org.apache.phoenix.jdbc.PhoenixConnection;
+import org.apache.phoenix.jdbc.PhoenixDriver;
+import org.apache.phoenix.query.ConnectionQueryServices.Feature;
+import org.apache.phoenix.query.QueryServices;
+import org.apache.phoenix.util.PhoenixRuntime;
+import org.apache.phoenix.util.PropertiesUtil;
+import org.junit.AfterClass;
+import org.junit.Assume;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.experimental.categories.Category;
+
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.Statement;
+import java.util.Properties;
+import java.util.Random;
+import java.util.UUID;
+
+import static 
org.apache.hadoop.hbase.HConstants.HBASE_CLIENT_SCANNER_TIMEOUT_PERIOD;
+import static org.apache.phoenix.query.BaseTest.generateUniqueName;
+import static org.apache.phoenix.query.BaseTest.setUpConfigForMiniCluster;
+import static org.apache.phoenix.query.QueryServices.*;
+import static org.apache.phoenix.util.TestUtil.TEST_PROPERTIES;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+
+
+/**
+ * This is a separate from @PartialResultDisabledIT because it requires server 
side configuration
+ */
+@Category(NeedsOwnMiniClusterTest.class)
+public class PartialResultServerConfigurationIT {
+private static HBaseTestingUtility hbaseTestUtil;
+private static String zkQuorum;
+private static String url;
+
+@BeforeClass
+public static void setUp() throws Exception {
+Configuration conf = HBaseConfiguration.create();
+hbaseTestUtil = new HBaseTestingUtility(conf);
+setUpConfigForMiniCluster(conf);
+
+//Enforce the limit of the result, so scans will stop between cells.
+conf.setLong(HConstants.HBASE_CLIENT_SCANNER_MAX_RESULT_SIZE_KEY, 5);
+

[1/3] phoenix git commit: PHOENIX-3112 Partial row scan not handled correctly

2017-10-03 Thread ssa
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.1 edce39e25 -> 8dfc88db1
  refs/heads/4.x-HBase-1.2 d231db891 -> e5a9c72e3
  refs/heads/master bd21ed3d6 -> aaa41a33d


PHOENIX-3112 Partial row scan not handled correctly


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

Branch: refs/heads/4.x-HBase-1.1
Commit: 8dfc88db12188ad5d80bf6071a8a2b879e2558f7
Parents: edce39e
Author: Sergey Soldatov 
Authored: Wed Aug 2 16:56:04 2017 -0700
Committer: Sergey Soldatov 
Committed: Tue Oct 3 00:39:06 2017 -0700

--
 .../PartialResultServerConfigurationIT.java | 148 ++
 .../PartialScannerResultsDisabledIT.java| 193 +++
 .../DataTableLocalIndexRegionScanner.java   |   7 +-
 .../hbase/regionserver/ScannerContextUtil.java  |  41 
 .../phoenix/coprocessor/BaseRegionScanner.java  |   4 +-
 .../coprocessor/BaseScannerRegionObserver.java  |  11 +-
 .../coprocessor/DelegateRegionScanner.java  |   4 +-
 .../coprocessor/HashJoinRegionScanner.java  |  38 +---
 .../phoenix/iterate/RegionScannerFactory.java   |  51 +
 .../phoenix/schema/stats/StatisticsScanner.java |   4 +-
 10 files changed, 411 insertions(+), 90 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/8dfc88db/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
new file mode 100644
index 000..1c9ac38
--- /dev/null
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
@@ -0,0 +1,148 @@
+/*
+ * 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;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hadoop.hbase.HBaseTestingUtility;
+import org.apache.hadoop.hbase.HConstants;
+import org.apache.hadoop.hbase.MiniHBaseCluster;
+import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest;
+import org.apache.phoenix.jdbc.PhoenixConnection;
+import org.apache.phoenix.jdbc.PhoenixDriver;
+import org.apache.phoenix.query.ConnectionQueryServices.Feature;
+import org.apache.phoenix.query.QueryServices;
+import org.apache.phoenix.util.PhoenixRuntime;
+import org.apache.phoenix.util.PropertiesUtil;
+import org.junit.AfterClass;
+import org.junit.Assume;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.experimental.categories.Category;
+
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.Statement;
+import java.util.Properties;
+import java.util.Random;
+import java.util.UUID;
+
+import static 
org.apache.hadoop.hbase.HConstants.HBASE_CLIENT_SCANNER_TIMEOUT_PERIOD;
+import static org.apache.phoenix.query.BaseTest.generateUniqueName;
+import static org.apache.phoenix.query.BaseTest.setUpConfigForMiniCluster;
+import static org.apache.phoenix.query.QueryServices.*;
+import static org.apache.phoenix.util.TestUtil.TEST_PROPERTIES;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+
+
+/**
+ * This is a separate from @PartialResultDisabledIT because it requires server 
side configuration
+ */
+@Category(NeedsOwnMiniClusterTest.class)
+public class PartialResultServerConfigurationIT {
+private static HBaseTestingUtility hbaseTestUtil;
+private static String zkQuorum;
+private static String url;
+
+@BeforeClass
+public static void setUp() throws Exception {
+Configuration conf = HBaseConfiguration.create();
+hbaseTestUtil = new HBaseTestingUtility(conf);
+setUpConfi

[3/3] phoenix git commit: PHOENIX-3112 Partial row scan not handled correctly

2017-10-03 Thread ssa
PHOENIX-3112 Partial row scan not handled correctly


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

Branch: refs/heads/master
Commit: aaa41a33d025ad6daa832fe8b42fc235e7154648
Parents: bd21ed3
Author: Sergey Soldatov 
Authored: Wed Aug 2 16:56:04 2017 -0700
Committer: Sergey Soldatov 
Committed: Tue Oct 3 00:44:26 2017 -0700

--
 .../PartialResultServerConfigurationIT.java | 148 ++
 .../PartialScannerResultsDisabledIT.java| 193 +++
 .../DataTableLocalIndexRegionScanner.java   |   7 +-
 .../hbase/regionserver/ScannerContextUtil.java  |  41 
 .../phoenix/coprocessor/BaseRegionScanner.java  |   4 +-
 .../coprocessor/BaseScannerRegionObserver.java  |  11 +-
 .../coprocessor/DelegateRegionScanner.java  |   4 +-
 .../coprocessor/HashJoinRegionScanner.java  |  38 +---
 .../phoenix/iterate/RegionScannerFactory.java   |  51 +
 .../phoenix/schema/stats/StatisticsScanner.java |   4 +-
 10 files changed, 411 insertions(+), 90 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/phoenix/blob/aaa41a33/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
--
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
new file mode 100644
index 000..1c9ac38
--- /dev/null
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/PartialResultServerConfigurationIT.java
@@ -0,0 +1,148 @@
+/*
+ * 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;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hadoop.hbase.HBaseTestingUtility;
+import org.apache.hadoop.hbase.HConstants;
+import org.apache.hadoop.hbase.MiniHBaseCluster;
+import org.apache.phoenix.end2end.NeedsOwnMiniClusterTest;
+import org.apache.phoenix.jdbc.PhoenixConnection;
+import org.apache.phoenix.jdbc.PhoenixDriver;
+import org.apache.phoenix.query.ConnectionQueryServices.Feature;
+import org.apache.phoenix.query.QueryServices;
+import org.apache.phoenix.util.PhoenixRuntime;
+import org.apache.phoenix.util.PropertiesUtil;
+import org.junit.AfterClass;
+import org.junit.Assume;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.experimental.categories.Category;
+
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.Statement;
+import java.util.Properties;
+import java.util.Random;
+import java.util.UUID;
+
+import static 
org.apache.hadoop.hbase.HConstants.HBASE_CLIENT_SCANNER_TIMEOUT_PERIOD;
+import static org.apache.phoenix.query.BaseTest.generateUniqueName;
+import static org.apache.phoenix.query.BaseTest.setUpConfigForMiniCluster;
+import static org.apache.phoenix.query.QueryServices.*;
+import static org.apache.phoenix.util.TestUtil.TEST_PROPERTIES;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+
+
+/**
+ * This is a separate from @PartialResultDisabledIT because it requires server 
side configuration
+ */
+@Category(NeedsOwnMiniClusterTest.class)
+public class PartialResultServerConfigurationIT {
+private static HBaseTestingUtility hbaseTestUtil;
+private static String zkQuorum;
+private static String url;
+
+@BeforeClass
+public static void setUp() throws Exception {
+Configuration conf = HBaseConfiguration.create();
+hbaseTestUtil = new HBaseTestingUtility(conf);
+setUpConfigForMiniCluster(conf);
+
+//Enforce the limit of the result, so scans will stop between cells.
+conf.setLong(HConstants.HBASE_CLIENT_SCANNER_MAX_RESULT_SIZE_KEY, 5);
+