-
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
clusterversion: tracking issue for improvements and cleanup #112629
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Comments
RaduBerinde
added
the
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
label
Oct 18, 2023
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Oct 30, 2023
This commit cleans up the code and constants in `cockroach_versions.go`: - we separate out the "dev offset" code and improve the documentation; - we replace the key-to-version slice with a table (array). This makes the declaration much cleaner and makes the lookup easier. - we replace `ByKey()` with a method, to make the call site less messy; e.g. `clusterversion.ByKey(clusterversion.V23_2)` becomes `clusterversion.V23_2.Version()`; - we deprecate `BinaryMinSupportedVersionKey` in favor of `MinSupported`; - we deprecate `BinaryVersionKey` in favor of `Latest`; - we remove `roachpb.Version` "constants" in favor of using the `Version()` method. Informs: cockroachdb#112629 Release note: None
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Oct 31, 2023
Rename "binary version" to "latest version" and "binary min supported version" to "min supported version" in `clusterversion.Handle` and related code. Informs: cockroachdb#112629 Release note: None
Would #113385 be in scope for this work? |
Sure, I added it to the list. |
Closed
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 2, 2023
This commit cleans up the code and constants in `cockroach_versions.go`: - we separate out the "dev offset" code and improve the documentation; - we replace the key-to-version slice with a table (array). This makes the declaration much cleaner and makes the lookup easier. - we replace `ByKey()` with a method, to make the call site less messy; e.g. `clusterversion.ByKey(clusterversion.V23_2)` becomes `clusterversion.V23_2.Version()`; - we deprecate `BinaryMinSupportedVersionKey` in favor of `MinSupported`; - we deprecate `BinaryVersionKey` in favor of `Latest`; - we remove `roachpb.Version` "constants" in favor of using the `Version()` method. Informs: cockroachdb#112629 Release note: None
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 2, 2023
This commit cleans up the code and constants in `cockroach_versions.go`: - we separate out the "dev offset" code and improve the documentation; - we replace the key-to-version slice with a table (array). This makes the declaration much cleaner and makes the lookup easier. - we replace `ByKey()` with a method, to make the call site less messy; e.g. `clusterversion.ByKey(clusterversion.V23_2)` becomes `clusterversion.V23_2.Version()`; - we deprecate `BinaryMinSupportedVersionKey` in favor of `MinSupported`; - we deprecate `BinaryVersionKey` in favor of `Latest`; - we remove `roachpb.Version` "constants" in favor of using the `Version()` method. Informs: cockroachdb#112629 Release note: None
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 3, 2023
This commit cleans up the code and constants in `cockroach_versions.go`: - we separate out the "dev offset" code and improve the documentation; - we replace the key-to-version slice with a table (array). This makes the declaration much cleaner and makes the lookup easier. - we replace `ByKey()` with a method, to make the call site less messy; e.g. `clusterversion.ByKey(clusterversion.V23_2)` becomes `clusterversion.V23_2.Version()`; - we deprecate `BinaryMinSupportedVersionKey` in favor of `MinSupported`; - we deprecate `BinaryVersionKey` in favor of `Latest`; - we remove `roachpb.Version` "constants" in favor of using the `Version()` method. Informs: cockroachdb#112629 Release note: None
craig bot
pushed a commit
that referenced
this issue
Nov 3, 2023
113314: clusterversion: cockroach versions cleanup r=RaduBerinde a=RaduBerinde This commit cleans up the code and constants in `cockroach_versions.go`: - we separate out the "dev offset" code and improve the documentation; - we replace the key-to-version slice with a table (array). This makes the declaration much cleaner and makes the lookup easier. - we replace `ByKey()` with a method, to make the call site less messy, e.g. `clusterversion.ByKey(clusterversion.V23_2)` becomes `clusterversion.V23_2.Version()`; - we deprecate `BinaryMinSupportedVersionKey` in favor of `MinSupported`; - we deprecate `BinaryVersionKey` in favor of `Latest`; - we remove `roachpb.Version` "constants" in favor of using the `Version()` method. Informs: #112629 Release note: None Co-authored-by: Radu Berinde <[email protected]>
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 3, 2023
Rename "binary version" to "latest version" and "binary min supported version" to "min supported version" in `clusterversion.Handle` and associated code. Informs: cockroachdb#112629 Release note: None
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 3, 2023
Rename "binary version" to "latest version" and "binary min supported version" to "min supported version" in `clusterversion.Handle` and associated code. Informs: cockroachdb#112629 Release note: None
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 3, 2023
Rename "binary version" to "latest version" and "binary min supported version" to "min supported version" in `clusterversion.Handle` and associated code. Informs: cockroachdb#112629 Release note: None
craig bot
pushed a commit
that referenced
this issue
Nov 3, 2023
113727: clusterversion: rename latest/min supported versions in Handle r=RaduBerinde a=RaduBerinde Rename "binary version" to "latest version" and "binary min supported version" to "min supported version" in `clusterversion.Handle` and associated code. This change is mechanical and is not intended to have any functional changes. Informs: #112629 Release note: None Co-authored-by: Radu Berinde <[email protected]>
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 4, 2023
This commit adds a built-in that resolves dev versions (e.g. 23.2-10) to the corresponding release series (e.g. 24.1). This allows us to clean up some tests and make them stable - they will no longer need to be adjusted when minting a release. Informs: cockroachdb#112629 Release note: None
craig bot
pushed a commit
that referenced
this issue
Nov 13, 2023
114306: upgrade: remove pre-23.1 upgrades r=RaduBerinde a=RaduBerinde This commit removes all non-permanent 22.2->23.1 upgrades, which are no longer necessary. Informs: #112629 Epic: none Release note: None Co-authored-by: Radu Berinde <[email protected]>
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 14, 2023
In this commit we rename files implementing permanent upgrades to start with `permanent_` and files implementing 23.2 upgrades to start with `v23_2_`. This will make it easier to remove deprecated upgrades later. Informs: cockroachdb#112629 Release note: None
craig bot
pushed a commit
that referenced
this issue
Nov 14, 2023
114308: upgrades: reorganize files r=RaduBerinde a=RaduBerinde This PR is only for the top commit (it is on top of #114306). #### upgrades: reorganize files In this commit we rename files implementing permanent upgrades to start with `permanent_` and files implementing 23.2 upgrades to start with `v23_2_`. This will make it easier to remove deprecated upgrades later. Informs: #112629 Release note: None Co-authored-by: Radu Berinde <[email protected]>
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 29, 2023
This commit adds a `README.md` file which contains runbooks for advancing versions. Informs: cockroachdb#112629 Release note: None
craig bot
pushed a commit
that referenced
this issue
Nov 29, 2023
115208: clusterversion: remove ByKey r=RaduBerinde a=RaduBerinde Remove `ByKey`, replacing usage with `.Version()`. Epic: none Release note: None Informs #112629. 115209: roachtest: bump max latency to 5 mins on c2c/weekly/kv0 r=dt a=msbutler This patch prevents the roachtest from failing on a temporary latency spike of 2 minutes. A 5 minute latency spike likely indicates something is wrong in the system. Fixes: #115069 Release note: none Co-authored-by: Radu Berinde <[email protected]> Co-authored-by: Michael Butler <[email protected]>
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 29, 2023
This commit adds a `README.md` file which contains runbooks for advancing versions. Informs: cockroachdb#112629 Release note: None
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 30, 2023
This change concerns cluster versions during upgrade. When starting an upgrade from e.g. 23.1 to 23.2, we start with the cluster version 23.1 and then we go through a sequence of internal versions associated with various upgrade steps. These versions are presented as `23.1-x`, e.g. `23.1-8`. This formatting doesn't make it clear what this version represents. It can also be confusing - `23.1-8` looks very close to `23.1.8` which might be an actual CockroachDB version. This change renames versions during upgrade: `23.1-upgrading-to-23.2-step-008`. The internal part is always formatted to three digits (this is intended to reduce the chance of confusing the internal part to a patch release). Informs: cockroachdb#112629 Release note (general change): Versions during upgrades are renamed, for example `23.1-8` is now `23.1-upgrading-to-23.2-step-008`.
craig bot
pushed a commit
that referenced
this issue
Nov 30, 2023
115213: clusterversion: add runbooks r=RaduBerinde a=RaduBerinde This commit adds a `README.md` file which contains runbooks for advancing versions. Informs: #112629 Release note: None Rendered file can be viewed here: https://github.com/RaduBerinde/cockroach/blob/version-doc/pkg/clusterversion/README.md 115262: admission: add extra info when deadline reached in flowcontrol r=sumeerbhola a=aadityasondhi This patch improves the error message when context deadline is reached in flowcontrol wait queue. It includes priority, wait duration, stream. Informs: #113990 Release note: None 115347: lease: skip TestRangefeedUpdatesHandledProperlyInTheFaceOfRaces under race r=rafiss a=rafiss fixes #114324 Release note: None Co-authored-by: Radu Berinde <[email protected]> Co-authored-by: Aaditya Sondhi <[email protected]> Co-authored-by: Rafi Shamim <[email protected]>
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Nov 30, 2023
This change concerns cluster versions during upgrade. When starting an upgrade from e.g. 23.3 to 24.1, we start with the cluster version 23.2 and then we go through a sequence of internal versions associated with various upgrade steps. These versions are presented as `23.2-x`, e.g. `23.2-8`. This formatting doesn't make it clear what this version represents. It can also be confusing - `23.2-8` looks very close to `23.2.8` which might be an actual CockroachDB version. This change renames versions during upgrade: `23.2-upgrading-to-24.1-step-008`. The internal part is always formatted to three digits (this is intended to reduce the chance of confusing the internal part to a patch release). Informs: cockroachdb#112629 Release note (general change): Versions during upgrades are renamed, for example `23.2-8` is now `23.2-upgrading-to-24.1-step-008`.
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Dec 1, 2023
This change concerns cluster versions during upgrade. When starting an upgrade from e.g. 23.3 to 24.1, we start with the cluster version 23.2 and then we go through a sequence of internal versions associated with various upgrade steps. These versions are presented as `23.2-x`, e.g. `23.2-8`. This formatting doesn't make it clear what this version represents. It can also be confusing - `23.2-8` looks very close to `23.2.8` which might be an actual CockroachDB version. This change renames versions during upgrade: `23.2-upgrading-to-24.1-step-008`. The internal part is always formatted to three digits (this is intended to reduce the chance of confusing the internal part to a patch release). Informs: cockroachdb#112629 Release note (general change): Versions during upgrades are renamed, for example `23.2-8` is now `23.2-upgrading-to-24.1-step-008`.
RaduBerinde
added a commit
to RaduBerinde/cockroach
that referenced
this issue
Dec 1, 2023
This change concerns cluster versions during upgrade. When starting an upgrade from e.g. 23.3 to 24.1, we start with the cluster version 23.2 and then we go through a sequence of internal versions associated with various upgrade steps. These versions are presented as `23.2-x`, e.g. `23.2-8`. This formatting doesn't make it clear what this version represents. It can also be confusing - `23.2-8` looks very close to `23.2.8` which might be an actual CockroachDB version. This change renames versions during upgrade: `23.2-upgrading-to-24.1-step-008`. The internal part is always formatted to three digits (this is intended to reduce the chance of confusing the internal part to a patch release). Informs: cockroachdb#112629 Release note (general change): Versions during upgrades are renamed, for example `23.2-8` is now `23.2-upgrading-to-24.1-step-008`.
craig bot
pushed a commit
that referenced
this issue
Dec 1, 2023
113999: engineccl: Add benchmark for ctr_stream encryption r=sumeerbhola a=bdarnell Start measuring performance of this code in anticipation of improving it. Epic: none Release note: None 115223: clusterversion: change string for upgrade versions r=RaduBerinde a=RaduBerinde #### clusterversion: move ReleaseSeries functionality to roacphb.Version This change moves the implementation of `clusterversion.Key.ReleaseSeries()` to `roachpb`. We now use a hardcoded map of sucessor versions. Epic: none Release note: None #### clusterversion: change string for upgrade versions This change concerns cluster versions during upgrade. When starting an upgrade from e.g. 23.3 to 24.1, we start with the cluster version 23.2 and then we go through a sequence of internal versions associated with various upgrade steps. These versions are presented as `23.2-x`, e.g. `23.2-8`. This formatting doesn't make it clear what this version represents. It can also be confusing - `23.2-8` looks very close to `23.2.8` which might be an actual CockroachDB version. This change renames versions during upgrade: `23.2-upgrading-to-24.1-step-008`. The internal part is always formatted to three digits (this is intended to reduce the chance of confusing the internal part to a patch release). Informs: #112629 Release note (general change): Versions during upgrades are renamed, for example `23.2-8` is now `23.2-upgrading-to-24.1-step-008`. Co-authored-by: Ben Darnell <[email protected]> Co-authored-by: Radu Berinde <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
[numKeys]roachpb.Version
) for cleaner definitions (and fast lookup)ByKey()
in favor of aKey.Version()
method (to avoid the annoyingclusterversion.ByKey(clusterversion.VFoo)
DevOffset
code to a different file, improve documentationBinaryVersion
toLatest
,MinBinarySupportedVersion
toMinSupported
VersionHandle
renamebinaryVersion
tomaxVersion
andbinaryMinSupportedVersion
tominVersion
TestingBinaryVersion
etcRework scheme for intermediary versions: clusterversion: rework scheme for intermediary versions #112708[too disruptive]MinSupported
unless skipping is enabled via env var; update upgrade roachtestsAdd a special nightly build that runs unit tests with[not worth triaging test failures from flaky tests]MinSupported
bumped up (using a build tag)pkg/sql/catalog/bootstrap/data/
)IsActive
hot path (clusterversion: proto Unmarshal on each version check #113385)And, after a good chunk of these are done:
md
file in the repo.Jira issue: CRDB-32524
The text was updated successfully, but these errors were encountered: