Skip to content

Fix deadlock - #2292

Merged
miratepuffin merged 6 commits into
0.16from
fix-deadlock
Sep 30, 2025
Merged

Fix deadlock#2292
miratepuffin merged 6 commits into
0.16from
fix-deadlock

Conversation

@ljeub-pometry

Copy link
Copy Markdown
Collaborator

What changes were proposed in this pull request?

  • Use separate thread pool for write operations on graphs to avoid potential deadlocks
  • Improved error reporting for batch failures

Why are the changes needed?

Deadlocks observed in the server

Does this PR introduce any user-facing change? If yes is this documented?

no

How was this patch tested?

tests

Are there any further changes required?

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'GraphQL Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 00ea467 Previous: db0c971 Ratio
addNode 0 req/s 1404 req/s +∞

This comment was automatically generated by workflow using github-action-benchmark.

@miratepuffin
miratepuffin changed the base branch from 0.16 to master September 30, 2025 11:26
@miratepuffin
miratepuffin changed the base branch from master to 0.16 September 30, 2025 11:26
@miratepuffin
miratepuffin merged commit e0950f4 into 0.16 Sep 30, 2025
1 check passed
@miratepuffin
miratepuffin deleted the fix-deadlock branch September 30, 2025 11:26
@miratepuffin
miratepuffin restored the fix-deadlock branch September 30, 2025 11:27
miratepuffin added a commit that referenced this pull request Oct 10, 2025
* Fix deadlock (#2292)

* make a write pool

* use blocking_write for all graph mutations

* enable tests

* chore: apply tidy-public auto-fixes

* fix the recursive read deadlock

* chore: apply tidy-public auto-fixes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Release v0.16.2 (#2299)

chore: Release

Co-authored-by: Pometry-Team <ben.steer@pometry.com>

* Deadlock fixes and concurrency configuration (#2313)

* make all the rw_lock.read be read_recursive

* fixes deadlocks

* fixes Python deadlock

* add a sempahore in front of the graphql query execution

* sort pr and add env variable to be able to set concurrency limit

* add rwlock in the middleware

* loop when taking the PairEntryMut lock

* make rwlock optional

* chore: apply tidy-public auto-fixes

* rename env var for concurrency limit

---------

Co-authored-by: Fabian Murariu <murariu.fabian@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: apply tidy-public auto-fixes

---------

Co-authored-by: ljeub-pometry <97447091+ljeub-pometry@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pometry-Team <ben.steer@pometry.com>
Co-authored-by: Pedro Rico Pinazo <ricopinazo@gmail.com>
Co-authored-by: Fabian Murariu <murariu.fabian@gmail.com>
@ljeub-pometry
ljeub-pometry deleted the fix-deadlock branch November 20, 2025 08:32
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.

2 participants