[
https://issues.apache.org/jira/browse/HBASE-6431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13422834#comment-13422834
]
Alex Newman commented on HBASE-6431:
------------------------------------
Question: Can we preserve List<> type for filters field ?
Answer: We can only support implementations of lists which support add. There
is nothing in between list and for instance arraylist. If we don't convert it,
we will crash when they try to add.
question: Please check whether rowFilters is already ArrayList<>.
Answer: I'm confused how could it be, it's an array
question: Why is the above needed.
answer: Sorry what's this question asking?
> Some FilterList Constructors break addFilter
> --------------------------------------------
>
> Key: HBASE-6431
> URL: https://issues.apache.org/jira/browse/HBASE-6431
> Project: HBase
> Issue Type: Bug
> Components: filters
> Affects Versions: 0.92.1, 0.94.0
> Reporter: Alex Newman
> Assignee: Alex Newman
> Priority: Minor
> Attachments:
> 0001-HBASE-6431.-Some-FilterList-Constructors-break-addFi.patch
>
>
> Some of the constructors for FilterList set the internal list of filters to
> list types which don't support the add operation. As a result
> FilterList(final List<Filter> rowFilters)
> FilterList(final Filter... rowFilters)
> FilterList(final Operator operator, final List<Filter> rowFilters)
> FilterList(final Operator operator, final Filter... rowFilters)
> may init private List<Filter> filters = new ArrayList<Filter>(); incorrectly.
--
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