basho / leveldb

Clone of http://code.google.com/p/leveldb/
BSD 3-Clause "New" or "Revised" License
408 stars 182 forks source link

Tests fail on 'develop' branch #231

Open bryanhuntesl opened 6 years ago

bryanhuntesl commented 6 years ago
  1. Checkout (platform OS-X) - current commit - #f6b6c42dbf19a2a8bebb75106fe8ce02bdd8d2bb
  2. Execute make test
  3. Code compiles and test suite is executed
  4. Failure on MemTableTest
==== Test MemTableTest.Simple
key: 'k1d' -> 'v1'
key: 'k2e' -> 'v2'
key: 'k3f' -> 'v3'
key: 'largekeyg' -> 'vlarge'
==== Test TableTest.ApproximateOffsetOfPlain
==== Test TableTest.ApproximateOffsetOfCompressed
Value 3066 is not in range [2000, 3000]
table/table_test.cc:829: Assertion failure Between(c.ApproximateOffsetOf("k03"), 2000, 3000)
make: *** [test] Error 1

I was able to get the testes to pass by increasing the ApproximateOffset value to 3500, and it's subsequent value. I'll create a p/r in a couple of minutes.

bryanhuntesl commented 6 years ago

Failed on k04 - again, out by 66, 3000 vs 3066 :

==== Test TableTest.ApproximateOffsetOfPlain
==== Test TableTest.ApproximateOffsetOfCompressed
Value 3066 is not in range [2000, 3000]
table/table_test.cc:830: Assertion failure Between(c.ApproximateOffsetOf("k04"), 2000, 3000)
make: *** [test] Error 1

Will bump and try again.

bryanhuntesl commented 6 years ago

And again - "xyz" - out by 166 - 6000 vs 6166 :

key: 'largekeyg' -> 'vlarge'
==== Test TableTest.ApproximateOffsetOfPlain
==== Test TableTest.ApproximateOffsetOfCompressed
Value 6166 is not in range [4000, 6000]
table/table_test.cc:831: Assertion failure Between(c.ApproximateOffsetOf("xyz"), 4000, 6000)
make: *** [test] Error 1