Skip to content

Primary replica not available error does not specify which table #5057

Open

Description

@Tryneus

When trying to access a table that is not ready, we get the error message: Cannot perform read: Primary replica for shard ["", +inf) not available (server d121a0d6-9d63-4f8c-93da-cb8207e6b47c is not ready).

This is a bit of a departure from other table-related error messages, which will mention the table by name. With this error message, there are three options I see for a user:

  • The query uses one table
    • We need to parse the original query to find the table term
    • Then we can extract the table name and wait for it to be ready
  • The query had multiple tables (and a more general user-space solution)
    • We need to correlate the backtrace to the original query to determine which term errored
    • Then we can extract the table name and wait for it to be ready
  • Screw trying to parse stuff; just sleep and retry later

All of these options are pretty bad, and I believe it would be more consistent with other error messages to just mention the db.table that caused the error.

Activity

  1. added this to the subsequent milestone on Nov 9, 2015
  2. larkost commented on Dec 14, 2015

    @larkost
    Collaborator

    I really like the idea of adding the db.table to the message, but would like to also keep the range and server information (but name would be nice there).

    Also linking this issue to the one about automatic re-trys for table availability: #4331

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions