Investigated running the test and see the following error when run against MH:
Traceback (most recent call last):
|
File "pytests/epengine/basic_ops.py", line 293, in do_get_random_key
|
error.message))
|
AssertionError: <MemcachedError #1 ``Memcached error #1''>
|
Tried on 6.0.1 and see the same error.
The get_random_key functionality was fixed in MB-31495
In the associated patch we added the following test
// Check that getRandomKey works correctly when given a random value of zero
|
TEST_P(KVBucketParamTest, MB31495_GetRandomKey) {
|
std::function<long()> returnZero = []() { return 0; };
|
setRandomFunction(returnZero);
|
|
// Try with am empty hash table
|
auto gv = store->getRandomKey();
|
EXPECT_EQ(ENGINE_KEY_ENOENT, gv.getStatus());
|
|
Item item = store_item(
|
vbid, {"key", DocNamespace::DefaultCollection}, "value", 0);
|
|
// Try with a non-empty hash table
|
gv = store->getRandomKey();
|
EXPECT_EQ(ENGINE_SUCCESS, gv.getStatus());
|
}
|
In the test we check that with an empty hash table (i.e. bucket with no docs) we return ENGINE_KEY_ENOENT.
Therefore, I think the test might need updating to reflect this behaviour.
Hi Anitha Kuberan
Could you upload the logs?
Do you have the last known working build?
thanks