Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cache] Fixed expiry could be int in ChainAdapter due to race conditions#38879

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 0 commits intosymfony:4.4fromphamviet:PR-38635
Oct 29, 2020

Conversation

@phamviet
Copy link
Contributor

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#38635
LicenseMIT
Doc PRno

This bug is hard to re-produce and seems only happen with ArrayAdapter only.

Steps to reproduce:

cache.yaml

simple.cache:        adapters:          - cache.adapter.array          - cache.adapter.redis
if (isset($item->metadata[CacheItem::METADATA_EXPIRY])) {$logger->debug($item->key,$item->metadata);$format =is_int($item->metadata[CacheItem::METADATA_EXPIRY]) ?'U' :'U.u';$item->expiresAt(\DateTime::createFromFormat($format,$item->metadata[CacheItem::METADATA_EXPIRY])); }

Refresh webpage multiple time to make web server busy and logs:

[2020-10-29T17:04:51.119653+07:00] application.DEBUG: item-key {"expiry":1603965892.118222,"ctime":4} [][2020-10-29T17:04:54.322937+07:00] application.DEBUG: item-key {"expiry":1603965895.308393,"ctime":17} [][2020-10-29T17:04:54.745923+07:00] application.DEBUG: item-key {"expiry":1603965895,"ctime":16} []

b1rdex reacted with thumbs up emoji
@nicolas-grekas
Copy link
Member

Thank you@phamviet.

@nicolas-grekas
Copy link
Member

For ref, I improved this a bit in13af58c

@Nyholm
Copy link
Member

Thank you@phamviet for finding and fixing this!

@fabpotfabpot mentioned this pull requestNov 10, 2020
This was referencedNov 29, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

4 participants

@phamviet@nicolas-grekas@Nyholm@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp