Skip to content

engine: error out when timestamp.WallTime < 0 #21112

@tbg

Description

@tbg

#21070 found that we don't prohibit MVCC writes at negative timestamps. Such writes permanently corrupt the MVCC history and we should prohibit them.

Once that is done, TestMVCCStatsRandomized should be changed to allow negative timestamps (simply to have coverage for this error case).

Metadata

Metadata

Assignees

Labels

A-kv-transactionsRelating to MVCC and the transactional model.C-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.E-easyEasy issue to tackle, requires little or no CockroachDB experiencehelp wantedHelp is requested / needed by the one who filed the issue to fix it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions