Skip to content

[Core] Better handling of redis errors #33744

Closed

Description

@jjyao

What happened + What you expected to happen

When we use ray with external redis, sometimes redis returns REDIS_REPLY_ERROR and we are not handle it properly.

Versions / Dependencies

master

Reproduction script

#33733

Issue Severity

None

Activity

  1. added
    bug
    release-blocker
    core
    on Mar 27, 2023
  2. self-assigned this
    on Mar 27, 2023
  3. jjyao commented on Mar 28, 2023

    @jjyao
    ContributorAuthor

    For 2.4, we should audit all redis calls and retry REDIS_REPLY_ERROR

  4. fishbone commented on Mar 28, 2023

    @fishbone
    Contributor

    Close since duplicate with this #32541

  5. jjyao commented on Mar 28, 2023

    @jjyao
    ContributorAuthor

    Are they the same?

  6. edoakes commented on Mar 29, 2023

    @edoakes
    Collaborator

    @iycheng these issues not the same (but somewhat related). This one is about how the GCS handles errors and status codes in all requests to redis. The other is about surfacing a better error to the user when we fail to connect on startup.

  7. added
    P1
    and removed
    release-blocker
    on Mar 31, 2023
  8. jjyao commented on Apr 3, 2023

    @jjyao
    ContributorAuthor

    The printed out error message is redis_context.cc:67: Check failed: false Got an error in redis reply: MOVED 11267 10.0.18.181:6379

  9. added
    release-blocker
    and removed
    P1
    on Apr 3, 2023
  10. fishbone commented on Apr 3, 2023

    @fishbone
    Contributor

    @edoakes I think for Redis failures, right now, we don't do anything to fix this since it's just not easy. Blindly retry won't work and is worse IMO. (refer to #34014 for details).

  11. edoakes commented on Apr 10, 2023

    @edoakes
    Collaborator

    @iycheng thanks for the leader election fix!

    I think we should still leave this issue open and prioritize improving how we handle reply codes. Not having any form of retries or gracefully handling error codes makes the system unstable. What do you think?

  12. fishbone commented on Apr 11, 2023

    @fishbone
    Contributor

    @edoakes it's tracked here #34014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcorerelease-blocker

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions