phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Krishna Dara (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PHOENIX-4040) Protect against NPEs in org.apache.phoenix.compile.DeleteCompiler.deleteRows
Date Wed, 19 Jul 2017 05:42:00 GMT

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

Hari Krishna Dara updated PHOENIX-4040:
---------------------------------------
    Description: 
We are occasionally seeing the below NPE coming from Phoenix code. We don't currently have
a repro case for this, but since it is an NPE, Phoenix code should protected against it.

{noformat}
org.apache.phoenix.exception.PhoenixIOException: java.lang.NullPointerException
	at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:113)
	at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:854)
	at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:798)
	at org.apache.phoenix.iterate.RoundRobinResultIterator.getIterators(RoundRobinResultIterator.java:176)
	at org.apache.phoenix.iterate.RoundRobinResultIterator.next(RoundRobinResultIterator.java:91)
	at org.apache.phoenix.compile.DeleteCompiler$3.execute(DeleteCompiler.java:668)
	at org.apache.phoenix.compile.DeleteCompiler$MultiDeleteMutationPlan.execute(DeleteCompiler.java:284)
	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:355)
	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:338)
	at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
	at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:337)
	at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:251)
	at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPreparedStatement.java:172)
	at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPreparedStatement.java:177)
	at phoenix.connection.ProtectedPhoenixPreparedStatement.execute(ProtectedPhoenixPreparedStatement.java:74)
        ...
Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:206)
	at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:849)
	... 40 more
Caused by: java.lang.NullPointerException
	at org.apache.phoenix.compile.DeleteCompiler.deleteRows(DeleteCompiler.java:105)
	at org.apache.phoenix.compile.DeleteCompiler.access$000(DeleteCompiler.java:93)
	at org.apache.phoenix.compile.DeleteCompiler$DeletingParallelIteratorFactory.mutate(DeleteCompiler.java:219)
	at org.apache.phoenix.compile.MutatingParallelIteratorFactory.newIterator(MutatingParallelIteratorFactory.java:59)
	at org.apache.phoenix.iterate.ParallelIterators$1.call(ParallelIterators.java:114)
	at org.apache.phoenix.iterate.ParallelIterators$1.call(ParallelIterators.java:106)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at org.apache.phoenix.job.JobManager$InstrumentedJobFutureTask.run(JobManager.java:183)
	... 3 more
{noformat}


  was:
We are occasionally seeing the below NPE coming from Phoenix code. We don't currently have
a repro case for this, but since it is an NPE, Phoenix code should protected against it.

{{org.apache.phoenix.exception.PhoenixIOException: java.lang.NullPointerException
	at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:113)
	at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:854)
	at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:798)
	at org.apache.phoenix.iterate.RoundRobinResultIterator.getIterators(RoundRobinResultIterator.java:176)
	at org.apache.phoenix.iterate.RoundRobinResultIterator.next(RoundRobinResultIterator.java:91)
	at org.apache.phoenix.compile.DeleteCompiler$3.execute(DeleteCompiler.java:668)
	at org.apache.phoenix.compile.DeleteCompiler$MultiDeleteMutationPlan.execute(DeleteCompiler.java:284)
	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:355)
	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:338)
	at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
	at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:337)
	at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:251)
	at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPreparedStatement.java:172)
	at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPreparedStatement.java:177)
	at phoenix.connection.ProtectedPhoenixPreparedStatement.execute(ProtectedPhoenixPreparedStatement.java:74)
        ...
Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:206)
	at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:849)
	... 40 more
Caused by: java.lang.NullPointerException
	at org.apache.phoenix.compile.DeleteCompiler.deleteRows(DeleteCompiler.java:105)
	at org.apache.phoenix.compile.DeleteCompiler.access$000(DeleteCompiler.java:93)
	at org.apache.phoenix.compile.DeleteCompiler$DeletingParallelIteratorFactory.mutate(DeleteCompiler.java:219)
	at org.apache.phoenix.compile.MutatingParallelIteratorFactory.newIterator(MutatingParallelIteratorFactory.java:59)
	at org.apache.phoenix.iterate.ParallelIterators$1.call(ParallelIterators.java:114)
	at org.apache.phoenix.iterate.ParallelIterators$1.call(ParallelIterators.java:106)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at org.apache.phoenix.job.JobManager$InstrumentedJobFutureTask.run(JobManager.java:183)
	... 3 more}}



> Protect against NPEs in org.apache.phoenix.compile.DeleteCompiler.deleteRows
> ----------------------------------------------------------------------------
>
>                 Key: PHOENIX-4040
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4040
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.10.0
>            Reporter: Hari Krishna Dara
>            Priority: Minor
>
> We are occasionally seeing the below NPE coming from Phoenix code. We don't currently
have a repro case for this, but since it is an NPE, Phoenix code should protected against
it.
> {noformat}
> org.apache.phoenix.exception.PhoenixIOException: java.lang.NullPointerException
> 	at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:113)
> 	at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:854)
> 	at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:798)
> 	at org.apache.phoenix.iterate.RoundRobinResultIterator.getIterators(RoundRobinResultIterator.java:176)
> 	at org.apache.phoenix.iterate.RoundRobinResultIterator.next(RoundRobinResultIterator.java:91)
> 	at org.apache.phoenix.compile.DeleteCompiler$3.execute(DeleteCompiler.java:668)
> 	at org.apache.phoenix.compile.DeleteCompiler$MultiDeleteMutationPlan.execute(DeleteCompiler.java:284)
> 	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:355)
> 	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:338)
> 	at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
> 	at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:337)
> 	at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:251)
> 	at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPreparedStatement.java:172)
> 	at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPreparedStatement.java:177)
> 	at phoenix.connection.ProtectedPhoenixPreparedStatement.execute(ProtectedPhoenixPreparedStatement.java:74)
>         ...
> Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException
> 	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> 	at java.util.concurrent.FutureTask.get(FutureTask.java:206)
> 	at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:849)
> 	... 40 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.phoenix.compile.DeleteCompiler.deleteRows(DeleteCompiler.java:105)
> 	at org.apache.phoenix.compile.DeleteCompiler.access$000(DeleteCompiler.java:93)
> 	at org.apache.phoenix.compile.DeleteCompiler$DeletingParallelIteratorFactory.mutate(DeleteCompiler.java:219)
> 	at org.apache.phoenix.compile.MutatingParallelIteratorFactory.newIterator(MutatingParallelIteratorFactory.java:59)
> 	at org.apache.phoenix.iterate.ParallelIterators$1.call(ParallelIterators.java:114)
> 	at org.apache.phoenix.iterate.ParallelIterators$1.call(ParallelIterators.java:106)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 	at org.apache.phoenix.job.JobManager$InstrumentedJobFutureTask.run(JobManager.java:183)
> 	... 3 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message