[
https://issues.apache.org/jira/browse/ACCUMULO-4586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15864597#comment-15864597
]
Keith Turner commented on ACCUMULO-4586:
----------------------------------------
I was just looking at the javadoc for RowIterator again. It has two
constructors. One constructor has the following javadoc.
{noformat}
public RowIterator(Iterator<Map.Entry<Key,Value>> iterator)
Create an iterator from an (ordered) sequence of KeyValue pairs.
{noformat}
So maybe it would make sense to add the sanity check. Earlier I only looked at
the class javadoc, which says nothing about order. The other constructor has
the following javadoc, which does not mention order.
{noformat}
public RowIterator(Iterable<Map.Entry<Key,Value>> iterable)
Create an iterator from an Iterable.
{noformat}
> Make rowiterator fail when unsorted data is observed
> ----------------------------------------------------
>
> Key: ACCUMULO-4586
> URL: https://issues.apache.org/jira/browse/ACCUMULO-4586
> Project: Accumulo
> Issue Type: Bug
> Affects Versions: 1.6.6, 1.7.1, 1.8.0
> Reporter: Keith Turner
> Fix For: 2.0.0
>
>
> A batchscanner was used as a row iterator data source. The rowiterator
> expects data in sorted order and the batch scanner does not supply data in
> sorted order. The row iterator should have a sanity check to ensure source
> data is in sorted order.
> https://lists.apache.org/thread.html/c24448d171d8414321bccfc778c7fc8b53e45892cae9daafa220503f@%3Cuser.accumulo.apache.org%3E
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)