-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
distsql: testing infrastructure #13665
Comments
I can work on this in the following days. |
`SPLIT AT` now takes an arbitrary select statement. Existing uses must switch to using `VALUES`; e.g. `ALTER TABLE t SPLIT AT (x, y)` becomes `ALTER TABLE t SPLIT AT VALUES (x, y)`. Part of cockroachdb#13665, implements part of RFC cockroachdb#14146.
`SPLIT AT` now takes an arbitrary select statement. Existing uses must switch to using `VALUES`; e.g. `ALTER TABLE t SPLIT AT (x, y)` becomes `ALTER TABLE t SPLIT AT VALUES (x, y)`. Part of cockroachdb#13665, implements part of RFC cockroachdb#14146.
Checklist for implementing the RFC in #14146:
|
Plumbing an `AdminChangeReplicas` request. Refactoring the `testcluster` code to issue this operation rather than calling into the `Replica` directly. This request will be used to implement `SCATTER` and `TESTING_RELOCATE` (cockroachdb#13665).
Plumbing an `AdminChangeReplicas` request. Refactoring the `testcluster` code to issue this operation rather than calling into the `Replica` directly. This request will be used to implement `SCATTER` and `TESTING_RELOCATE` (cockroachdb#13665).
Plumbing an `AdminChangeReplicas` request. Refactoring the `testcluster` code to issue this operation rather than calling into the `Replica` directly. This request will be used to implement `SCATTER` and `TESTING_RELOCATE` (cockroachdb#13665).
Quoting an important suggestion by @petermattis:
|
|
Actually, reopening to track implementation of SCATTER. @petermattis: regarding your suggestion above: is the idea that we add this to the |
My idea was only half-baked. Yes, I was suggesting an admin API endpoint. But perhaps |
Got it. Yeah, I think that even if we have an admin endpoint for other reasons, it's probably easier if we provide an internal interface for |
Initial simplistic implementation of SCATTER: we pick three random stores in the cluster for each range. The intention is to later replace this with a complete implementation which gets replica stores recommendations according to the zone config. Updates cockroachdb#13665.
Initial simplistic implementation of SCATTER: we pick three random stores in the cluster for each range. The intention is to later replace this with a complete implementation which gets replica stores recommendations according to the zone config. Updates cockroachdb#13665.
This issue tracks adding better testing infrastructure for DistSQL. In a gist, we want to be able to easily set up tests like those in TestDistSQLPlanner from logic test files.
Once available, we should switch over these tests to the new infrastructure.
The two major things we want:
SPLIT AT
with replica information for the new split and/or use a special column in tables to determine split points. Also switchSPLIT AT
to a function so that we can feed it from a subquery.GENERATE_SERIES
) but we at least need to develop some sample patterns.CC @andreimatei
The text was updated successfully, but these errors were encountered: