Skip to content

expire: New MAIN.n_superseded counter #4045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 1, 2024
Merged

Conversation

dridi
Copy link
Member

@dridi dridi commented Jan 26, 2024

I ran into a case where a user was refining their cache policy and this turned out to be a blind spot.

Copy link
Member

@nigoroll nigoroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the bikeshed, I really think superseded is better: If my understanding of the English language is adequate, it makes clear that a specific object is replaced by something which makes the previous object redundant.
Replaced is too general, in my mind: Cache objects can be LRU-replaced by whatever

@@ -360,6 +360,8 @@ SLTM(ExpKill, 0, "Object expiry event",
"\tLogged when the expiry thread expires an object.\n\n"
"EXP_Removed\n"
"\tLogged when the expiry thread removes an object before expiry.\n\n"
"VBF_Replace\n"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VBF_Superseded for consistency? (also mentioned by phk)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

@nigoroll
Copy link
Member

nigoroll commented Mar 1, 2024

👍 but I really think it should be superseded, not "replaced".

@dridi
Copy link
Member Author

dridi commented Mar 1, 2024

Bugwash: OK.

I will apply @nigoroll's suggestions and merge.

@dridi
Copy link
Member Author

dridi commented Mar 1, 2024

Rebased against master, to be merged once CI passes.

@dridi dridi merged commit b7507f9 into varnishcache:master Mar 1, 2024
@dridi dridi deleted the n_superseded branch March 1, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants