Skip to content

Commit 4f3034f

Browse files
committed
MB-58665: [testapp] full-eviction returns tmpfail for unlock
if the document doesn't exists Change-Id: Ibff0554dff150d8e1cb3bd91d2f6062fe7e3f3c7 Reviewed-on: https://review.couchbase.org/c/kv_engine/+/197174 Reviewed-by: Paolo Cocchi <[email protected]> Tested-by: Build Bot <[email protected]>
1 parent f853e66 commit 4f3034f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/testapp/testapp_lock.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,14 @@ TEST_P(LockTest, DeleteLockedDocument) {
148148

149149
TEST_P(LockTest, UnlockNoSuchDocument) {
150150
try {
151+
userConnection->setAutoRetryTmpfail(false);
151152
userConnection->unlock(name, Vbid(0), 0xdeadbeef);
152153
FAIL() << "The document should not exist";
153154
} catch (const ConnectionError& ex) {
154-
EXPECT_TRUE(ex.isNotFound());
155+
// full eviction returns tmpfail
156+
EXPECT_TRUE(ex.isNotFound() || ex.isTemporaryFailure());
155157
}
158+
userConnection->setAutoRetryTmpfail(true);
156159
}
157160

158161
TEST_P(LockTest, UnlockInvalidVBucket) {

0 commit comments

Comments
 (0)