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
importccl: support IMPORT in mixed-version cluster #57382
Conversation
7d36c2b
to
a5051ab
Compare
I believe that this also fixes #57503. Will add tests. |
99a81cc
to
5a15125
Compare
This commit adds support for running IMPORT in a mixed-version cluster. Note, that it does not add support for running an IMPORT during the upgrade of a node however. The IMPORT job would need to be restarted in that case. Release note (sql change): Add support for running IMPORT in a mixed-version cluster.
Before supporting mixed-versions runs of IMPORT this test would fail with: ``` importing fixture: importing table history: pq: version mismatch in flow request: 42; this node accepts 35 through 36 ``` It now succeeds. Note that this test exercises that IMPORT can run in a mixed-version cluster, but not during an upgrade of nodes in the cluster. Release note: None
5a15125
to
28487c6
Compare
This commit adds a roachtest that runs an IMPORT on a cluster with a decommissioned node. Release note: None
Updated with some roachtests that exercise running import in mixed-version clusters and clusters with a decommissioned node. |
TFTR! |
Build succeeded: |
It doesn't look like this needs backporting to versions before 20.2. It looks like https://github.com/cockroachdb/cockroach/blob/release-20.1/pkg/sql/distsql_physical_planner.go#L1064 never populates the NodeAddresses map for unhealthy nodes so https://github.com/cockroachdb/cockroach/blob/release-20.1/pkg/sql/distsql_plan_csv.go#L123 just did the right thing before |
This commit adds support for running IMPORT in a mixed-version cluster.
Note, that it does not add support for running an IMPORT during the
upgrade of a node however. The IMPORT job would need to be restarted in
that case.
Release note (sql change): Add support for running IMPORT in a
mixed-version cluster.