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

avoid part path collisions with mem addr entropy #13648

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

kasey
Copy link
Contributor

@kasey kasey commented Feb 21, 2024

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

We have observed blob sidecars being truncated. My theory is that this is due to a race when 2 of the same blob sidecar are concurrently written and the second calls Create, which opens the same path with O_TRUNC.

@kasey kasey requested a review from a team as a code owner February 21, 2024 18:42
saolyn
saolyn previously approved these changes Feb 21, 2024
Copy link
Contributor

@saolyn saolyn left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@saolyn saolyn left a comment

Choose a reason for hiding this comment

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

Ah nvm, looks like tests are failing

prestonvanloon
prestonvanloon previously approved these changes Feb 21, 2024
@prestonvanloon prestonvanloon force-pushed the avoid-sidecar-truncation branch from ae6ae9f to 5f226b9 Compare February 21, 2024 21:35
@kasey kasey enabled auto-merge February 21, 2024 21:57
@kasey kasey added this pull request to the merge queue Feb 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 21, 2024
@prestonvanloon prestonvanloon added this pull request to the merge queue Feb 21, 2024
Merged via the queue into develop with commit 4c66e4d Feb 21, 2024
17 checks passed
@prestonvanloon prestonvanloon deleted the avoid-sidecar-truncation branch February 21, 2024 22:57
prestonvanloon pushed a commit that referenced this pull request Feb 21, 2024
* avoid part path collisions with mem addr entropy

* Regression test

---------

Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
(cherry picked from commit 4c66e4d)
github-merge-queue bot pushed a commit that referenced this pull request Mar 7, 2024
* blob save: add better data checking for empty blob issues (#13647)

(cherry picked from commit daad29d)

* avoid part path collisions with mem addr entropy (#13648)

* avoid part path collisions with mem addr entropy

* Regression test

---------

Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
(cherry picked from commit 4c66e4d)

* fix error race

---------

Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
Co-authored-by: kasey <489222+kasey@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants