[jira] [Resolved] (PHOENIX-5348) IndexRebuildTaskIT.testIndexRebuildTask flaps (Jenkins only)

2019-08-16 Thread Chinmay Kulkarni (JIRA)


 [ 
https://issues.apache.org/jira/browse/PHOENIX-5348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chinmay Kulkarni resolved PHOENIX-5348.
---
Resolution: Fixed

> IndexRebuildTaskIT.testIndexRebuildTask flaps (Jenkins only)
> 
>
> Key: PHOENIX-5348
> URL: https://issues.apache.org/jira/browse/PHOENIX-5348
> Project: Phoenix
>  Issue Type: Bug
>Reporter: Lars Hofhansl
>Assignee: Gokcen Iskender
>Priority: Critical
> Fix For: 4.15.0, 5.1.0
>
> Attachments: 5348-disable.txt, 5348-v2.txt, 5348.txt, 
> PHOENIX-5348-4.x-1.3.patch, PHOENIX-5348-master-v1.patch, PHOENIX-5348.patch
>
>  Time Spent: 7h 40m
>  Remaining Estimate: 0h
>
> This failed in the past four builds:
> {code}
> [ERROR] testIndexRebuildTask(org.apache.phoenix.end2end.IndexRebuildTaskIT)  
> Time elapsed: 20.672 s  <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<0>
>   at 
> org.apache.phoenix.end2end.IndexRebuildTaskIT.testIndexRebuildTask(IndexRebuildTaskIT.java:164)
> {code}
> But... It does not fail locally for me.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Updated] (PHOENIX-5348) IndexRebuildTaskIT.testIndexRebuildTask flaps (Jenkins only)

2019-08-16 Thread Gokcen Iskender (JIRA)


 [ 
https://issues.apache.org/jira/browse/PHOENIX-5348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gokcen Iskender updated PHOENIX-5348:
-
Attachment: PHOENIX-5348-4.x-1.3.patch

> IndexRebuildTaskIT.testIndexRebuildTask flaps (Jenkins only)
> 
>
> Key: PHOENIX-5348
> URL: https://issues.apache.org/jira/browse/PHOENIX-5348
> Project: Phoenix
>  Issue Type: Bug
>Reporter: Lars Hofhansl
>Assignee: Gokcen Iskender
>Priority: Critical
> Fix For: 4.15.0, 5.1.0
>
> Attachments: 5348-disable.txt, 5348-v2.txt, 5348.txt, 
> PHOENIX-5348-4.x-1.3.patch, PHOENIX-5348-master-v1.patch, PHOENIX-5348.patch
>
>  Time Spent: 7h 40m
>  Remaining Estimate: 0h
>
> This failed in the past four builds:
> {code}
> [ERROR] testIndexRebuildTask(org.apache.phoenix.end2end.IndexRebuildTaskIT)  
> Time elapsed: 20.672 s  <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<0>
>   at 
> org.apache.phoenix.end2end.IndexRebuildTaskIT.testIndexRebuildTask(IndexRebuildTaskIT.java:164)
> {code}
> But... It does not fail locally for me.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


Re: [VOTE] Release of Apache Phoenix 4.14.3 RC2

2019-08-16 Thread Vincent Poon
+1
Ran the core tests which passed, except for SaltedIndexIT (it seems that is
failing consistently for people when run as part of full suite?).
In any case, not a blocker.

On Fri, Aug 16, 2019 at 1:39 PM Geoffrey Jacoby  wrote:

> Vote: +1
>
> rat-check: OK
> Signature-check: OK
> Checksums: OK
> mvn clean verify: OK after hand-verifying some flappers.
>
> In addition to SaltedIndexIT, also saw some flappers on NativeHBaseTypesIT
> and ViewIT. Also HiveMapReduceIT has a habit of hanging on one machine I
> tested on. Since I don't expect many more, if any, 4.14 releases after
> this, and a lot of test stability work has gone into 4.15, I don't see a
> need to hold up this release on a flapper-killing quest.
>
> Sqlline test of table creation, population, index building, and verifying
> that indexes stay in sync after CRUD operations: OK
>
> Geoffrey
>
>
> On Fri, Aug 16, 2019 at 9:55 AM Chinmay Kulkarni <
> chinmayskulka...@gmail.com>
> wrote:
>
> > Vote: +1
> >
> > - apache-rat check: PASS
> > - Signatures and checksums: PASS
> > - mvn clean install -DskipTests: PASS
> > - Built from source and used sqlline to do basic DDL table/index
> creations.
> > Upserted a bunch of rows and tried some basic queries: PASS
> > - mvn package: (All UTs and ITs were green, except SaltedIndexIT which
> is a
> > known flapper) PASS
> >
> > Thanks,
> > Chinmay
> >
> > On Thu, Aug 15, 2019 at 2:34 PM Artem Ervits 
> > wrote:
> >
> > > vote: 4.14.3rc2-HBase-1.4
> > > +1 (non-binding)
> > >
> > > Sql: OK
> > > inserted rows with Java: OK
> > > ran code with Spark 2.3.3: OK
> > > signatures and sums for src and bin: OK
> > > installed binary on pseudodistributed hadoop 2.8.5 with hbase 1.4.10:
> OK
> > > mvn package: OK
> > >
> > > On Wed, Aug 14, 2019 at 1:24 PM swaroopa kadam <
> > swaroopa.kada...@gmail.com
> > > >
> > > wrote:
> > >
> > > > Hello Everyone,
> > > >
> > > > This is a call for a vote on Apache Phoenix 4.14.3 RC2. This is a
> patch
> > > > release of Phoenix 4.14 and is compatible with Apache HBase 1.3 and
> > > > 1.4. The release includes both a source-only release and a
> convenience
> > > > binary
> > > > release for each supported HBase version.
> > > >
> > > > This release includes critical bug fixes and improvements for
> secondary
> > > > indexes -- making them self-consistent.
> > > >
> > > > The source tarball, including signatures, digests, etc can be found
> at:
> > > >
> > > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.3-rc2/src/
> > > >
> > > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.4-rc2/src/
> > > >
> > > > The binary artifacts can be found at:
> > > >
> > > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.3-rc2/bin/
> > > >
> > > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.4-rc2/bin/
> > > >
> > > > For a complete list of changes, see:
> > > >
> > > >
> > >
> >
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12315120&version=12345601
> > > >
> > > > Artifacts are signed with my "CODE SIGNING KEY": 48B7807D95F127B5
> > > >
> > > > KEYS file available here:
> > > > https://dist.apache.org/repos/dist/dev/phoenix/KEYS
> > > >
> > > > The tag to be voted upon:
> > > >
> > > >
> > >
> >
> https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=commit;h=e2993552dc88cb7fc59fc0dfdaa2876ac260886c
> > > >
> > > >
> > > >
> > >
> >
> https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=commit;h=eb5424573bd2f5f247a61d1a28da81fb92f06ec6
> > > >
> > > > The vote will be open for at least 72 hours. Please vote:
> > > >
> > > > [ ] +1 approve
> > > > [ ] +0 no opinion
> > > > [ ] -1 disapprove (and the reason why)
> > > >
> > > > Thanks,
> > > > The Apache Phoenix Team
> > > >
> > > > --
> > > >
> > > >
> > > > Swaroopa Kadam
> > > > [image: https://]about.me/swaroopa_kadam
> > > > <
> > > >
> > >
> >
> https://about.me/swaroopa_kadam?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api
> > > > >
> > > >
> > >
> >
> >
> > --
> > Chinmay Kulkarni
> >
>


Re: [VOTE] Release of Apache Phoenix 4.14.3 RC2

2019-08-16 Thread Geoffrey Jacoby
Vote: +1

rat-check: OK
Signature-check: OK
Checksums: OK
mvn clean verify: OK after hand-verifying some flappers.

In addition to SaltedIndexIT, also saw some flappers on NativeHBaseTypesIT
and ViewIT. Also HiveMapReduceIT has a habit of hanging on one machine I
tested on. Since I don't expect many more, if any, 4.14 releases after
this, and a lot of test stability work has gone into 4.15, I don't see a
need to hold up this release on a flapper-killing quest.

Sqlline test of table creation, population, index building, and verifying
that indexes stay in sync after CRUD operations: OK

Geoffrey


On Fri, Aug 16, 2019 at 9:55 AM Chinmay Kulkarni 
wrote:

> Vote: +1
>
> - apache-rat check: PASS
> - Signatures and checksums: PASS
> - mvn clean install -DskipTests: PASS
> - Built from source and used sqlline to do basic DDL table/index creations.
> Upserted a bunch of rows and tried some basic queries: PASS
> - mvn package: (All UTs and ITs were green, except SaltedIndexIT which is a
> known flapper) PASS
>
> Thanks,
> Chinmay
>
> On Thu, Aug 15, 2019 at 2:34 PM Artem Ervits 
> wrote:
>
> > vote: 4.14.3rc2-HBase-1.4
> > +1 (non-binding)
> >
> > Sql: OK
> > inserted rows with Java: OK
> > ran code with Spark 2.3.3: OK
> > signatures and sums for src and bin: OK
> > installed binary on pseudodistributed hadoop 2.8.5 with hbase 1.4.10: OK
> > mvn package: OK
> >
> > On Wed, Aug 14, 2019 at 1:24 PM swaroopa kadam <
> swaroopa.kada...@gmail.com
> > >
> > wrote:
> >
> > > Hello Everyone,
> > >
> > > This is a call for a vote on Apache Phoenix 4.14.3 RC2. This is a patch
> > > release of Phoenix 4.14 and is compatible with Apache HBase 1.3 and
> > > 1.4. The release includes both a source-only release and a convenience
> > > binary
> > > release for each supported HBase version.
> > >
> > > This release includes critical bug fixes and improvements for secondary
> > > indexes -- making them self-consistent.
> > >
> > > The source tarball, including signatures, digests, etc can be found at:
> > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.3-rc2/src/
> > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.4-rc2/src/
> > >
> > > The binary artifacts can be found at:
> > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.3-rc2/bin/
> > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.4-rc2/bin/
> > >
> > > For a complete list of changes, see:
> > >
> > >
> >
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12315120&version=12345601
> > >
> > > Artifacts are signed with my "CODE SIGNING KEY": 48B7807D95F127B5
> > >
> > > KEYS file available here:
> > > https://dist.apache.org/repos/dist/dev/phoenix/KEYS
> > >
> > > The tag to be voted upon:
> > >
> > >
> >
> https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=commit;h=e2993552dc88cb7fc59fc0dfdaa2876ac260886c
> > >
> > >
> > >
> >
> https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=commit;h=eb5424573bd2f5f247a61d1a28da81fb92f06ec6
> > >
> > > The vote will be open for at least 72 hours. Please vote:
> > >
> > > [ ] +1 approve
> > > [ ] +0 no opinion
> > > [ ] -1 disapprove (and the reason why)
> > >
> > > Thanks,
> > > The Apache Phoenix Team
> > >
> > > --
> > >
> > >
> > > Swaroopa Kadam
> > > [image: https://]about.me/swaroopa_kadam
> > > <
> > >
> >
> https://about.me/swaroopa_kadam?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api
> > > >
> > >
> >
>
>
> --
> Chinmay Kulkarni
>


[jira] [Updated] (PHOENIX-4878) Remove SharedTableState and replace with PTable

2019-08-16 Thread Xinyi Yan (JIRA)


 [ 
https://issues.apache.org/jira/browse/PHOENIX-4878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xinyi Yan updated PHOENIX-4878:
---
Attachment: Screenshot from 2019-08-16 10-59-54.png

> Remove SharedTableState and replace with PTable
> ---
>
> Key: PHOENIX-4878
> URL: https://issues.apache.org/jira/browse/PHOENIX-4878
> Project: Phoenix
>  Issue Type: Improvement
>Reporter: Thomas D'Silva
>Assignee: Xinyi Yan
>Priority: Major
> Attachments: PHOENIX-4878.v2-4.x-HBase-1.3.patch, 
> PHOENIX-4878.v2-master.patch, PHOENIX-4878.v3-4.x-HBase-1.3.patch, 
> PHOENIX-4878.v3-master.patch, Screenshot from 2019-08-16 10-59-54.png
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When we drop a column from a base table we also drop view indexes that 
> require the column. This information is passed back to the client using the 
> SharedTableState proto. Convert this to use our regular PTable proto.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Updated] (PHOENIX-5445) IOException is hiding NamespaceExistException

2019-08-16 Thread Artem Ervits (JIRA)


 [ 
https://issues.apache.org/jira/browse/PHOENIX-5445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Artem Ervits updated PHOENIX-5445:
--
Attachment: (was: PHOENIX-5445.v01.patch)

> IOException is hiding NamespaceExistException
> -
>
> Key: PHOENIX-5445
> URL: https://issues.apache.org/jira/browse/PHOENIX-5445
> Project: Phoenix
>  Issue Type: Bug
>Affects Versions: 4.14.2
> Environment: {code:java}
> Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 
> 2019-04-04T15:00:29-04:00)
> Maven home: /opt/apache-maven-3.6.1
> Java version: 1.8.0_172, vendor: Oracle Corporation, runtime: 
> /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"{code}
> last git commit: ffcffb031fa9da661dccae48b94366ddb6238b3f
>Reporter: Artem Ervits
>Assignee: Artem Ervits
>Priority: Major
>
> when two clients try to execute {{CREATE SCHEMA IF NOT EXISTS}} at the same 
> time, getting the following error
> {code:java}
> phoenixdb.errors.InternalError
> phoenixdb.errors.InternalError: ('RuntimeException: 
> org.apache.phoenix.exception.PhoenixIOException: 
> org.apache.hadoop.hbase.NamespaceExistException: HITS\n\tat 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\n\tat 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\n\tat
>  
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\n\tat
>  java.lang.reflect.Constructor.newInstance(Constructor.java:423)\n\tat 
> org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:106)\n\tat
>  
> org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:95)\n\tat
>  
> org.apache.hadoop.hbase.util.ForeignExceptionUtil.toIOException(ForeignExceptionUtil.java:45)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.RemoteProcedureException.fromProto(RemoteProcedureException.java:114)\n\tat
>  
> org.apache.hadoop.hbase.master.procedure.ProcedureSyncWait.waitForProcedureToComplete(ProcedureSyncWait.java:85)\n\tat
>  org.apache.hadoop.hbase.master.HMaster$13.run(HMaster.java:2885)\n\tat 
> org.apache.hadoop.hbase.master.procedure.MasterProcedureUtil.submitProcedure(MasterProcedureUtil.java:133)\n\tat
>  
> org.apache.hadoop.hbase.master.HMaster.createNamespaceSync(HMaster.java:2872)\n\tat
>  
> org.apache.hadoop.hbase.master.HMaster.createNamespace(HMaster.java:2863)\n\tat
>  
> org.apache.hadoop.hbase.master.MasterRpcServices.createNamespace(MasterRpcServices.java:465)\n\tat
>  
> org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:63458)\n\tat
>  org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2380)\n\tat 
> org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:124)\n\tat 
> org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:297)\n\tat
>  
> org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:277)\nCaused
>  by: 
> org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hbase.NamespaceExistException):
>  HITS\n\tat 
> org.apache.hadoop.hbase.master.procedure.CreateNamespaceProcedure.prepareCreate(CreateNamespaceProcedure.java:240)\n\tat
>  
> org.apache.hadoop.hbase.master.procedure.CreateNamespaceProcedure.executeFromState(CreateNamespaceProcedure.java:75)\n\tat
>  
> org.apache.hadoop.hbase.master.procedure.CreateNamespaceProcedure.executeFromState(CreateNamespaceProcedure.java:43)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.StateMachineProcedure.execute(StateMachineProcedure.java:139)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.Procedure.doExecute(Procedure.java:506)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execProcedure(ProcedureExecutor.java:1167)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execLoop(ProcedureExecutor.java:955)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execLoop(ProcedureExecutor.java:908)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.ProcedureExecutor.access$400(ProcedureExecutor.java:77)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.ProcedureExecutor$2.run(ProcedureExecutor.java:482)\n
>  -> PhoenixIOException: org.apache.hadoop.hbase.NamespaceExistException: 
> HITS\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)\n\tat 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\n\tat
>  
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\n\tat
>  java.lang.reflect.Constructor.newInstance(Constructor.java:423)\n\tat 
> org.apache.hadoop.ipc.RemoteException.instan

Re: [VOTE] Release of Apache Phoenix 4.14.3 RC2

2019-08-16 Thread Chinmay Kulkarni
Vote: +1

- apache-rat check: PASS
- Signatures and checksums: PASS
- mvn clean install -DskipTests: PASS
- Built from source and used sqlline to do basic DDL table/index creations.
Upserted a bunch of rows and tried some basic queries: PASS
- mvn package: (All UTs and ITs were green, except SaltedIndexIT which is a
known flapper) PASS

Thanks,
Chinmay

On Thu, Aug 15, 2019 at 2:34 PM Artem Ervits  wrote:

> vote: 4.14.3rc2-HBase-1.4
> +1 (non-binding)
>
> Sql: OK
> inserted rows with Java: OK
> ran code with Spark 2.3.3: OK
> signatures and sums for src and bin: OK
> installed binary on pseudodistributed hadoop 2.8.5 with hbase 1.4.10: OK
> mvn package: OK
>
> On Wed, Aug 14, 2019 at 1:24 PM swaroopa kadam  >
> wrote:
>
> > Hello Everyone,
> >
> > This is a call for a vote on Apache Phoenix 4.14.3 RC2. This is a patch
> > release of Phoenix 4.14 and is compatible with Apache HBase 1.3 and
> > 1.4. The release includes both a source-only release and a convenience
> > binary
> > release for each supported HBase version.
> >
> > This release includes critical bug fixes and improvements for secondary
> > indexes -- making them self-consistent.
> >
> > The source tarball, including signatures, digests, etc can be found at:
> >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.3-rc2/src/
> >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.4-rc2/src/
> >
> > The binary artifacts can be found at:
> >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.3-rc2/bin/
> >
> >
> https://dist.apache.org/repos/dist/dev/phoenix/apache-phoenix-4.14.3-HBase-1.4-rc2/bin/
> >
> > For a complete list of changes, see:
> >
> >
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12315120&version=12345601
> >
> > Artifacts are signed with my "CODE SIGNING KEY": 48B7807D95F127B5
> >
> > KEYS file available here:
> > https://dist.apache.org/repos/dist/dev/phoenix/KEYS
> >
> > The tag to be voted upon:
> >
> >
> https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=commit;h=e2993552dc88cb7fc59fc0dfdaa2876ac260886c
> >
> >
> >
> https://git-wip-us.apache.org/repos/asf?p=phoenix.git;a=commit;h=eb5424573bd2f5f247a61d1a28da81fb92f06ec6
> >
> > The vote will be open for at least 72 hours. Please vote:
> >
> > [ ] +1 approve
> > [ ] +0 no opinion
> > [ ] -1 disapprove (and the reason why)
> >
> > Thanks,
> > The Apache Phoenix Team
> >
> > --
> >
> >
> > Swaroopa Kadam
> > [image: https://]about.me/swaroopa_kadam
> > <
> >
> https://about.me/swaroopa_kadam?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api
> > >
> >
>


-- 
Chinmay Kulkarni


[jira] [Updated] (PHOENIX-5445) IOException is hiding NamespaceExistException

2019-08-16 Thread Artem Ervits (JIRA)


 [ 
https://issues.apache.org/jira/browse/PHOENIX-5445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Artem Ervits updated PHOENIX-5445:
--
Attachment: PHOENIX-5445.v01.patch

> IOException is hiding NamespaceExistException
> -
>
> Key: PHOENIX-5445
> URL: https://issues.apache.org/jira/browse/PHOENIX-5445
> Project: Phoenix
>  Issue Type: Bug
>Affects Versions: 4.14.2
> Environment: {code:java}
> Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 
> 2019-04-04T15:00:29-04:00)
> Maven home: /opt/apache-maven-3.6.1
> Java version: 1.8.0_172, vendor: Oracle Corporation, runtime: 
> /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"{code}
> last git commit: ffcffb031fa9da661dccae48b94366ddb6238b3f
>Reporter: Artem Ervits
>Assignee: Artem Ervits
>Priority: Major
> Attachments: PHOENIX-5445.v01.patch
>
>
> when two clients try to execute {{CREATE SCHEMA IF NOT EXISTS}} at the same 
> time, getting the following error
> {code:java}
> phoenixdb.errors.InternalError
> phoenixdb.errors.InternalError: ('RuntimeException: 
> org.apache.phoenix.exception.PhoenixIOException: 
> org.apache.hadoop.hbase.NamespaceExistException: HITS\n\tat 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\n\tat 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\n\tat
>  
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\n\tat
>  java.lang.reflect.Constructor.newInstance(Constructor.java:423)\n\tat 
> org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:106)\n\tat
>  
> org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:95)\n\tat
>  
> org.apache.hadoop.hbase.util.ForeignExceptionUtil.toIOException(ForeignExceptionUtil.java:45)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.RemoteProcedureException.fromProto(RemoteProcedureException.java:114)\n\tat
>  
> org.apache.hadoop.hbase.master.procedure.ProcedureSyncWait.waitForProcedureToComplete(ProcedureSyncWait.java:85)\n\tat
>  org.apache.hadoop.hbase.master.HMaster$13.run(HMaster.java:2885)\n\tat 
> org.apache.hadoop.hbase.master.procedure.MasterProcedureUtil.submitProcedure(MasterProcedureUtil.java:133)\n\tat
>  
> org.apache.hadoop.hbase.master.HMaster.createNamespaceSync(HMaster.java:2872)\n\tat
>  
> org.apache.hadoop.hbase.master.HMaster.createNamespace(HMaster.java:2863)\n\tat
>  
> org.apache.hadoop.hbase.master.MasterRpcServices.createNamespace(MasterRpcServices.java:465)\n\tat
>  
> org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:63458)\n\tat
>  org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2380)\n\tat 
> org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:124)\n\tat 
> org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:297)\n\tat
>  
> org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:277)\nCaused
>  by: 
> org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hbase.NamespaceExistException):
>  HITS\n\tat 
> org.apache.hadoop.hbase.master.procedure.CreateNamespaceProcedure.prepareCreate(CreateNamespaceProcedure.java:240)\n\tat
>  
> org.apache.hadoop.hbase.master.procedure.CreateNamespaceProcedure.executeFromState(CreateNamespaceProcedure.java:75)\n\tat
>  
> org.apache.hadoop.hbase.master.procedure.CreateNamespaceProcedure.executeFromState(CreateNamespaceProcedure.java:43)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.StateMachineProcedure.execute(StateMachineProcedure.java:139)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.Procedure.doExecute(Procedure.java:506)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execProcedure(ProcedureExecutor.java:1167)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execLoop(ProcedureExecutor.java:955)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execLoop(ProcedureExecutor.java:908)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.ProcedureExecutor.access$400(ProcedureExecutor.java:77)\n\tat
>  
> org.apache.hadoop.hbase.procedure2.ProcedureExecutor$2.run(ProcedureExecutor.java:482)\n
>  -> PhoenixIOException: org.apache.hadoop.hbase.NamespaceExistException: 
> HITS\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)\n\tat 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\n\tat
>  
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\n\tat
>  java.lang.reflect.Constructor.newInstance(Constructor.java:423)\n\tat 
> org.apa

[jira] [Created] (PHOENIX-5445) IOException is hiding NamespaceExistException

2019-08-16 Thread Artem Ervits (JIRA)
Artem Ervits created PHOENIX-5445:
-

 Summary: IOException is hiding NamespaceExistException
 Key: PHOENIX-5445
 URL: https://issues.apache.org/jira/browse/PHOENIX-5445
 Project: Phoenix
  Issue Type: Bug
Affects Versions: 4.14.2
 Environment: {code:java}
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 
2019-04-04T15:00:29-04:00)
Maven home: /opt/apache-maven-3.6.1
Java version: 1.8.0_172, vendor: Oracle Corporation, runtime: 
/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"{code}
last git commit: ffcffb031fa9da661dccae48b94366ddb6238b3f
Reporter: Artem Ervits
Assignee: Artem Ervits


when two clients try to execute {{CREATE SCHEMA IF NOT EXISTS}} at the same 
time, getting the following error
{code:java}
phoenixdb.errors.InternalError
phoenixdb.errors.InternalError: ('RuntimeException: 
org.apache.phoenix.exception.PhoenixIOException: 
org.apache.hadoop.hbase.NamespaceExistException: HITS\n\tat 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\n\tat 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\n\tat
 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\n\tat
 java.lang.reflect.Constructor.newInstance(Constructor.java:423)\n\tat 
org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:106)\n\tat
 
org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:95)\n\tat
 
org.apache.hadoop.hbase.util.ForeignExceptionUtil.toIOException(ForeignExceptionUtil.java:45)\n\tat
 
org.apache.hadoop.hbase.procedure2.RemoteProcedureException.fromProto(RemoteProcedureException.java:114)\n\tat
 
org.apache.hadoop.hbase.master.procedure.ProcedureSyncWait.waitForProcedureToComplete(ProcedureSyncWait.java:85)\n\tat
 org.apache.hadoop.hbase.master.HMaster$13.run(HMaster.java:2885)\n\tat 
org.apache.hadoop.hbase.master.procedure.MasterProcedureUtil.submitProcedure(MasterProcedureUtil.java:133)\n\tat
 
org.apache.hadoop.hbase.master.HMaster.createNamespaceSync(HMaster.java:2872)\n\tat
 
org.apache.hadoop.hbase.master.HMaster.createNamespace(HMaster.java:2863)\n\tat 
org.apache.hadoop.hbase.master.MasterRpcServices.createNamespace(MasterRpcServices.java:465)\n\tat
 
org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:63458)\n\tat
 org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2380)\n\tat 
org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:124)\n\tat 
org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:297)\n\tat 
org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:277)\nCaused
 by: 
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hbase.NamespaceExistException):
 HITS\n\tat 
org.apache.hadoop.hbase.master.procedure.CreateNamespaceProcedure.prepareCreate(CreateNamespaceProcedure.java:240)\n\tat
 
org.apache.hadoop.hbase.master.procedure.CreateNamespaceProcedure.executeFromState(CreateNamespaceProcedure.java:75)\n\tat
 
org.apache.hadoop.hbase.master.procedure.CreateNamespaceProcedure.executeFromState(CreateNamespaceProcedure.java:43)\n\tat
 
org.apache.hadoop.hbase.procedure2.StateMachineProcedure.execute(StateMachineProcedure.java:139)\n\tat
 
org.apache.hadoop.hbase.procedure2.Procedure.doExecute(Procedure.java:506)\n\tat
 
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execProcedure(ProcedureExecutor.java:1167)\n\tat
 
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execLoop(ProcedureExecutor.java:955)\n\tat
 
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execLoop(ProcedureExecutor.java:908)\n\tat
 
org.apache.hadoop.hbase.procedure2.ProcedureExecutor.access$400(ProcedureExecutor.java:77)\n\tat
 
org.apache.hadoop.hbase.procedure2.ProcedureExecutor$2.run(ProcedureExecutor.java:482)\n
 -> PhoenixIOException: org.apache.hadoop.hbase.NamespaceExistException: 
HITS\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)\n\tat 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\n\tat
 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\n\tat
 java.lang.reflect.Constructor.newInstance(Constructor.java:423)\n\tat 
org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:106)\n\tat
 
org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:95)\n\tat
 
org.apache.hadoop.hbase.util.ForeignExceptionUtil.toIOException(ForeignExceptionUtil.java:45)\n\tat
 
org.apache.hadoop.hbase.procedure2.RemoteProcedureException.fromProto(RemoteProcedureException.java:114)\n\tat
 
org.apache.hadoop.hbase.master.procedu