Skip to content

SDSTOR-25274: improve stability of scrubber tests - #458

Merged
JacksonYao287 merged 1 commit into
eBay:stable/v4.xfrom
JacksonYao287:fix-scrubber-test-failure
Aug 25, 2026
Merged

SDSTOR-25274: improve stability of scrubber tests#458
JacksonYao287 merged 1 commit into
eBay:stable/v4.xfrom
JacksonYao287:fix-scrubber-test-failure

Conversation

@JacksonYao287

@JacksonYao287 JacksonYao287 commented Aug 24, 2026

Copy link
Copy Markdown
Member

scrubber UT will fail if leader switch occurs when scrubber UT is on going. This PR handles the case to improve the stability of scrubber UT

# GC tests
add_test(NAME FetchDataWithOriginatorGC
COMMAND homestore_test_dynamic --executor immediate --config_path ./
--override_config hs_backend_config.enable_gc=true

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gc is enabled as default, so remove this

cur_batch_blob_count_ = 0;
}
cur_obj_id = id;
LOGD("Advanced resync cursor: pg={}, obj={}, shard_index={}, blob_index={}", pg_id, id.to_string(),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all the changes in this file are all format changes made by clang-format, no logic change

m_snp_rcv_handler = std::make_unique< HSHomeObject::SnapshotReceiveHandler >(*home_object_, r_dev);
if (m_snp_rcv_handler->load_prev_context_and_metrics()) {
LOGI("Reloaded resync receiver context: lsn={}, pg={}, next_shard=0x{:x}",
m_snp_rcv_handler->get_context_lsn(),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only format changes, too.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (stable/v4.x@bb54b1c). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/lib/homestore_backend/pg_blob_iterator.cpp 0.00% 2 Missing ⚠️
src/lib/homestore_backend/gc_manager.cpp 75.00% 1 Missing ⚠️
...ib/homestore_backend/replication_state_machine.cpp 0.00% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@              Coverage Diff               @@
##             stable/v4.x     #458   +/-   ##
==============================================
  Coverage               ?   54.37%           
==============================================
  Files                  ?       39           
  Lines                  ?     6830           
  Branches               ?      940           
==============================================
  Hits                   ?     3714           
  Misses                 ?     2716           
  Partials               ?      400           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JacksonYao287
JacksonYao287 requested a review from Besroy August 24, 2026 14:39

@Besroy Besroy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets merge and trigger a new image build

@JacksonYao287
JacksonYao287 merged commit f933d1d into eBay:stable/v4.x Aug 25, 2026
46 of 50 checks passed
@JacksonYao287
JacksonYao287 deleted the fix-scrubber-test-failure branch August 25, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants