Skip to content

Sync CacheDir on shutdown#13232

Merged
masaori335 merged 2 commits into
apache:masterfrom
masaori335:asf-master-shutdown
Jun 8, 2026
Merged

Sync CacheDir on shutdown#13232
masaori335 merged 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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
@masaori335 masaori335 merged commit 60a0b5b into apache:master Jun 8, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this to For v10.2.0 in ATS v10.2.x Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: For v10.2.0

Development

Successfully merging this pull request may close these issues.

3 participants