Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix possibly missing parent update when setting null values #5334

Merged
merged 1 commit into from
Mar 17, 2022

Conversation

jedelbo
Copy link
Contributor

@jedelbo jedelbo commented Mar 17, 2022

What, How & Why?

Fixes #5283

The result is that a cluster is not updated, but still points to a location in the slab area that has been freed and hence has some parts overwritten. This happens when an already writable cluster array has to expand on width when a property is set to null. This can happen when the file grows towards 2 Gb in size and the table has more than 16 columns, but perhaps also when the file grows towards 32 kb and the table has more than 32 columns, but it has to be investigated further.

Also potentially fixes other corruption bugs.

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (very hard to create the conditions for this to trigger)

@jedelbo jedelbo requested a review from finnschiermer March 17, 2022 08:19
@cla-bot cla-bot bot added the cla: yes label Mar 17, 2022
Copy link
Contributor

@finnschiermer finnschiermer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grrrr8 !!!

@jedelbo jedelbo force-pushed the je/fix-mising-parent-update branch from 0711d4e to 6b89fea Compare March 17, 2022 08:53
@jedelbo jedelbo merged commit 73ca717 into master Mar 17, 2022
@jedelbo jedelbo deleted the je/fix-mising-parent-update branch March 17, 2022 09:27
@@ -1774,7 +1774,7 @@ inline void nullify_set(Obj& obj, ColKey origin_col_key, T target)

void Obj::nullify_link(ColKey origin_col_key, ObjLink target_link)
{
ensure_writeable();
// ensure_writeable();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jedelbo shouldn't this be deleted or an explanation added?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be deleted. Just forgot.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updating embedded property results in KeyNotFound exception
3 participants