Skip to content

Commit 1aebdc9

Browse files
committed
MB-68855: Dump state information at ::waitForUploaderState failure
Useful at diagnostic. Change-Id: I90b1305cea2735381c9afacd22072bdcbde1642f Reviewed-on: https://review.couchbase.org/c/kv_engine/+/236737 Reviewed-by: Mohammad Zaeem <[email protected]> Tested-by: Paolo Cocchi <[email protected]>
1 parent 9e83191 commit 1aebdc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/testapp/testapp_fusion.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,10 @@ void FusionTest::waitForUploaderState(Vbid vbid, std::string_view state) {
260260
auto [ec, json] = fusionStats("uploader", vbid);
261261
if (ec != cb::engine_errc::success) {
262262
throw std::runtime_error(fmt::format(
263-
"waitForUploaderState: Failed to "
264-
"fetch fusion uploader stats for {}: {}",
263+
"waitForUploaderState: Failed to fetch fusion "
264+
"uploader stats for {} state:{}: {}",
265265
vbid,
266+
state,
266267
ec));
267268
}
268269
return json["state"].get<std::string>() == state;

0 commit comments

Comments
 (0)