Skip to content

QueryableIndexIndexableAdapter.getRows() should return Sequence rather than Iterable #3637

@leventov

Description

@leventov

For better or worse currently Sequence interface is used in Druid in situations when we need to "iterate, then close something when done". QueryableIndexIndexableAdapter.getRows() returns Iterable which closes it's resources when hasNext() failed, that is unreliable (somebody might just not try to iterate to the end of the iterable).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions