Skip to content

Conversation

@torcolvin
Copy link
Collaborator

[4.0.3 backport] CBG-5079: Avoid logging at debug in pruning of cache

cherry-pick of 7691406

Copilot AI review requested due to automatic review settings January 16, 2026 16:06
Copy link
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

This PR backports performance improvements related to cache pruning logging. The changes reduce logging overhead by moving debug-level pruning messages to trace level with conditional checks.

Changes:

  • Reduced vBucket creation delay from 500ms to 100ms in the cache performance tool
  • Changed pruning log messages from debug to trace level with conditional evaluation guards
  • Updated loop syntax to use range expression

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tools/cache_perf_tool/dcpDataGeneration.go Updated vBucket creation loop syntax and reduced sleep delay for faster iteration
db/channel_cache_single.go Changed cache pruning log messages from debug to trace level with conditional guards to avoid unnecessary UD() calls

@bbrks bbrks enabled auto-merge (squash) January 16, 2026 16:08
@bbrks bbrks merged commit 2f240f0 into release/4.0.3 Jan 16, 2026
42 checks passed
@bbrks bbrks deleted the CBG-5079 branch January 16, 2026 16:12
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.

4 participants