You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Primary replica not available error does not specify which table #5057
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.
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
Activity
larkost commentedon Dec 14, 2015
I really like the idea of adding the
db.tableto 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