From a72c3bbe3e5d48ea4de83085dcad383cead70533 Mon Sep 17 00:00:00 2001 From: Xiaoxi Chen Date: Tue, 9 Apr 2024 11:54:34 +0800 Subject: [PATCH] pppppp Signed-off-by: Xiaoxi Chen --- src/lib/homestore_backend/tests/homeobj_fixture.hpp | 2 ++ src/lib/homestore_backend/tests/hs_blob_tests.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/lib/homestore_backend/tests/homeobj_fixture.hpp b/src/lib/homestore_backend/tests/homeobj_fixture.hpp index 7f779a91..e8d3280a 100644 --- a/src/lib/homestore_backend/tests/homeobj_fixture.hpp +++ b/src/lib/homestore_backend/tests/homeobj_fixture.hpp @@ -95,6 +95,8 @@ class HomeObjectFixture : public ::testing::Test { retry: auto b = _obj_inst->blob_manager()->put(shard_id, std::move(put_blob)).get(); + LOGERROR("result of put blob {}", b); + LOGERROR("result of put blob error {}", b.error()); if (!b && b.error() == BlobError::NOT_LEADER) { LOGINFO("Failed to put blob due to not leader, sleep 1s and retry put", pg_id, shard_id); std::this_thread::sleep_for(1s); diff --git a/src/lib/homestore_backend/tests/hs_blob_tests.cpp b/src/lib/homestore_backend/tests/hs_blob_tests.cpp index 3195a89b..eac26163 100644 --- a/src/lib/homestore_backend/tests/hs_blob_tests.cpp +++ b/src/lib/homestore_backend/tests/hs_blob_tests.cpp @@ -64,6 +64,7 @@ TEST_F(HomeObjectFixture, BasicPutGetDelBlobWRestart) { // Put blob after restart to test the persistance of blob sequence number put_blob(blob_map, pg_shard_id_vec, num_blobs_per_shard, max_blob_size); + LOGERROR("After put blob."); // Verify all get blobs with random offset and length. verify_get_blob(blob_map, true /* use_random_offset */);