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]change 'KEYS' command in GetKeyBucketsAndOptimizerParamsWithName function to 'SCAN' command #180

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

MoFHeka
Copy link
Collaborator

@MoFHeka MoFHeka commented Oct 29, 2021

Description

Command "KEYS" was used in the GetKeyBucketsAndOptimizerParamsWithName function by DE redis backend. But Command "KEYS" may cause lots of trouble, such as a serious service delay. Command "SCAN" should be a better choice. In fact, "KEYS" are banned in many companies' Redis services.

Fixes #179

What's more, add the ability to set hashtags via Redis cluster servers slots.

Type of change

  • Bug fix
  • New Tutorial
  • Updated or additional documentation
  • Additional Testing
  • New Feature

Checklist:

  • I've properly formatted my code according to the guidelines
    • By running yapf
    • By running clang-format
  • This PR addresses an already submitted issue for TensorFlow Recommenders-Addons
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

How Has This Been Tested?

run it again.

@MoFHeka MoFHeka requested a review from rhdong as a code owner October 29, 2021 08:34
@MoFHeka MoFHeka force-pushed the redis-dev branch 3 times, most recently from 2341ab9 to e622d0c Compare October 29, 2021 23:28
rhdong
rhdong previously approved these changes Nov 1, 2021
Copy link
Member

@rhdong rhdong left a comment

Choose a reason for hiding this comment

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

LGTM

…tion to 'SCAN' command.

lock file when read or write json file in python codes.

fix default value bug and the FindWithExists function is complete.

Add the ability to set hashtags via Redis cluster servers slots.
Copy link
Member

@rhdong rhdong left a comment

Choose a reason for hiding this comment

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

LGTM

@rhdong rhdong merged commit fcbe164 into tensorflow:master Nov 9, 2021
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.

[Bug]Some Redis services do not support the dangerous "KEYS" command
2 participants