[
https://issues.apache.org/jira/browse/AVRO-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882069#action_12882069
]
Patrick Wendell commented on AVRO-584:
--------------------------------------
The problem is in how the bucket iterator is built. As the code is now, when
instantiated it increments the internal iterator over keys. That internal
iterator is used to evaluate the hasNext() call... which is then off-by-one.
Was this intentional? I can just change that code too...
{quote}
Iterator<T> it = index.keySet().iterator();
T cur = it.next(); // there's always at least one element
...
@Override
public boolean hasNext() {
return it.hasNext();
}
{quote}
> Update Histogram for Stats Plugin
> ---------------------------------
>
> Key: AVRO-584
> URL: https://issues.apache.org/jira/browse/AVRO-584
> Project: Avro
> Issue Type: Sub-task
> Reporter: Patrick Wendell
> Assignee: Patrick Wendell
> Attachments: AVRO-584.patch, AVRO-584.patch.v2.txt
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.