You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2009/05/27 23:31:45 UTC

[jira] Updated: (CASSANDRA-201) get_slice_from forces iterating all columns and leaks file handlers with exception

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

Jun Rao updated CASSANDRA-201:
------------------------------

    Attachment: issue201.patchv1

Attach a fix.

> get_slice_from forces iterating all columns and leaks file handlers with exception 
> -----------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-201
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-201
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jun Rao
>            Assignee: Jun Rao
>         Attachments: issue201.patchv1
>
>
> There are 2 bugs in the get_slice_from code in CFS.java. 
> 1. The following 2 lines forces all columns to be iterated in each iterator, which is inefficient.
>             List<IColumn> L = new ArrayList();
>             CollectionUtils.addAll(L, collated);
> 2. If any exception occurs, the opened file handlers are not closed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.