Skip to content

Sync CacheDir on shutdown#13232

Open
masaori335 wants to merge 2 commits into
apache:masterfrom
masaori335:asf-master-shutdown
Open

Sync CacheDir on shutdown#13232
masaori335 wants to merge 2 commits into
apache:masterfrom
masaori335:asf-master-shutdown

Conversation

@masaori335
Copy link
Copy Markdown
Contributor

In the past, it's used be called by traffic_manager, but it's gone.

@masaori335 masaori335 added this to the 11.0.0 milestone Jun 3, 2026
@masaori335 masaori335 self-assigned this Jun 3, 2026
Copilot AI review requested due to automatic review settings June 3, 2026 08:05
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

This PR restores flushing of the in-memory cache directory metadata to disk during traffic_server shutdown, compensating for the historical behavior that previously occurred via traffic_manager.

Changes:

  • Include the cache directory internal header (P_CacheDir.h) in traffic_server.cc.
  • Invoke sync_cache_dir_on_shutdown() during the shutdown continuation when the cache is initialized.

Comment thread src/traffic_server/traffic_server.cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants