Skip to content

Commit

Permalink
Merge pull request #19009 from cockroachdb/a131639_followup_2
Browse files Browse the repository at this point in the history
Followups to a131639
  • Loading branch information
mdlinville authored Oct 11, 2024
2 parents b488174 + 4e9b6c2 commit b44031b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/current/advisories/a131639.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,23 +89,22 @@ For example, if you suspect that a row in `my_table` with primary key `pk=1` and
~~~ sql
BEGIN AS OF SYSTEM TIME '-10s';
SELECT count(*) FROM my_table@my_table_pkey WHERE pk = 1;
SELECT count(*) FROM my_table@my_table_a_idx WHERE pk = 1;
SELECT count(*) FROM my_table@my_table_b_idx WHERE pk = 1;
COMMIT;
SELECT count(*) FROM my_table@my_table_a_idx WHERE pk = 1 AND a=2;
SELECT count(*) FROM my_table@my_table_b_idx WHERE pk = 1 AND b=3;
~~~

If any of these queries return different values for `count`, that likely indicates a lost write.

The `AS OF SYSTEM TIME` clauses are added to minimize the impact on foreground traffic.
The `AS OF SYSTEM TIME` clause helps to minimize the impact on foreground traffic.

If you are unsure which rows may have been affected but suspect that your cluster experienced lost writes, please contact the [support team](https://support.cockroachlabs.com).
If you are unsure which rows may have been affected but suspect that your cluster experienced lost writes, contact the [support team](https://support.cockroachlabs.com).

### Repair rows with lost writes

If you experienced lost writes, it is possible to repair rows by re-inserting data. This will generally be easier if you know all the column values that need to be re-inserted. Please contact the [support team](https://support.cockroachlabs.com) for assistance with repairing rows with lost writes.
If you experienced lost writes, it is possible to repair rows by re-inserting data. This will generally be easier if you know all the column values that need to be re-inserted. Contact the [support team](https://support.cockroachlabs.com) for assistance with repairing rows with lost writes.

## Impact

In circumstances where there is a sustained period of disk slowness in the presence of lease transfers, it is possible for some writes in a transaction that straddle multiple ranges to be lost. In cases where these lost writes are not also present on one or more secondary indexes that could allow for reconstructing or repairing the row, these writes could be irrecoverably lost.

Please reach out to the [support team](https://support.cockroachlabs.com) if more information or assistance is needed.
Reach out to the [support team](https://support.cockroachlabs.com) if more information or assistance is needed.

0 comments on commit b44031b

Please sign in to comment.