Behaviour difference between old and new merge iterator #1153
Labels
kind/bug
Something is broken.
priority/P1
Serious issue that requires eventual attention (can wait a bit)
status/accepted
We accept to investigate or work on it.
Commit 73ea6e6 introduced a tree-based merge iterator. The existing merge iterator was a heap-based iterator.
The following test (taken from here)shows different behavior on the heap-based merge iterator and the tree-based iterator. The test returns different results on both the implementations.
The
heap-based
approach skips all the keys which are samehttps://github.com/dgraph-io/badger/blob/385da9100e3534a5f82b3c37e0990305f8008a3a/y/iterator.go#L226-L233
The result is
while the tree-based implementation does not skip the same keys.
The text was updated successfully, but these errors were encountered: