Skip to content

Log the cause when the named-blob cleaner skip-ahead lookup fails - #3292

Merged
zichengl merged 1 commit into
linkedin:masterfrom
zichengl:zichengl/nb-cleaner-skip-lookup-logging
Aug 21, 2026
Merged

Log the cause when the named-blob cleaner skip-ahead lookup fails#3292
zichengl merged 1 commit into
linkedin:masterfrom
zichengl:zichengl/nb-cleaner-skip-lookup-logging

Conversation

@zichengl

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #3291 addressing review feedback: when the skip-ahead lookup (getFirstBlobName().get(timeout)) that finds the next blob name to jump the cursor to fails, there was no log identifying what happened.

Now the call is wrapped so a TimeoutException / ExecutionException is logged at WARN with the specific cause (and the container + cursor) before the container is deferred to the next scheduled run. InterruptedException still propagates so cleanup shutdown is handled cleanly.

No behavior change beyond the added log and the explicit defer path.

Addresses review feedback on linkedin#3291: the getFirstBlobName().get(timeout) call
that finds the next blob name to skip to could fail (e.g. a query timeout)
without any log identifying what happened. Wrap it and log the specific cause
(TimeoutException / ExecutionException) at WARN before deferring the container
to the next scheduled run. InterruptedException still propagates for clean
shutdown handling.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@codecov-commenter

codecov-commenter commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.77%. Comparing base (52ba813) to head (a669a59).
⚠️ Report is 413 commits behind head on master.

Files with missing lines Patch % Lines
...github/ambry/frontend/NamedBlobsCleanupRunner.java 0.00% 8 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             master    #3292       +/-   ##
=============================================
- Coverage     64.24%   50.77%   -13.48%     
+ Complexity    10398     8696     -1702     
=============================================
  Files           840      938       +98     
  Lines         71755    80552     +8797     
  Branches       8611     9699     +1088     
=============================================
- Hits          46099    40899     -5200     
- Misses        23004    36260    +13256     
- Partials       2652     3393      +741     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zichengl
zichengl merged commit 69a9a08 into linkedin:master Aug 21, 2026
11 checks passed
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