Skip to content

Conversation

@come-nc
Copy link
Contributor

@come-nc come-nc commented Jan 20, 2022

This should fix memcached test on PHP 7.4 which is failing in CI of #29286

Context:
PHP documentation for Memcached::getAllKeys states:
Memcached::getAllKeys() queries each memcache server and retrieves an array of all keys stored on them at that point in time. This is not an atomic operation, so it isn't a truly consistent snapshot of the keys at point in time. As memcache doesn't guarantee to return all keys you also cannot assume that all keys have been returned.
https://www.php.net/manual/en/memcached.getallkeys.php

In the 7.4 CI getAllKeys is always returning an empty array. As the documentation suggets that even if not empty the method may return incomplete result, I just always do a complete flush.

Signed-off-by: Côme Chilliet [email protected]

@come-nc come-nc self-assigned this Jan 20, 2022
@come-nc come-nc added the 3. to review Waiting for reviews label Jan 20, 2022
@come-nc come-nc requested review from a team, icewind1991, nickvergessen and skjnldsv and removed request for a team January 20, 2022 10:30
@nickvergessen nickvergessen added this to the Nextcloud 24 milestone Jan 20, 2022
@skjnldsv
Copy link
Member

Backports?

@skjnldsv skjnldsv added the feature: caching Related to our caching system: scssCacher, jsCombiner... label Jan 20, 2022
Copy link
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

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

And I would backport it :)

@nickvergessen
Copy link
Member

/backport to stable23

@nickvergessen
Copy link
Member

/backport to stable22

@nickvergessen
Copy link
Member

/backport to stable21

@nickvergessen
Copy link
Member

Let's backport after the current releases

@come-nc come-nc merged commit ff80941 into master Jan 20, 2022
@come-nc come-nc deleted the fix/memcached_clear branch January 20, 2022 15:30
@come-nc come-nc added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: caching Related to our caching system: scssCacher, jsCombiner...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants