-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.15.0] [#13037] DocDB: Fix repacking rows after alter table
Summary: It could happen that a packed row is already near the size limit, and then user adds new columns to the table. Since each column uses 4 bytes in a packed row, such row could grow over the limit after repacking. Previously we assumed that repacking row could not make it larger that the limit, and there is a check for that. But clearly it is not so in the scenario above. Changed the code to force-repack a row even if the repacked row overflows the specified limit, so we could have rows larger than the limit without crashing. It should not be an issue, since we expect it to happen quite rarely in an actual DB. And large packed rows are just less effective, but they still work fine. Original diff: b608dda/D17904 Test Plan: PgPackedRowTest.PackOverflow Reviewers: mbautin, rthallam Reviewed By: mbautin, rthallam Subscribers: ybase, bogdan Differential Revision: https://phabricator.dev.yugabyte.com/D18012
- Loading branch information
Showing
6 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters