Skip to content
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

[2.6] MOD-5768: Fix tls on Redis 7.2 oss cluster #3899

Merged
merged 3 commits into from Sep 28, 2023
Merged

Conversation

github-actions[bot]
Copy link

Description

Backport of #3837 to 2.6.

On Redis 7.2 (specifically on 7.2-rc3) there was a change
made that allow running on cluster with both, tls and none
tls port.
As part of this change, `cluster slot` command will return the
port base of the connection type (tls or not tls). A side effect
of this change is that when `cluster slot` called using `RM_Call`
it is always gets the none tls port (which break our support of tls).

To fix this, use `RedisModule_GetClusterNodeInfo` Redis module API to
get the correct port.

Notice that this is a minimal fix, we should extend the Redis module API
to provide us with all the information we need (including slot range) so
we will not have to use `cluster slot` command at all.

(cherry picked from commit 59c6636)
(cherry picked from commit 911f0c6)
(cherry picked from commit 642db33)
@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (a8e3425) 82.52% compared to head (13958a6) 82.52%.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.6    #3899      +/-   ##
==========================================
- Coverage   82.52%   82.52%   -0.01%     
==========================================
  Files         176      176              
  Lines       30123    30124       +1     
==========================================
  Hits        24859    24859              
- Misses       5264     5265       +1     
Files Coverage Δ
coord/src/rmr/redis_cluster.c 80.00% <100.00%> (+0.31%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DvirDukhan DvirDukhan merged commit c972c40 into 2.6 Sep 28, 2023
8 checks passed
@DvirDukhan DvirDukhan deleted the backport-3837-to-2.6 branch September 28, 2023 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants