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

[v24.3.x] storage: add log lines about removed data #24736

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

andrwng
Copy link
Contributor

@andrwng andrwng commented Jan 8, 2025

Backport of PR #24659

CONFLICT:

  • this branch doesn't have some probe code

This adds some accounting to the copy_data_segment_reducer to keep track
of records and batches that are removed. The goal here is ultimately to
provide more visibility into removed records, though this accounting
isn't yet plugged into anything.

A later change will expose numbers (likely with logging).

(cherry picked from commit 33c3aa4)
@andrwng andrwng added kind/backport PRs targeting a stable branch and removed area/redpanda labels Jan 8, 2025
@andrwng andrwng added this to the v24.3.x-next milestone Jan 8, 2025
CONFLICT:
- conflict because this branch doesn't have
  pb.add_segment_marked_tombstone_free()

Removing records from the storage layer is currently very silent, making
it difficult to debug. This commit exposes the new
copy_data_segment_reducer stats in as a log message, at info level when
data is removed, and debug level when not (presumably we mostly care
about these stats when data is actually being removed).

(cherry picked from commit 8c84ffd)
@andrwng andrwng force-pushed the manual-backport-24659-v24.3.x-337 branch from ed7b6f7 to f125faf Compare January 9, 2025 00:15
@vbotbuildovich
Copy link
Collaborator

CI test results

test results on build#60462
test_id test_kind job_url test_status passed
rptest.tests.idempotency_test.IdempotencyWriteCachingTest.test_idempotent_producers_write_caching ducktape https://buildkite.com/redpanda/redpanda/builds/60462#019448b2-41ee-4a01-b4c5-ac104eb3e00f FLAKY 5/6

@andrwng andrwng requested a review from WillemKauf January 9, 2025 05:10
@andrwng andrwng enabled auto-merge January 9, 2025 05:10
@andrwng andrwng merged commit b731170 into v24.3.x Jan 9, 2025
16 checks passed
@andrwng andrwng deleted the manual-backport-24659-v24.3.x-337 branch January 9, 2025 05:11
@piyushredpanda piyushredpanda modified the milestones: v24.3.x-next, v24.3.3 Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants