Skip to content

c/rm_stm: downgrade log level of skipping cleanup#30174

Merged
bharathv merged 1 commit intoredpanda-data:devfrom
bharathv:reduce_log_level
Apr 15, 2026
Merged

c/rm_stm: downgrade log level of skipping cleanup#30174
bharathv merged 1 commit intoredpanda-data:devfrom
bharathv:reduce_log_level

Conversation

@bharathv
Copy link
Copy Markdown
Contributor

Producer cleanup may be skipped due to a race
condition where a producer is marked active in
the brief interval between being flagged for
eviction and the actual cleanup.
This is a legit race at scale and eviction pressure.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v26.1.x
  • v25.3.x
  • v25.2.x

Release Notes

  • none

Producer cleanup may be skipped due to a race
condition where a producer is marked active in
the brief interval between being flagged for
eviction and the actual cleanup.
This is a legit race at scale and eviction pressure.
@bharathv
Copy link
Copy Markdown
Contributor Author

Backport reason: avoid test failures in older branches.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts rm_stm producer-cleanup logging to reflect that “skipped cleanup” can be a legitimate outcome under eviction/transaction races at scale, reducing unnecessary error-level noise in operational logs.

Changes:

  • Downgraded log level from error to info when skipping producer cleanup due to an in-progress transaction.
  • Downgraded log level from error to info when the pending-cleanup PID no longer matches the current producer state (race/eviction churn).

@joe-redpanda
Copy link
Copy Markdown
Contributor

What happens if a producer gets cleaned up with linked transaction state? Do we leak resources?

@bharathv
Copy link
Copy Markdown
Contributor Author

What happens if a producer gets cleaned up with linked transaction state? Do we leak resources?

we have checks to make sure it doesn't happen.

@bharathv bharathv merged commit 745b97c into redpanda-data:dev Apr 15, 2026
24 checks passed
@bharathv bharathv deleted the reduce_log_level branch April 15, 2026 20:40
@vbotbuildovich
Copy link
Copy Markdown
Collaborator

/backport v26.1.x

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

/backport v25.3.x

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

/backport v25.2.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants