Skip to content

Add warning log to EvictionQueue::Purge for slow purges#58

Open
krleonid wants to merge 2 commits into
v1.5-stable-artjom-ab077c5from
logs
Open

Add warning log to EvictionQueue::Purge for slow purges#58
krleonid wants to merge 2 commits into
v1.5-stable-artjom-ab077c5from
logs

Conversation

@krleonid
Copy link
Copy Markdown
Owner

Summary

  • Adds a DUCKDB_LOG_WARNING to EvictionQueue::Purge that fires when iterations > 10 or elapsed time > 1 second
  • Instruments the purge loop with timing, iteration count, and alive/dead node counters
  • Helps diagnose eviction queue pressure in production

Test plan

  • Verify build compiles cleanly
  • Confirm log fires under heavy eviction pressure (e.g., with a large number of dead nodes)
  • Confirm log does NOT fire under normal operation

🤖 Generated with Claude Code

krleonid and others added 2 commits May 25, 2026 17:01
…ed > 1s

Instruments the Purge loop with timing and counters to detect when purge
takes unexpectedly long, which helps diagnose eviction queue pressure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Compute iterations, alive/dead counts from initial_max_purges, max_purges,
and total_dead_nodes delta — no need to modify PurgeIteration's signature.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant