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

Fix bug for CLUSTER SLOTS from EVAL over TLS #1072

Merged

Conversation

zuiderkwast
Copy link
Contributor

For fake clients like the ones used for Lua and modules, we don't determine TLS in the right way, causing CLUSTER SLOTS from EVAL over TLS to fail a debug-assert.

This error was introduced when the caching of CLUSTER SLOTS was introduced, i.e. in 8.0.0.

Copy link
Member

@enjoy-binbin enjoy-binbin left a comment

Choose a reason for hiding this comment

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

OK, i see. LGTM

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.64%. Comparing base (80fcbd3) to head (26aa518).
Report is 2 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1072      +/-   ##
============================================
+ Coverage     70.61%   70.64%   +0.03%     
============================================
  Files           114      114              
  Lines         61695    61695              
============================================
+ Hits          43564    43583      +19     
+ Misses        18131    18112      -19     
Files with missing lines Coverage Δ
src/cluster.c 88.42% <100.00%> (+0.28%) ⬆️

... and 14 files with indirect coverage changes

@hwware hwware merged commit 99865b1 into valkey-io:unstable Sep 25, 2024
47 checks passed
@zuiderkwast zuiderkwast deleted the cluster-slots-from-eval-over-tls branch September 25, 2024 08:05
@zuiderkwast zuiderkwast added the bug Something isn't working label Sep 25, 2024
madolson pushed a commit to madolson/valkey that referenced this pull request Sep 30, 2024
For fake clients like the ones used for Lua and modules, we don't
determine TLS in the right way, causing CLUSTER SLOTS from EVAL over TLS
to fail a debug-assert.

This error was introduced when the caching of CLUSTER SLOTS was
introduced, i.e. in 8.0.0.

Signed-off-by: Viktor Söderqvist <[email protected]>
naglera pushed a commit to naglera/placeholderkv that referenced this pull request Oct 10, 2024
For fake clients like the ones used for Lua and modules, we don't
determine TLS in the right way, causing CLUSTER SLOTS from EVAL over TLS
to fail a debug-assert.

This error was introduced when the caching of CLUSTER SLOTS was
introduced, i.e. in 8.0.0.

Signed-off-by: Viktor Söderqvist <[email protected]>
Signed-off-by: naglera <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants