-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: improve CloudRetentionTest #10327
tests: improve CloudRetentionTest #10327
Conversation
This was omitting the actual exception.
Avoid emitting WARN log during shutdown.
This test was: - Checking for retention enforcement in a way that overlapped with ongoing uploads, so had unpredictable runtime. - Checking total object size rather than logical partition size, so its stability was influenced by extra objects like indices. Fixes redpanda-data#10282
Test failure is: |
@@ -1806,7 +1806,7 @@ ss::future<> ntp_archiver::housekeeping() { | |||
co_await garbage_collect(); | |||
} | |||
} catch (std::exception& e) { | |||
vlog(_rtclog.warn, "Error occured during housekeeping", e.what()); | |||
vlog(_rtclog.warn, "Error occurred during housekeeping: {}", e.what()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should really write a clang-tidy check for this ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did someone say clang-tidy check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. It would be great if we had a check that parsed vlog
and format
invocations and ensured the number of placeholders ({}
) matches the number of args provided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeh that would be cool. IIUC this has been asked for from libfmt but apparently it isn't possible. clang-tidy does seem like a reasonable solution
While working on this, I also noticed some logging issues with the archival housekeeping that I've fixed opportunistically.
Fixes #10282
Backports Required
Release Notes