[
https://issues.apache.org/jira/browse/HTRACE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15022111#comment-15022111
]
Masatake Iwasaki commented on HTRACE-304:
-----------------------------------------
The patch looks good overall but It would be better if the {{TestQueries5}}
fails without the fix. (I applied the patch by {{git apply
--include='*/datastore_test.go'}} and {{TestQueries5}} succeeded.)
> htraced: fix bug with GREATER_THAN queries
> ------------------------------------------
>
> Key: HTRACE-304
> URL: https://issues.apache.org/jira/browse/HTRACE-304
> Project: HTrace
> Issue Type: Bug
> Components: htraced
> Affects Versions: 4.0
> Reporter: Colin Patrick McCabe
> Assignee: Colin Patrick McCabe
> Attachments: HTRACE-304.001.patch
>
>
> htraced has a bug with greater_than queries.
> Leveldb exposes a sorted map interface. It supports seeking to a specific
> key, but not to a position "greater than" a specific key. The code right now
> for greater_than assumes that if after the leveldb seek, it sees an
> equivalent key, it only needs to do one step forward to get to the keys which
> it should be able to return. However, it there are multiple "equal" entries,
> greater_than may have to do multiple seeks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)