Skip to content

Commit 660ec3c

Browse files
committed
MB-54490: Allow backup persistence cursor stats to be ignored
Occasionally, when the flusher is running and stats for checkpoint are requested, a backup cursor will also exist. This patch introduces a regex pattern that will ignore "persistence-backup" stats and prevent a 'stats error' from being returned. Change-Id: I62c8bd11a4c2cfc89de62cf821dcd8cfe909b341 Reviewed-on: https://review.couchbase.org/c/kv_engine/+/203929 Reviewed-by: Vesko Karaganev <[email protected]> Tested-by: Mohammad Zaeem <[email protected]>
1 parent 9b8490d commit 660ec3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

engines/ep/tests/ep_testsuite.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7468,6 +7468,8 @@ static enum test_result test_mb19687_fixed(EngineIface* h) {
74687468
// for variable keys:
74697469
std::map<std::string_view, std::vector<std::regex> > statsPatterns{
74707470
{"hash", {std::regex{"vb_0:histo_\\d+,\\d+"}}},
7471+
{"checkpoint", {std::regex{"vb_0:persistence-backup:[a-z_]+"}}},
7472+
{"checkpoint 0", {std::regex{"vb_0:persistence-backup:[a-z_]+"}}},
74717473
{"kvtimings",
74727474
{std::regex{"ro_[0-3]:readTime_\\d+,\\d+"},
74737475
std::regex{"ro_[0-3]:readSize_\\d+,\\d+"},

0 commit comments

Comments
 (0)