/go/src/github.com/fubss/grocksdb-test-2$ GOFLAGS="-count=1" go test -timeout 30s -run ^TestDrop$ github.com/fubss/grocksdb-test-2 -v
=== RUN TestDrop
-------->NewProvider intialization...
-------->Opening DB and checking format...
-------->RocksDB constructing...
-------->Opening DB...
-------->ParanoidChecks is: true
-------->DB was successfully opened in path: [ /tmp/tests/grocksdbtest2 ]
-------->Checkin if DB is empty...
-------->Checking for emptiness has finished
-------->rocks db IsEmpty()=true
-------->Getting key [_f] from RocksDB...
-------->got data []
-------->Checking for db format at path [/tmp/tests/grocksdbtest2]
format is latest, nothing to do provider_test.go:69: expextedSetup_0
endKey is nil
-------->endKey is nil: eKey=[db1([]byte{0x64, 0x62, 0x31, 0x1})]
-------->Constructing iterator with sKey=[db1([]byte{0x64, 0x62, 0x31, 0x0})] and eKey=[db1([]byte{0x64, 0x62, 0x31, 0x1})]
-------->Getting new RocksDB Iterator... for start key: [db1 ([100 98 49 0]: [db1 ([100 98 49 1])]
-------->if-case: endKey!=nil, UpperBound set
-------->PurgeOnIterCleanup = true
-------->ni is not Valid, err=[]
-------->itr is Valid
provider_test.go:125: Iterator error is: [%!s()]
-------->iterator is not valid anymore
provider_test.go:69: expextedSetup_1
endKey is nil
-------->endKey is nil: eKey=[db2([]byte{0x64, 0x62, 0x32, 0x1})]
-------->Constructing iterator with sKey=[db2([]byte{0x64, 0x62, 0x32, 0x0})] and eKey=[db2([]byte{0x64, 0x62, 0x32, 0x1})]
-------->Getting new RocksDB Iterator... for start key: [db2 ([100 98 50 0]: [db2 ([100 98 50 1])]
-------->if-case: endKey!=nil, UpperBound set
-------->PurgeOnIterCleanup = true
-------->ni is not Valid, err=[]
-------->itr is Valid
provider_test.go:125: Iterator error is: [%!s()]
-------->iterator is not valid anymore
provider_test.go:69: expextedSetup_2
endKey is nil
-------->endKey is nil: eKey=[db3([]byte{0x64, 0x62, 0x33, 0x1})]
-------->Constructing iterator with sKey=[db3([]byte{0x64, 0x62, 0x33, 0x0})] and eKey=[db3([]byte{0x64, 0x62, 0x33, 0x1})]
-------->Getting new RocksDB Iterator... for start key: [db3 ([100 98 51 0]: [db3 ([100 98 51 1])]
-------->if-case: endKey!=nil, UpperBound set
-------->PurgeOnIterCleanup = true
-------->ni is not Valid, err=[]
-------->itr is Valid
provider_test.go:125: Iterator error is: [%!s()]
-------->iterator is not valid anymore
provider_test.go:69: expextedSetup_3
endKey is nil
-------->endKey is nil: eKey=[db3([]byte{0x64, 0x62, 0x33, 0x1})]
-------->Constructing iterator with sKey=[db3([]byte{0x64, 0x62, 0x33, 0x0})] and eKey=[db3([]byte{0x64, 0x62, 0x33, 0x1})]
-------->Getting new RocksDB Iterator... for start key: [db3 ([100 98 51 0]: [db3 ([100 98 51 1])]
-------->if-case: endKey!=nil, UpperBound set
-------->PurgeOnIterCleanup = true
-------->ni is not Valid, err=[]
-------->itr is Valid
provider_test.go:125: Iterator error is: [%!s()]
-------->iterator is not valid anymore
provider_test.go:69: expextedSetup_4
endKey is nil
-------->endKey is nil: eKey=[db3([]byte{0x64, 0x62, 0x33, 0x1})]
-------->Constructing iterator with sKey=[db3([]byte{0x64, 0x62, 0x33, 0x0})] and eKey=[db3([]byte{0x64, 0x62, 0x33, 0x1})]
-------->Getting new RocksDB Iterator... for start key: [db3 ([100 98 51 0]: [db3 ([100 98 51 1])]
-------->if-case: endKey!=nil, UpperBound set
-------->PurgeOnIterCleanup = true
-------->ni is not Valid, err=[]
-------->itr is Valid
provider_test.go:125: Iterator error is: [%!s()]
-------->iterator is not valid anymore
endKey is nil
-------->endKey is nil: eKey=[db1([]byte{0x64, 0x62, 0x31, 0x1})]
-------->Constructing iterator with sKey=[db1([]byte{0x64, 0x62, 0x31, 0x0})] and eKey=[db1([]byte{0x64, 0x62, 0x31, 0x1})]
-------->Getting new RocksDB Iterator... for start key: [db1 ([100 98 49 0]: [db1 ([100 98 49 1])]
-------->if-case: endKey!=nil, UpperBound set
-------->PurgeOnIterCleanup = true
-------->ni is not Valid, err=[]
-------->itr is Valid
-------->WritingBatch.Count()=[20]
endKey is nil
-------->endKey is nil: eKey=[db3([]byte{0x64, 0x62, 0x33, 0x1})]
-------->Constructing iterator with sKey=[db3([]byte{0x64, 0x62, 0x33, 0x0})] and eKey=[db3([]byte{0x64, 0x62, 0x33, 0x1})]
-------->Getting new RocksDB Iterator... for start key: [db3 ([100 98 51 0]: [db3 ([100 98 51 1])]
-------->if-case: endKey!=nil, UpperBound set
-------->PurgeOnIterCleanup = true
-------->ni is not Valid, err=[]
-------->itr is Valid
-------->WritingBatch.Count()=[8404]
-------->Have removed 8404 entries for channel db3 in rocksdb /tmp/tests/grocksdbtest2
-------->WritingBatch.Count()=[1596]
provider_test.go:106: expextedResults_0
endKey is nil
-------->endKey is nil: eKey=[db1([]byte{0x64, 0x62, 0x31, 0x1})]
-------->Constructing iterator with sKey=[db1([]byte{0x64, 0x62, 0x31, 0x0})] and eKey=[db1([]byte{0x64, 0x62, 0x31, 0x1})]
-------->Getting new RocksDB Iterator... for start key: [db1 ([100 98 49 0]: [db1 ([100 98 49 1])]
-------->if-case: endKey!=nil, UpperBound set
-------->PurgeOnIterCleanup = true
-------->ni is not Valid, err=[]
-------->itr is not Valid
-------->iterator is not valid anymore
provider_test.go:125: Iterator error is: [%!s()]
-------->iterator is not valid anymore
provider_test.go:106: expextedResults_1
endKey is nil
-------->endKey is nil: eKey=[db2([]byte{0x64, 0x62, 0x32, 0x1})]
-------->Constructing iterator with sKey=[db2([]byte{0x64, 0x62, 0x32, 0x0})] and eKey=[db2([]byte{0x64, 0x62, 0x32, 0x1})]
-------->Getting new RocksDB Iterator... for start key: [db2 ([100 98 50 0]: [db2 ([100 98 50 1])]
-------->if-case: endKey!=nil, UpperBound set
-------->PurgeOnIterCleanup = true
-------->ni is not Valid, err=[]
-------->itr is Valid
provider_test.go:125: Iterator error is: [%!s()]
-------->iterator is not valid anymore
provider_test.go:106: expextedResults_2
endKey is nil
-------->endKey is nil: eKey=[db3([]byte{0x64, 0x62, 0x33, 0x1})]
-------->Constructing iterator with sKey=[db3([]byte{0x64, 0x62, 0x33, 0x0})] and eKey=[db3([]byte{0x64, 0x62, 0x33, 0x1})]
-------->Getting new RocksDB Iterator... for start key: [db3 ([100 98 51 0]: [db3 ([100 98 51 1])]
-------->if-case: endKey!=nil, UpperBound set
-------->PurgeOnIterCleanup = true
-------->ni is not Valid, err=[]
-------->itr is not Valid
-------->iterator is not valid anymore
provider_test.go:125: Iterator error is: [%!s()]
-------->iterator is not valid anymore
-------->Closing db...
endKey is nil
-------->endKey is nil: eKey=[db2([]byte{0x64, 0x62, 0x32, 0x1})]
-------->Constructing iterator with sKey=[db2([]byte{0x64, 0x62, 0x32, 0x0})] and eKey=[db2([]byte{0x64, 0x62, 0x32, 0x1})]
-------->Getting new RocksDB Iterator... for start key: [db2 ([100 98 50 0]: [db2 ([100 98 50 1])]
-------->itr.Err()=[error while obtaining db iterator: rocksdb: closed
github.com/fubss/grocksdb-test-2.(*DB).GetIterator
/home/ivanl/go/src/github.com/fubss/grocksdb-test-2/helper.go:151
github.com/fubss/grocksdb-test-2.(*DBHandle).GetIterator
/home/ivanl/go/src/github.com/fubss/grocksdb-test-2/provider.go:263
github.com/fubss/grocksdb-test-2.(*DBHandle).deleteAll
/home/ivanl/go/src/github.com/fubss/grocksdb-test-2/provider.go:168
github.com/fubss/grocksdb-test-2.TestDrop
/home/ivanl/go/src/github.com/fubss/grocksdb-test-2/provider_test.go:115
testing.tRunner
/usr/local/go/src/testing/testing.go:1259
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1581]. Impossible to create an iterator
-------->Error! Closing iterator...
--- PASS: TestDrop (0.39s)
PASS
ok github.com/fubss/grocksdb-test-2 0.406s