8000 Tags · cockroachdb/cockroach · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

v25.2.29

Toggle v25.2.29's commit message
release-25.2.29-rc: bump version to v25.2.29

Hot fix v25.2.28 took this release's number, so REL-5864 moved to v25.2.29.

Release note: None
Epic: None
Release justification: non-production (release infra) change.

v25.2.28

Toggle v25.2.28's commit message
kvcoord: set ResumeSpan on unprocessed point requests

Previously, if batch execution was stopped early in dist sender because
of MaxSpanRequestKeys or TargetBytes, the returned batch could have
non-Get point-requests requests that were not processed but which didn't
have a resume-span sent.

The resume span was not set since SQL does not create batches with a mix
of read and write requests with MaxSpanRequestKeys or TargetBytes set;
however, KVNemesis will soon create such batches, so we'd like to handle
them correctly. Further, setting the ResumeSpan allows the
txnWriteBuffer to double-check that all writes were processed just in
case a bug results in the write buffer producing a batch that is
partially processed.

The intent resolver does create such batches: it sends point
`ResolveIntent` requests in batches with a 4 MiB `TargetBytes`, grouped by
the range ID in the node's range cache. If the range split and the node
doesn't know about it yet, a batch can span both new ranges. When
resolving the left-hand intents uses up the budget, the right-hand
requests are never sent and used to come back without a `ResumeSpan`. The
intent resolver took that as success and garbage collected the
transaction record, so a later reader of the right-hand intents treated
the committed transaction as aborted and removed its writes.
`TestCommittedWritesSurviveSplitWithStaleRangeCache` is a regression
test for this case.

Fixes: #153357
Informs: cockroachlabs/cockroach#16173

Release note (bug fix): Fixed a bug that could cause a committed
transaction to lose some of its writes. If a range split while a
transaction had writes on both sides of the split, and the node cleaning
up the transaction's intents did not yet know about the split, the writes
on the right-hand side could be left unresolved while the transaction
record was removed. A later reader then treated those writes as aborted
and removed them. With SQL this could show up as secondary index entries
without a matching primary index row, or as rows reverting to an earlier
version. The bug required values of several MiB and was present since
v23.1.0.

(cherry picked from commit beeb29a)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

v26.2.12

Toggle v26.2.12's commit message
release-26.2.12-rc: bump version to v26.2.12

Hot fix v26.2.11 took this release's number, so REL-5832 moved to v26.2.12.

Release note: None
Epic: None
Release justification: non-production (release infra) change.

v26.2.11

Toggle v26.2.11's commit message
kvserver: disable value checksum verification by default

Turn server.consistency_check.value_checksum_verification.enabled off by
default on this release branch, so that the backported verification
only runs where an operator enables it.

- Default the setting to false.
- Check in TestCheckConsistencyValueChecksums that nothing is counted by
  default, and enable the setting before expecting failures.

Epic: none

Release note (ops change): The value checksum verification in
consistency checks is disabled by default. Enable it with SET CLUSTER
SETTING server.consistency_check.value_checksum_verification.enabled =
true.

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>

v25.4.21

Toggle v25.4.21's commit message
release-25.4.21-rc: bump version to v25.4.21

Hot fix v25.4.20 took this release's number, so REL-5848 moved to v25.4.21.

Release note: None
Epic: None
Release justification: non-production (release infra) change.

v25.4.20

Toggle v25.4.20's commit message
kvserver: disable value checksum verification by default

Turn server.consistency_check.value_checksum_verification.enabled off by
default on this release branch, so that the backported verification
only runs where an operator enables it.

- Default the setting to false.
- Check in TestCheckConsistencyValueChecksums that nothing is counted by
  default, and enable the setting before expecting failures.

Epic: none

Release note (ops change): The value checksum verification in
consistency checks is disabled by default. Enable it with SET CLUSTER
SETTING server.consistency_check.value_checksum_verification.enabled =
true.

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>

v25.2.27

Toggle v25.2.27's commit message
batcheval: clear stale IgnoredSeqNums when PushTxn forwards the epoch

PushTxn returns the persisted transaction record, if it exists, as
part of its reply. When the pushee's TxnMeta in the pusher's request
is from a newer epoch, PushTxn advances only the Epoch of the returned
transaction, leaving the IgnoredSeqNums from the _previous_ epoch.

If the pusher then attempts to resolve the intent using the returned
transaction record, it may erroneously remove a write based on the
incorrect IgnoredSeqNums.

Resolves: #175819
Epic: none

Release note (bug fix): Fixed a bug where a committed transaction
could silently lose writes. This could happen when (1) a transaction
rolled back to a savepoint before its first heartbeat, (2) was then
restarted at a higher epoch, and (3) was then successfully pushed and
had one of its writes resolved by a contending transaction. An example
of a transaction that would satisfy (1) and (2) is an explicit READ
COMMITTED transaction whose first statement is a write or locking
read that hits more than max_retries_for_read_committed retriable
errors and executes for more than 1 second.

v26.2.10

Toggle v26.2.10's commit message
scbackup: settle restored schema changes that depend on unrestored in…

…dexes

RESTORE brings back data only for public indexes, but it resumes an
in-flight declarative schema change with its saved statuses. When those
statuses claim a non-public index holds data, the restored job promotes
or revives an empty index and loses rows or index entries.

Such jobs are now settled: the parts of the schema change that were
public at backup time are kept and the rest are dropped. The settled
state is marked as a rollback in progress, so the job runs its remaining
stages in the reverting state and ends as failed. A rollback is a no-op
on that state, so neither CANCEL JOB nor a job error can reverse it, on
any binary and across another backup and restore. A settled state the
planner rejects fails the RESTORE. Schema-only restores and other
in-flight schema changes resume as before.

A settled job's description starts with "settled to state at backup
time:". sql.schemachanger.settle_restored_schema_changes.enabled turns
settling off for future restores.

The sctest backup harness requires a settled restore job to end as
failed, with no schema changer state or invalid descriptors left behind.

Fixes: cockroachlabs/cockroach#13378
Epic: none

Release note (bug fix): Restoring a backup taken while a schema change
that rebuilds an index (such as ALTER PRIMARY KEY or ALTER COLUMN TYPE)
was running could lose all rows of a table or entries of an index. The
restored table now keeps the parts of the schema change that were
visible when the backup was taken and drops the rest. The restored
schema change job is reported as failed, and its description starts with
"settled to state at backup time:". The schema change may be partially
applied: re-run it, and re-create any index it was rebuilding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

v25.4.19

Toggle v25.4.19's commit message
scbackup: settle restored schema changes that depend on unrestored in…

…dexes

RESTORE brings back data only for public indexes, but it resumes an
in-flight declarative schema change with its saved statuses. When those
statuses claim a non-public index holds data, the restored job promotes
or revives an empty index and loses rows or index entries.

Such jobs are now settled: the parts of the schema change that were
public at backup time are kept and the rest are dropped. The settled
state is marked as a rollback in progress, so the job runs its remaining
stages in the reverting state and ends as failed. A rollback is a no-op
on that state, so neither CANCEL JOB nor a job error can reverse it, on
any binary and across another backup and restore. A settled state the
planner rejects fails the RESTORE. Schema-only restores and other
in-flight schema changes resume as before.

A settled job's description starts with "settled to state at backup
time:". sql.schemachanger.settle_restored_schema_changes.enabled turns
settling off for future restores.

The sctest backup harness requires a settled restore job to end as
failed, with no schema changer state or invalid descriptors left behind.

Fixes: cockroachlabs/cockroach#13378
Epic: none

Release note (bug fix): Restoring a backup taken while a schema change
that rebuilds an index (such as ALTER PRIMARY KEY or ALTER COLUMN TYPE)
was running could lose all rows of a table or entries of an index. The
restored table now keeps the parts of the schema change that were
visible when the backup was taken and drops the rest. The restored
schema change job is reported as failed, and its description starts with
"settled to state at backup time:". The schema change may be partially
applied: re-run it, and re-create any index it was rebuilding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

v25.2.26

Toggle v25.2.26's commit message
scbackup: keep columns of removed indexes when settling on 25.2

On release-25.2, hash-sharded ALTER PRIMARY KEY gives the shard column
of the new primary index's temporary index a PUBLIC target instead of
TRANSIENT_ABSENT. The column stays PUBLIC after the temporary index is
removed. When a backup taken in that window is settled on restore,
settling asks to remove the column from the missing index. The removal
fails with a retryable error, so the settled job stays in the reverting
state forever.

Settling now leaves a column of an already removed index at its target.
#146726 fixed the target in 25.3 as part of a
larger feature that is not backported, so this commit is 25.2 only.

Informs: cockroachlabs/cockroach#13378
Epic: none

Release note: None

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0