René's URL Explorer Experiment


Title: ROX-33328: Avoid cache re-poisoning during coalesced fetches by clickboo · Pull Request #19600 · stackrox/stackrox · GitHub

Open Graph Title: ROX-33328: Avoid cache re-poisoning during coalesced fetches by clickboo · Pull Request #19600 · stackrox/stackrox

X Title: ROX-33328: Avoid cache re-poisoning during coalesced fetches by clickboo · Pull Request #19600 · stackrox/stackrox

Description: Description Generation counter for stale-write prevention: A targeted invalidation or full cache flush can race with an in-flight fetch: the fetch starts before the invalidation, the invalidation clears the cache, then the fetch completes and writes stale data back. Admittedly this window is very small, however it is possible. And aggravates the stale data problem when we increase/remove the TTL concept from the admission controller image cache. To prevent this, a per-key generation counter (imageGenTracker) is incremented on invalidation. In-flight fetches capture a generation snapshot before the fetch call and compare it after — if the generation changed, the result is not cached. This ensures invalidation takes effect immediately rather than being masked for the duration of the cache entry's lifetime. The generation counters get wiped out every reprocessing interval, because the periodic reprocessing triggers a full flush of the admission controller cache. User-facing documentation CHANGELOG.md is updated OR update is not needed documentation PR is created and is linked above OR is not needed Testing and quality the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag CI results are inspected Automated testing added unit tests added e2e tests added regression tests added compatibility tests modified existing tests How I validated my change Tested this as a part of the stack, along with PR #19837 and #19840.

Open Graph Description: Description Generation counter for stale-write prevention: A targeted invalidation or full cache flush can race with an in-flight fetch: the fetch starts before the invalidation, the invalidation c...

X Description: Description Generation counter for stale-write prevention: A targeted invalidation or full cache flush can race with an in-flight fetch: the fetch starts before the invalidation, the invalidation c...

Opengraph URL: https://github.com/stackrox/stackrox/pull/19600

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:7cb962ef-8240-19cf-7ef6-2a33f21557c0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id80F4:37E3D3:4786F34:6500583:6A4FC4D2
html-safe-noncecf2526a035f3d1b625a6ff80108c2ba2beb90a8338b3eb4c100a1726322526f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEY0OjM3RTNEMzo0Nzg2RjM0OjY1MDA1ODM6NkE0RkM0RDIiLCJ2aXNpdG9yX2lkIjoiNDk1MDE4MDEyMjYyMjUzNzc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca89cbe2e2fbb3b4e2b538886b285383b9f2fd20957dba5c210e0ca3f50acb358
hovercard-subject-tagpull_request:3444468488
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/stackrox/stackrox/pull/19600/files
twitter:imagehttps://avatars.githubusercontent.com/u/42253461?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/42253461?s=400&v=4
og:image:altDescription Generation counter for stale-write prevention: A targeted invalidation or full cache flush can race with an in-flight fetch: the fetch starts before the invalidation, the invalidation c...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d8f8209b188a80e19a6957836ab9229715797be5db1a04163963c674ccc33f6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/stackrox/stackrox git https://github.com/stackrox/stackrox.git
octolytics-dimension-user_id40638982
octolytics-dimension-user_loginstackrox
octolytics-dimension-repository_id434017296
octolytics-dimension-repository_nwostackrox/stackrox
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id434017296
octolytics-dimension-repository_network_root_nwostackrox/stackrox
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseea848e83cf3bf3613dd7b13d52965a684fd23ec5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/stackrox/stackrox/pull/19600/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackrox%2Fstackrox%2Fpull%2F19600%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackrox%2Fstackrox%2Fpull%2F19600%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=stackrox%2Fstackrox
Reloadhttps://github.com/stackrox/stackrox/pull/19600/files
Reloadhttps://github.com/stackrox/stackrox/pull/19600/files
Reloadhttps://github.com/stackrox/stackrox/pull/19600/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19600/files
stackrox https://github.com/stackrox
stackroxhttps://github.com/stackrox/stackrox
Notifications https://github.com/login?return_to=%2Fstackrox%2Fstackrox
Fork 180 https://github.com/login?return_to=%2Fstackrox%2Fstackrox
Star 1.3k https://github.com/login?return_to=%2Fstackrox%2Fstackrox
Code https://github.com/stackrox/stackrox
Issues 53 https://github.com/stackrox/stackrox/issues
Pull requests 558 https://github.com/stackrox/stackrox/pulls
Actions https://github.com/stackrox/stackrox/actions
Security and quality 0 https://github.com/stackrox/stackrox/security
Insights https://github.com/stackrox/stackrox/pulse
Code https://github.com/stackrox/stackrox
Issues https://github.com/stackrox/stackrox/issues
Pull requests https://github.com/stackrox/stackrox/pulls
Actions https://github.com/stackrox/stackrox/actions
Security and quality https://github.com/stackrox/stackrox/security
Insights https://github.com/stackrox/stackrox/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fstackrox%2Fstackrox%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fstackrox%2Fstackrox%2Fissues%2Fnew%2Fchoose
clickboohttps://github.com/clickboo
masterhttps://github.com/stackrox/stackrox/tree/master
boo-adm-cntr-image-gen-countershttps://github.com/stackrox/stackrox/tree/boo-adm-cntr-image-gen-counters
Conversation 20 https://github.com/stackrox/stackrox/pull/19600
Commits 2 https://github.com/stackrox/stackrox/pull/19600/commits
Checks 90 https://github.com/stackrox/stackrox/pull/19600/checks
Files changed https://github.com/stackrox/stackrox/pull/19600/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19600/files
ROX-33328: Avoid cache re-poisoning during coalesced fetches https://github.com/stackrox/stackrox/pull/19600/files#top
Show all changes 2 commits https://github.com/stackrox/stackrox/pull/19600/files
80850a3 ROX-33328: Avoid cache re-poisoning during coalesced fetches clickboo Apr 9, 2026 https://github.com/stackrox/stackrox/pull/19600/commits/80850a34f3f8615a47260c95ebe00c192cc7ff79
914e707 code review comments clickboo Apr 21, 2026 https://github.com/stackrox/stackrox/pull/19600/commits/914e707eac0c9c362053f7a5f6d9cc9e6b557b8e
Clear filters https://github.com/stackrox/stackrox/pull/19600/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19600/files
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19600/files
images.go https://github.com/stackrox/stackrox/pull/19600/files#diff-1749bf16e4e1d4bde019ccb448155300c28b6f149f0ef4c1738ac0ff1d82ce48
images_test.go https://github.com/stackrox/stackrox/pull/19600/files#diff-9641e024c5367eaceddf2e9d832899b7ba95327226512c12b0c1eb2a1cc6be96
manager_impl.go https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
manager_impl_test.go https://github.com/stackrox/stackrox/pull/19600/files#diff-2e937f496f4bd14eb0cd3d81e124e645a82b3cd35f510a5e3ce3a186401013da
https://github.com/stackrox/stackrox/blob/master/.github/CODEOWNERS#L45
sensor/admission-control/manager/images.gohttps://github.com/stackrox/stackrox/pull/19600/files#diff-1749bf16e4e1d4bde019ccb448155300c28b6f149f0ef4c1738ac0ff1d82ce48
View file https://github.com/stackrox/stackrox/blob/914e707eac0c9c362053f7a5f6d9cc9e6b557b8e/sensor/admission-control/manager/images.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/19600/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/19600/files#diff-1749bf16e4e1d4bde019ccb448155300c28b6f149f0ef4c1738ac0ff1d82ce48
https://github.com/stackrox/stackrox/pull/19600/files#diff-1749bf16e4e1d4bde019ccb448155300c28b6f149f0ef4c1738ac0ff1d82ce48
https://github.com/stackrox/stackrox/blob/master/.github/CODEOWNERS#L45
sensor/admission-control/manager/images_test.gohttps://github.com/stackrox/stackrox/pull/19600/files#diff-9641e024c5367eaceddf2e9d832899b7ba95327226512c12b0c1eb2a1cc6be96
View file https://github.com/stackrox/stackrox/blob/914e707eac0c9c362053f7a5f6d9cc9e6b557b8e/sensor/admission-control/manager/images_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/19600/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/19600/files#diff-9641e024c5367eaceddf2e9d832899b7ba95327226512c12b0c1eb2a1cc6be96
https://github.com/stackrox/stackrox/pull/19600/files#diff-9641e024c5367eaceddf2e9d832899b7ba95327226512c12b0c1eb2a1cc6be96
https://github.com/stackrox/stackrox/pull/19600/files#diff-9641e024c5367eaceddf2e9d832899b7ba95327226512c12b0c1eb2a1cc6be96
https://github.com/stackrox/stackrox/pull/19600/files#diff-9641e024c5367eaceddf2e9d832899b7ba95327226512c12b0c1eb2a1cc6be96
https://github.com/stackrox/stackrox/pull/19600/files#diff-9641e024c5367eaceddf2e9d832899b7ba95327226512c12b0c1eb2a1cc6be96
https://github.com/stackrox/stackrox/blob/master/.github/CODEOWNERS#L45
sensor/admission-control/manager/manager_impl.gohttps://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
View file https://github.com/stackrox/stackrox/blob/914e707eac0c9c362053f7a5f6d9cc9e6b557b8e/sensor/admission-control/manager/manager_impl.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/19600/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19600/files
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19600/files
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/pull/19600/files#diff-1c9eec71638003894dcd9f4fa93a94edee0a42a5dd7901e278e18bfdcb79c23c
https://github.com/stackrox/stackrox/blob/master/.github/CODEOWNERS#L45
sensor/admission-control/manager/manager_impl_test.gohttps://github.com/stackrox/stackrox/pull/19600/files#diff-2e937f496f4bd14eb0cd3d81e124e645a82b3cd35f510a5e3ce3a186401013da
View file https://github.com/stackrox/stackrox/blob/914e707eac0c9c362053f7a5f6d9cc9e6b557b8e/sensor/admission-control/manager/manager_impl_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrox/stackrox/pull/19600/{{ revealButtonHref }}
https://github.com/stackrox/stackrox/pull/19600/files#diff-2e937f496f4bd14eb0cd3d81e124e645a82b3cd35f510a5e3ce3a186401013da
https://github.com/stackrox/stackrox/pull/19600/files#diff-2e937f496f4bd14eb0cd3d81e124e645a82b3cd35f510a5e3ce3a186401013da
Please reload this pagehttps://github.com/stackrox/stackrox/pull/19600/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.