Skip to content

Conversation

cortinico
Copy link
Contributor

Summary:

This is a collection of picks for the 0.81 branch only:

Changelog:

[INTERNAL] - Implement mechanism to prevent ShadowTree commit exhaustion

Test Plan:

CI

rubennorte and others added 3 commits July 21, 2025 15:28
Summary:
Pull Request resolved: #52645

Changelog: [internal]

This add a new feature flag to test a fix for #51870

Reviewed By: cortinico, sammy-SC

Differential Revision: D78418504

fbshipit-source-id: 2792026b6936393d196fd1e3162f8b2c61a38ed6
…2681)

Summary:
Pull Request resolved: #52681

Changelog: [internal]

In the original change I made in D78418504 / #52645 I made 2 mistakes:
1. Used a lock that would try to re-lock on itself without it being recursive (which would cause a deadlock). I didn't see that because when testing I didn't hit the case where we'd exhaust the options.
2. The `attemps` variable wasn't incremented, so we never left the loop in case of exhaustion.

This propagates a flag to `tryCommit` to indicate we've already locked on the commitMutex_ so we don't need to lock again in that case and increases the counter, fixing the issue.

Reviewed By: cortinico

Differential Revision: D78497509

fbshipit-source-id: 546ccd0c84aed5416ce1aef47d79419b4fe06f66
#52709)

Summary:
Pull Request resolved: #52709

We want to make user for folks in OSS to try
`preventShadowTreeCommitExhaustionWithLocking`. Therefore I'm updating the OSS
release channel for this flag to experimental.

Changelog:
[Internal] [Changed] - Rollout `preventShadowTreeCommitExhaustionWithLocking` in experimental

Reviewed By: rubennorte

Differential Revision: D78558655

fbshipit-source-id: 02a9d216c7b2f8f7bdc1340213f82b70c5692dc7
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 21, 2025
@cortinico cortinico changed the base branch from main to 0.81-stable July 21, 2025 14:29
@cortinico cortinico requested a review from motiz88 July 21, 2025 14:30
@motiz88 motiz88 merged commit dd12edf into 0.81-stable Jul 21, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner Pick Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants