You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "ramkrishna.s.vasudevan (Created) (JIRA)" <ji...@apache.org> on 2011/12/21 13:05:30 UTC
[jira] [Created] (HBASE-5082) ColumnAggregationEndPoint- Causes
null pointer in RS when we pass null column qualifier
ColumnAggregationEndPoint- Causes null pointer in RS when we pass null column qualifier
---------------------------------------------------------------------------------------
Key: HBASE-5082
URL: https://issues.apache.org/jira/browse/HBASE-5082
Project: HBase
Issue Type: Bug
Reporter: ramkrishna.s.vasudevan
Priority: Minor
I was trying to use the ColumnAggregationEndPoint.sum().
In my sample is just created a column family but did not use any qualifier and inserted some data.
I tried to use ColumnAggregationEndPoint.sum(qualifier, null). When i did this inside the ColumnAggregationEndPoint we do
scan.addColumn(). This is adding the [null] array in the scan object. Later in the scanQueryMatcher it is throwing nullpointer exception.
I can understand that addColumn() is to specifiy the qualifier.
Do we need to document somewhere saying qualifier should not be null? I think coprocessors can be used even in places where we don't have qualifiers. If that is the case this sample ColumnAggregationEndPoint may not work.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HBASE-5082) ColumnAggregationEndPoint- Causes
null pointer in RS when we pass null column qualifier
Posted by "Gary Helmling (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175587#comment-13175587 ]
Gary Helmling commented on HBASE-5082:
--------------------------------------
ColumnAggregationEndpoint is a test class that was created for use by TestClassLoading. As far as I'm aware, it wasn't intended to be a user-facing class or utility. For that case you would want to use the AggregateProtocol/AggregateImplementation coprocessor.
Maybe it would be better to just change ColumnAggregationEndpoint to default (package-private) visibility so that it's clear people should not try to make use of it?
> ColumnAggregationEndPoint- Causes null pointer in RS when we pass null column qualifier
> ---------------------------------------------------------------------------------------
>
> Key: HBASE-5082
> URL: https://issues.apache.org/jira/browse/HBASE-5082
> Project: HBase
> Issue Type: Bug
> Reporter: ramkrishna.s.vasudevan
> Priority: Minor
>
> I was trying to use the ColumnAggregationEndPoint.sum().
>
> In my sample is just created a column family but did not use any qualifier and inserted some data.
>
> I tried to use ColumnAggregationEndPoint.sum(qualifier, null). When i did this inside the ColumnAggregationEndPoint we do
> scan.addColumn(). This is adding the [null] array in the scan object. Later in the scanQueryMatcher it is throwing nullpointer exception.
> I can understand that addColumn() is to specifiy the qualifier.
> Do we need to document somewhere saying qualifier should not be null? I think coprocessors can be used even in places where we don't have qualifiers. If that is the case this sample ColumnAggregationEndPoint may not work.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HBASE-5082) ColumnAggregationEndPoint- Causes
null pointer in RS when we pass null column qualifier
Posted by "ramkrishna.s.vasudevan (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175645#comment-13175645 ]
ramkrishna.s.vasudevan commented on HBASE-5082:
-----------------------------------------------
Ok... Thanks Gary
> ColumnAggregationEndPoint- Causes null pointer in RS when we pass null column qualifier
> ---------------------------------------------------------------------------------------
>
> Key: HBASE-5082
> URL: https://issues.apache.org/jira/browse/HBASE-5082
> Project: HBase
> Issue Type: Bug
> Reporter: ramkrishna.s.vasudevan
> Priority: Minor
>
> I was trying to use the ColumnAggregationEndPoint.sum().
>
> In my sample is just created a column family but did not use any qualifier and inserted some data.
>
> I tried to use ColumnAggregationEndPoint.sum(qualifier, null). When i did this inside the ColumnAggregationEndPoint we do
> scan.addColumn(). This is adding the [null] array in the scan object. Later in the scanQueryMatcher it is throwing nullpointer exception.
> I can understand that addColumn() is to specifiy the qualifier.
> Do we need to document somewhere saying qualifier should not be null? I think coprocessors can be used even in places where we don't have qualifiers. If that is the case this sample ColumnAggregationEndPoint may not work.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira