[
https://issues.apache.org/jira/browse/PHOENIX-3505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15691265#comment-15691265
]
Hadoop QA commented on PHOENIX-3505:
------------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest
attachment
http://issues.apache.org/jira/secure/attachment/12840274/PHOENIX-3505.001.patch
against master branch at commit e19c1734ea5aa0c0ee0e887c283a4712eb2dc803.
ATTACHMENT ID: 12840274
{color:green}+1 @author{color}. The patch does not contain any @author
tags.
{color:green}+1 tests included{color}. The patch appears to include 3 new
or modified tests.
{color:green}+1 javac{color}. The applied patch does not increase the
total number of javac compiler warnings.
{color:red}-1 javadoc{color}. The javadoc tool appears to have generated
44 warning messages.
{color:green}+1 release audit{color}. The applied patch does not increase
the total number of release audit warnings.
{color:green}+1 lineLengths{color}. The patch does not introduce lines
longer than 100
{color:green}+1 core tests{color}. The patch passed unit tests in .
{color:red}-1 core zombie tests{color}. There are 1 zombie test(s):
at
org.apache.activemq.transport.stomp.Stomp11Test.testHeartbeatsKeepsConnectionOpen(Stomp11Test.java:291)
Test results:
https://builds.apache.org/job/PreCommit-PHOENIX-Build/685//testReport/
Javadoc warnings:
https://builds.apache.org/job/PreCommit-PHOENIX-Build/685//artifact/patchprocess/patchJavadocWarnings.txt
Console output:
https://builds.apache.org/job/PreCommit-PHOENIX-Build/685//console
This message is automatically generated.
> Potential NullPointerException on close() in OrderedResultIterator
> ------------------------------------------------------------------
>
> Key: PHOENIX-3505
> URL: https://issues.apache.org/jira/browse/PHOENIX-3505
> Project: Phoenix
> Issue Type: Bug
> Reporter: Josh Elser
> Assignee: Josh Elser
> Fix For: 4.9.1, 4.8.3
>
> Attachments: PHOENIX-3505.001.patch
>
>
> I observed a NPE in executing query 10 from TPC-H over a Phoenix-4.7ish
> version at $dayjob.
> {noformat}
> select
> c_custkey,
> c_name,
> sum(l_extendedprice*(1 - l_discount)) as revenue,
> c_acctbal,
> n_name,
> c_address,
> c_phone,
> c_comment
> from
> customer,
> orders,
> lineitem,
> nation
> where
> c_custkey = o_custkey
> and l_orderkey = o_orderkey
> and o_orderdate >= to_date('1993-07-01')
> and o_orderdate < to_date('1993-10-01')
> and l_returnflag = 'R'
> and c_nationkey = n_nationkey
> group by
> c_custkey,
> c_name,
> c_acctbal,
> c_phone,
> n_name,
> c_address,
> c_comment
> order by
> revenue desc
> {noformat}
> DDL are:
> {noformat}
> CREATE TABLE NATION ( N_NATIONKEY INTEGER NOT NULL,
> N_NAME CHAR(25) NOT NULL,
> N_REGIONKEY INTEGER NOT NULL,
> N_COMMENT VARCHAR(152));
> CREATE TABLE CUSTOMER ( C_CUSTKEY INTEGER NOT NULL,
> C_NAME VARCHAR(25) NOT NULL,
> C_ADDRESS VARCHAR(40) NOT NULL,
> C_NATIONKEY INTEGER NOT NULL,
> C_PHONE CHAR(15) NOT NULL,
> C_ACCTBAL DECIMAL(15,2) NOT NULL,
> C_MKTSEGMENT CHAR(10) NOT NULL,
> C_COMMENT VARCHAR(117) NOT NULL);
> CREATE TABLE ORDERS ( O_ORDERKEY INTEGER NOT NULL,
> O_CUSTKEY INTEGER NOT NULL,
> O_ORDERSTATUS CHAR(1) NOT NULL,
> O_TOTALPRICE DECIMAL(15,2) NOT NULL,
> O_ORDERDATE DATE NOT NULL,
> O_ORDERPRIORITY CHAR(15) NOT NULL,
> O_CLERK CHAR(15) NOT NULL,
> O_SHIPPRIORITY INTEGER NOT NULL,
> O_COMMENT VARCHAR(79) NOT NULL);
> CREATE TABLE LINEITEM ( L_ORDERKEY INTEGER NOT NULL,
> L_PARTKEY INTEGER NOT NULL,
> L_SUPPKEY INTEGER NOT NULL,
> L_LINENUMBER INTEGER NOT NULL,
> L_QUANTITY DECIMAL(15,2) NOT NULL,
> L_EXTENDEDPRICE DECIMAL(15,2) NOT NULL,
> L_DISCOUNT DECIMAL(15,2) NOT NULL,
> L_TAX DECIMAL(15,2) NOT NULL,
> L_RETURNFLAG CHAR(1) NOT NULL,
> L_LINESTATUS CHAR(1) NOT NULL,
> L_SHIPDATE DATE NOT NULL,
> L_COMMITDATE DATE NOT NULL,
> L_RECEIPTDATE DATE NOT NULL,
> L_SHIPINSTRUCT CHAR(25) NOT NULL,
> L_SHIPMODE CHAR(10) NOT NULL,
> L_COMMENT VARCHAR(44) NOT NULL);
> {noformat}
> We ultimately got a NullPointerException trying to close the PhoenixStatement
> down in OrderedResultIterator. The only execution path I can come up with is
> that the Iterator was constructor but {{next()}} or {{peek()}} were never
> called (for whatever reason). Calling {{close()}} at this point would result
> in an NPE being thrown.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)