Skip to content

[stable25] redis: use atomic operations everywhere - #38570

Closed
backportbot-nextcloud[bot] wants to merge 4 commits into
stable25from
backport/38539/stable25
Closed

[stable25] redis: use atomic operations everywhere#38570
backportbot-nextcloud[bot] wants to merge 4 commits into
stable25from
backport/38539/stable25

Conversation

@backportbot-nextcloud

@backportbot-nextcloudbackportbot-nextcloudBot commented Jun 1, 2023

Copy link
Copy Markdown
  • ⚠️ This backport had conflicts that were resolved with the 'ours' merge strategy and is likely incomplete

backport of #38539

pulsejetand others added 3 commits June 1, 2023 08:23
This removes a lot of acrobatics in the code and does each operation
atomically using a lua script. This also reduces several round trips
to the server, and the scripts are compiled and cached server-side.
Notably, since all operations work only on a single key (except clear,
which is broken anyway and shouldn't be used), they will continue to
function and be atomic for Redis cluster.
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
@backportbot-nextcloudbackportbot-nextcloudBot added feature: caching Related to our caching system: scssCacher, jsCombiner... performance 🚀 labels Jun 1, 2023
@backportbot-nextcloudbackportbot-nextcloudBot added this to the Nextcloud 25.0.8 milestone Jun 1, 2023
Comment threadlib/private/Memcache/Redis.php Fixed
Comment threadlib/private/Memcache/Redis.php Fixed
return $result;
}

protected static function encodeValue(mixed $value): string {

Check failure

Code scanning / Psalm

ReservedWord

mixed is a reserved word
return is_int($value) ? (string) $value : json_encode($value);
}

protected static function decodeValue(string $value): mixed {

Check failure

Code scanning / Psalm

ReservedWord

mixed is a reserved word
@ChristophWurstChristophWurst added the 1. to develop Accepted and waiting to be taken care of label Jun 1, 2023
@ChristophWurst

Copy link
Copy Markdown
Member

There is a lot missing in the diff :s

@solracsfsolracsf changed the title [stable25] [stable26] redis: use atomic operations everywhere[stable25] redis: use atomic operations everywhereJun 1, 2023
@blizzzblizzz mentioned this pull request Jun 12, 2023
Comment threadlib/private/Memcache/Redis.php Fixed
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Update Redis.php
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Fix typo
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Fix self:: calls
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Fix CI
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf
solracsfforce-pushed the backport/38539/stable25 branch from 0ff5224 to 8a6c2d3CompareJune 22, 2023 05:38
@blizzzblizzz mentioned this pull request Jul 10, 2023
@blizzz

Copy link
Copy Markdown
Member

There is a lot missing in the diff :s

Is someone working on this?

@blizzz

Copy link
Copy Markdown
Member

moving to 25.0.10

@blizzzblizzz mentioned this pull request Aug 2, 2023
@blizzz

Copy link
Copy Markdown
Member

moving to 25.0.11

@blizzzblizzz mentioned this pull request Sep 5, 2023
@blizzz

Copy link
Copy Markdown
Member

moving to 25.0.12

If there an no updates to this PR, I am going to close it if it does not meet next release.

@blizzzblizzz mentioned this pull request Sep 20, 2023
@blizzzblizzz mentioned this pull request Oct 9, 2023
1 task
@blizzz

Copy link
Copy Markdown
Member

closing as it's not ready and 25 is being sunsetted.

@blizzzblizzz closed this Oct 12, 2023
@blizzz
blizzz deleted the backport/38539/stable25 branch October 12, 2023 07:19
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. to developAccepted and waiting to be taken care offeature: cachingRelated to our caching system: scssCacher, jsCombiner...performance 🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@ChristophWurst@blizzz@github-advanced-security@pulsejet@icewind1991@solracsf