)]}'
{
  "commit": "f2673478bdee209e10b1bcbf09b301249348cc07",
  "tree": "085ea55fa57c95c370a01b81d05acb66ea436ee8",
  "parents": [
    "0814e49bea7d6fb508ad90b1c72f4b891edd4b84"
  ],
  "author": {
    "name": "zhengyu",
    "email": "zhangzhengyu@selectdb.com",
    "time": "Tue Jul 14 23:35:45 2026 +0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Jul 14 23:35:45 2026 +0800"
  },
  "message": "[fix](filecache) skip redundant ttl scans for non-TTL tablets (#65434)\n\n### What problem does this PR solve?\n\nIssue Number: None\n\nRelated PR: #65429\n\nProblem Summary:\n\nPick #65429 to master.\n\nThe file cache TTL manager keeps registered tablet ids in\n`_tablet_id_set`. For ordinary non-TTL tablets, the old `ttl_seconds \u003c\u003d\n0` path always set `need_convert_from_ttl \u003d true`, so every update round\nscanned cached blocks even when the tablet had never been recorded in\n`_ttl_info_map`.\n\nThis PR reduces the repeated CPU work for registered non-TTL tablets:\n\n- If a tablet was previously tracked as TTL, it is still converted back\nto NORMAL immediately when TTL is disabled.\n- If a tablet has no prior TTL info, the manager skips the per-round\ncached block scan.\n- A low-frequency reconciliation scan is kept every 20 update rounds, so\ncleanup behavior is preserved while avoiding scans on every round.\n\nWith the default `file_cache_background_ttl_info_update_interval_ms \u003d\n180000`, ordinary non-TTL tablets avoid the repeated per-round block\nscan that previously ran every 3 minutes.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "939045aa71e99c4c43281f7e8ad5c58d56e5cb5d",
      "old_mode": 33188,
      "old_path": "be/src/io/cache/block_file_cache_ttl_mgr.cpp",
      "new_id": "b394591d42decbd935286770639a20c195aaac67",
      "new_mode": 33188,
      "new_path": "be/src/io/cache/block_file_cache_ttl_mgr.cpp"
    },
    {
      "type": "modify",
      "old_id": "48165163581fb6420b114e2a0b92a2d4e5065759",
      "old_mode": 33188,
      "old_path": "be/test/io/cache/block_file_cache_ttl_mgr_test.cpp",
      "new_id": "56f6d3d43d68e3a2bb48762c82995e5f494c68df",
      "new_mode": 33188,
      "new_path": "be/test/io/cache/block_file_cache_ttl_mgr_test.cpp"
    }
  ]
}
