NRG: Invalidate pae cache on WAL truncate and snapshot install - #8149
Conversation
Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
|
Claude finished @MauriceVanVeen's task in 3m 46s —— View job PR Review
Verdict: LGTM — correct fix, well-tested. The PR correctly addresses three distinct paths where
Catchup snapshot reordering: This is the subtle and crucial fix. Before, Tests: All four test functions clearly exercise the intended scenario, use the existing single-node test harness, and check both the positive (correct state after) and negative (cache is gone) conditions. Minor observations (neither blocking nor new to this PR):
|
Includes the following: - #8093 - #8094 - #8076 - #8097 - #8098 - #8101 - #8102 - #8103 - #8104 - #8105 - #8106 - #8107 - #8100 - #8110 - #8111 - #8112 - #8115 - #8119 - #8124 - #8121 - #8127 - #8126 - #8132 - #8130 - #8135 - #8141 - #8149 - #8152 - #8154 - #8139 - #7851 - #8159 - #8155 - #8156 - #8158 - #8161 - #8162 - #8166
Includes the following: - #8080 - #8081 - #8082 - #8085 - #8087 - #8089 - #8088 - #8092 - #8093 - #8076 - #8097 - #8098 - #8101 - #8102 - #8103 - #8104 - #8105 - #8106 - #8107 - #8100 - #8110 - #8111 - #8112 - #8115 - #8119 - #8124 - #8121 - #8127 - #8126 - #8132 - #8130 - #8141 - #8149 - #8152 - #8154 - #8139 - #7851 - #8159 - #8155 - #8156 - #8158 - #8161 - #8162 - #8166
n.paecaches append entries and is normally drained byapplyCommit. Three paths bypassed that drain:truncateWAL,installSnapshot, and catchup-from-snapshot. Memory would leak (bounded bypaeDropThreshold) and the cache would become less efficient, requiring more disk loads until a stepdown or server restart.