Skip to content

[core] GCS never retries DB request and thus low availability. #34014

Closed

Description

@fishbone

What happened + What you expected to happen

When GCS sends request to Redis, it never retries, so it'll crash even when single request failed. Single request failed is total normal even the DB cluster is high available.

Blindly retry the request won't work out of box because in GCS requests are sent in ordering and we need to ensure the order is correct even with retry.

For example, actor is ready and actor is dead, the ordering is strict. If actor is ready is resent and executed after actor is dead this is going to be wrong.

This either can be fixed in GCS application side or fixed in GCS StoreClient side.

To reduce the developer's burden, fixing it in StoreClient might be better.

Rough ideas for this:

  • For each write, k => v. If there is a writing happening, cache this and writing after the ongoing one finished.
  • If the cache has ops, overwrite this.
  • callbacks work as before.

Once it's built, retry should be enabled in redis client side.

Versions / Dependencies

Master

Reproduction script

Make Redis reject on request from GCS.

Issue Severity

Medium: It is a significant difficulty but I can work around it.

Activity

  1. added
    bug
    triage
    on Apr 3, 2023
  2. self-assigned this
    on Apr 3, 2023
  3. added
    P1
    and removed
    triage
    on Apr 3, 2023
  4. added
    release-blocker
    P0
    and removed
    P1
    on May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0bugrelease-blocker

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions