You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
151563: sql: fix "rows affected" for deleteRange with multiple column families r=yuzefovich a=yuzefovich
In 807c1f2 we began paginating DelRange requests that are used by the deleteRangeNode. Namely, we now delete at most 600 keys via a single BatchRequest. That change introduced a minor bug that when we have multiple column families AND the pagination stops in the middle of a SQL row, then we would count that row twice for the purposes of "rows affected" counter. This bug is now fixed by maintaining the row prefix across BatchRequests.
Fixes: #151505.
Release note (bug fix): CockroachDB could previously elevate the number of rows deleted on table with multiple column families in some cases. The bug has been present since 19.2 version and is now fixed. Note that the data was deleted correctly, just "rows affected" number was wrong.
Co-authored-by: Yahor Yuzefovich <[email protected]>
0 commit comments