Skip to content
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

[v23.3.x] r/recovery_stm: log taking on demand snapshot at info level #18689

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/v/raft/recovery_stm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "raft/raftgen_service.h"
#include "ssx/sformat.h"
#include "storage/snapshot.h"
#include "utils/human.h"

#include <seastar/core/condition-variable.hh>
#include <seastar/core/coroutine.hh>
Expand Down Expand Up @@ -455,9 +456,14 @@ ss::future<> recovery_stm::install_snapshot(required_snapshot_type s_type) {
ss::future<>
recovery_stm::take_on_demand_snapshot(model::offset last_included_offset) {
vlog(
_ctxlog.debug,
"creating on demand snapshot with last included offset: {}",
last_included_offset);
_ctxlog.info,
"creating on demand snapshot with last included offset: {}, current "
"leader start offset: {}. Total partition size on leader {}, expected to "
"transfer to learner: {}",
last_included_offset,
_ptr->start_offset(),
human::bytes(_ptr->log()->size_bytes()),
human::bytes(_ptr->log()->size_bytes_after_offset(last_included_offset)));

_inflight_snapshot_last_included_index = last_included_offset;
// if there is no stm_manager available for the raft group use empty
Expand Down
Loading