# Deadlock

A concurrency condition in which two or more threads or processes wait indefinitely for resources held by one another.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Databases Demystified Chapter 5 - Transactions Part 2 | Blog | Fivetran

DevFeed: [Databases Demystified Chapter 5 - Transactions Part 2 | Blog | Fivetran](<https://devfeed.tech/articles/databases-demystified-chapter-5-transactions-part-2-blog-fivetran-140212.md>)

Original publisher: [Read original article](<https://wf.fivetran.com/blog/databases-demystified-transactions-part-2>)

Author: Michael Kaminsky

Published: 2026-11-18T03:38:23Z

Content type: article

Language: en

Sources: [Fivetran Blog](<https://devfeed.tech/sources/fivetran-blog.md>)

Topics: [Transactions](<https://devfeed.tech/topics/transactions.md>), [race-condition](<https://devfeed.tech/topics/race-condition.md>), [acid](<https://devfeed.tech/topics/acid.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [databases](<https://devfeed.tech/tags/databases.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [isolation](<https://devfeed.tech/tags/isolation.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

Database isolation reduces race conditions in concurrent transactions, but higher isolation usually requires more locks and can slow transactions or create contention and deadlocks. The article outlines dirty, non-repeatable, and phantom reads, and ranks common isolation levels from Serializable to Read Uncommitted. Locks can apply to rows, columns, or tables; locking less data can reduce blocking, while deadlocks can occur when transactions hold locks each other needs. Isolation behavior varies between databases, so the article advises checking documentation and testing parallel workloads, including under production-like contention, and balancing data correctness against performance.

### Source excerpt

Learn about the relationship between isolation and concurrency.

## Optimistic Deadlock Handling with Redo Log-Based Speculative Versioning under High Contention

DevFeed: [Optimistic Deadlock Handling with Redo Log-Based Speculative Versioning under High Contention](<https://devfeed.tech/articles/optimistic-deadlock-handling-with-redo-log-based-speculative-versioning-under-high-contention-132676.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.19697>)

Author: Hyejin Yoo, Seongjae Moon, Jonghyeok Park, Viktor Leis, Sang-Won Lee

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [versioning](<https://devfeed.tech/topics/versioning.md>), [transaction-log](<https://devfeed.tech/topics/transaction-log.md>)

Tags: [concurrency-control](<https://devfeed.tech/tags/concurrency-control.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [dependency-graph](<https://devfeed.tech/tags/dependency-graph.md>), [detection](<https://devfeed.tech/tags/detection.md>), [log](<https://devfeed.tech/tags/log.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [oltp](<https://devfeed.tech/tags/oltp.md>), [ordering](<https://devfeed.tech/tags/ordering.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [robust](<https://devfeed.tech/tags/robust.md>), [threads](<https://devfeed.tech/tags/threads.md>), [throughput](<https://devfeed.tech/tags/throughput.md>), [tpc-c](<https://devfeed.tech/tags/tpc-c.md>), [transaction](<https://devfeed.tech/tags/transaction.md>), [transactions](<https://devfeed.tech/tags/transactions.md>), [updates](<https://devfeed.tech/tags/updates.md>), [using](<https://devfeed.tech/tags/using.md>), [version](<https://devfeed.tech/tags/version.md>), [versioning](<https://devfeed.tech/tags/versioning.md>), [waiting](<https://devfeed.tech/tags/waiting.md>)

### AI overview

RCC aims to improve concurrency under high write contention by creating speculative record versions from redo log entries, allowing conflicting transactions to proceed without waiting for predecessors to commit. It tracks dependencies and orders conflicts at access time to ensure serializability, installs updates lazily at commit, and handles aborts by discarding speculative versions. Its optimistic deadlock handling grants locks before asynchronously checking the dependency graph for cycles. RCC-C uses column-level redo logs to avoid record-level false conflicts. The authors report implementation on MySQL, PostgreSQL, and DBx1000; in TPC-C at 128 threads on a 128-core server, RCC achieves up to 3.3x the throughput of state-of-the-art schemes, with further improvement from RCC-C. On high-contention YCSB, RCC remains robust through 128 threads while other schemes degrade beyond 32.

### Source excerpt

arXiv:2607.19697v2 Announce Type: replace Abstract: Modern OLTP engines rely on multi-versioning to eliminate read-write conflicts, yet their concurrency is severely limited by write-write conflicts. With immediate, in-place updates, only one transaction updates a record at a time, and the others wait for it to commit or abort. Conflicting transactions are thus serialized. We propose RCC, a Redo log-based Concurrency Control scheme for high write contention. A transaction updates a record out of place by creating a speculative write version from its redo log entry. With multiple speculative versions per record, conflicting transactions are pipelined without waiting for predecessors to commit. RCC guarantees serializability using lock-based access-time conflict ordering and dependency graph tracking. Updates are installed lazily at commit, so a transaction aborts by discarding its speculative versions. Based on this, RCC introduces two novel techniques. Optimistic deadlock handling decouples deadlock detection from lock acquisition: it grants locks without checking for deadlocks and detects cycles asynchronously in the dependency graph. Columnar RCC (RCC-C) removes record-level false conflicts with column-level redo logs. We implemented RCC on MySQL, PostgreSQL, and DBx1000. In TPC-C at 128 threads on a 128-core server, RCC improves throughput by up to 3.3x over the state-of-the-art schemes, and RCC-C improves it further by avoiding false deadlocks and aborts. On high-contention YCSB, RCC remains robust up to 128 threads, whereas other schemes degrade beyond 32.

## Kubeflow Trainer v2.4: Bringing Workload-Aware Scheduling to TrainJob

DevFeed: [Kubeflow Trainer v2.4: Bringing Workload-Aware Scheduling to TrainJob](<https://devfeed.tech/articles/kubeflow-trainer-v2-4-bringing-workload-aware-scheduling-to-trainjob-122167.md>)

Original publisher: [Read original article](<https://blog.kubeflow.org/kubeflow-trainer-v2.4-release/>)

Author: Shristi, Andrey Velichkevich

Published: 2026-11-06T06:00:00Z

Content type: article

Language: en

Sources: [Kubeflow](<https://devfeed.tech/sources/kubeflow.md>)

Topics: [scheduling](<https://devfeed.tech/topics/scheduling.md>), [distributed-training](<https://devfeed.tech/topics/distributed-training.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [Multi-GPU](<https://devfeed.tech/topics/multi-gpu.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [CUDA](<https://devfeed.tech/topics/cuda.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-ml](<https://devfeed.tech/tags/ai-ml.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-training](<https://devfeed.tech/tags/distributed-training.md>), [gpus](<https://devfeed.tech/tags/gpus.md>), [kubeflow](<https://devfeed.tech/tags/kubeflow.md>), [release](<https://devfeed.tech/tags/release.md>), [scheduling](<https://devfeed.tech/tags/scheduling.md>), [trainer](<https://devfeed.tech/tags/trainer.md>), [v2](<https://devfeed.tech/tags/v2.md>)

### AI overview

Kubeflow Trainer v2.4 adds Workload-Aware Scheduling (WAS) for distributed TrainJobs. The controller creates Kubernetes Workload and PodGroup resources so workers can be admitted as an all-or-nothing gang, avoiding GPUs sitting idle while a job waits for capacity. Runtime configuration can give initializers a basic scheduling policy while GPU workers wait for their own gang, addressing dependency deadlocks. Admins choose one scheduling level per ReplicatedJob: TrainJob level for zone placement, ReplicatedJob level for network-block placement, or Job level for rack placement. In v2.4 these are independent PodGroups, not a nested hierarchy; Job-level groups support at most one replica and require Kubernetes v1.38. CompositePodGroup support is roadmap work, with Kubernetes 1.37 identified as alpha, and would allow nested placement and coordinated groups. Other listed additions include DRA support, per-TrainJob scheduler overrides, multi-slice TPU replicas, secured metrics, and OptimizationJob alpha integrations. The release also changes MPI image behavior and several configuration and upgrade requirements.

### Source excerpt

Imagine launching an AI/ML distributed training job across 64 GPUs. Two frequent problems happen:

## Postgres wait events, now in Query Insights

DevFeed: [Postgres wait events, now in Query Insights](<https://devfeed.tech/articles/postgres-wait-events-now-in-query-insights-89996.md>)

Original publisher: [Read original article](<https://clickhouse.com/blog/postgres-wait-events-query-insights>)

Author: Amog Iska

Published: 2026-10-19T11:15:28Z

Content type: release

Language: en

Sources: [ClickHouse Blog](<https://devfeed.tech/sources/clickhouse-blog.md>)

Topics: [Heroku Postgres](<https://devfeed.tech/topics/heroku-postgres.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>), [Prometheus](<https://devfeed.tech/topics/prometheus.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [Query (disambiguation)](<https://devfeed.tech/topics/query.md>)

Tags: [grafana](<https://devfeed.tech/tags/grafana.md>), [latency](<https://devfeed.tech/tags/latency.md>), [locks](<https://devfeed.tech/tags/locks.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [prometheus](<https://devfeed.tech/tags/prometheus.md>)

### AI overview

ClickHouse Managed Postgres Query Insights now reports wait event metrics, showing what active sessions are waiting on and how wait categories contribute to database load. It adds blocked-session and lock-wait charts, and exposes query, resource, and wait metrics through Prometheus for dashboards and alerting.

### Source excerpt

Query Insights for ClickHouse Managed Postgres now shows what active sessions are waiting on, with wait event breakdowns, blocked-session and lock-wait charts, and the same metrics in Prometheus.

## Concurrency vs Multithreading: What's the Difference?

DevFeed: [Concurrency vs Multithreading: What's the Difference?](<https://devfeed.tech/articles/concurrency-vs-multithreading-what-s-the-difference-87506.md>)

Original publisher: [Read original article](<https://talent500.com/blog/concurrency-vs-multithreading/>)

Author: Kashif Khan

Published: 2026-10-15T02:42:26Z

Content type: tutorial

Language: en

Sources: [Talent500](<https://devfeed.tech/sources/backend-archives-talent500-blog.md>)

Topics: [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [synchronization](<https://devfeed.tech/topics/synchronization.md>), [Declarative programming](<https://devfeed.tech/topics/declarative-programming.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [asynchronous-programming](<https://devfeed.tech/tags/asynchronous-programming.md>), [backend](<https://devfeed.tech/tags/backend.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrency-vs-multithreading](<https://devfeed.tech/tags/concurrency-vs-multithreading.md>), [deadlocks](<https://devfeed.tech/tags/deadlocks.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [parallelism](<https://devfeed.tech/tags/parallelism.md>), [python-threading](<https://devfeed.tech/tags/python-threading.md>), [race-conditions](<https://devfeed.tech/tags/race-conditions.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [thread-pools](<https://devfeed.tech/tags/thread-pools.md>), [thread-safety](<https://devfeed.tech/tags/thread-safety.md>)

### AI overview

This tutorial explains concurrency as the broader way to manage tasks that make progress during overlapping periods, while multithreading is one implementation technique. It contrasts threads with asynchronous programming and parallel execution, provides Python examples, and discusses I/O-bound and CPU-bound workloads, synchronization, thread pools, race conditions, and deadlocks.

### Source excerpt

Understand Concurrency vs Multithreading, including how they differ in task execution, resource sharing, performance, and parallelism. Explore key concepts, practical examples, advantages, limitations, and use cases to determine which approach best suits different software development needs. The post Concurrency vs Multithreading: What's the Difference? appeared first on Talent500 blog.

## Virtual threads changed the calculus for blocking I/O and not for CPU work

DevFeed: [Virtual threads changed the calculus for blocking I/O and not for CPU work](<https://devfeed.tech/articles/virtual-threads-changed-the-calculus-for-blocking-i-o-and-not-for-cpu-work-87574.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/66-virtual-threads-blocking-io-not-cpu/>)

Author: hello@ankit-rana.com

Published: 2026-10-15T00:00:00Z

Content type: article

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [threadpools](<https://devfeed.tech/topics/threadpools.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>)

Tags: [backpressure](<https://devfeed.tech/tags/backpressure.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [database](<https://devfeed.tech/tags/database.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [java](<https://devfeed.tech/tags/java.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [loom](<https://devfeed.tech/tags/loom.md>), [performance](<https://devfeed.tech/tags/performance.md>), [virtual-threads](<https://devfeed.tech/tags/virtual-threads.md>)

### AI overview

The article explains how Java virtual threads improve concurrency for services that spend much of their time waiting on blocking I/O, while providing no benefit for CPU-bound work. It discusses carrier pinning, avoiding virtual-thread pools, and placing concurrency limits at constrained downstream resources.

### Source excerpt

A virtual thread that blocks on I/O unmounts from its carrier and costs nothing while it waits, which makes thread-per-request viable at concurrency levels that would have needed reactive code. It does nothing for CPU bound work, because computation still needs a real core and the carrier pool is sized to the core count. Pooling virtual threads is an anti-pattern since they are cheap to create, and blocking inside a synchronized block pins the carrier, which can deadlock a workload that would have been fine on platform threads.

## Structured Concurrency in Project Loom: Design, Patterns, and a New API

DevFeed: [Structured Concurrency in Project Loom: Design, Patterns, and a New API](<https://devfeed.tech/articles/structured-concurrency-looms-85143.md>)

Original publisher: [Read original article](<https://inside.java/2026/10/12/devoxxbelgium-structured-concurrency/>)

Author: Viktor Klang

Published: 2026-10-12T00:00:00Z

Content type: article

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [programming](<https://devfeed.tech/tags/programming.md>), [project-loom](<https://devfeed.tech/tags/project-loom.md>), [structured-concurrency](<https://devfeed.tech/tags/structured-concurrency.md>)

### AI overview

A Devoxx Belgium session explains how Project Loom's structured concurrency groups related tasks into one unit of work, simplifying cancellation, error handling, and observability. It covers the feature's motivation, design, usage patterns, evolution through preview releases, and an early look at a lower-level API expected to underpin future structured concurrency work.

### Source excerpt

Structured Concurrency is the next major feature from Project Loom. In this session, we will explain the motivation and design of structured concurrency, show how to use it effectively, and discuss the lessons learned as the feature evolved. We'll also look beneath the surface at the new lower-level API behind the latest design, offering an early glimpse of work that is expected to form the basis of a future lower-level structured concurrency API.

## Racing Trains

DevFeed: [Racing Trains](<https://devfeed.tech/articles/racing-trains-77042.md>)

Original publisher: [Read original article](<https://thedailywtf.com/articles/racing-trains>)

Author: Remy Porter

Published: 2026-10-08T06:30:00Z

Content type: opinion

Language: en

Sources: [The Daily WTF](<https://devfeed.tech/sources/the-daily-wtf.md>)

Topics: [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>)

Tags: [feature-articles](<https://devfeed.tech/tags/feature-articles.md>), [race-condition](<https://devfeed.tech/tags/race-condition.md>), [race-conditions](<https://devfeed.tech/tags/race-conditions.md>)

### AI overview

A train reservation app apparently confirmed two passengers for the same seat. The article attributes the duplicate booking to a race condition in the reservation system, where concurrent checks and reservations were not atomic, and speculates that the bug may have gone unfixed because it was not prioritized.

### Source excerpt

Robert G sends us a WTF from the outside, but I think we can come up with some hypotheses about what actually happened. Robert was traveling by train. For complicated train reasons, the car he was seated on was not actually scheduled to continue with the train he was booked to ride, the replacement can missed its scheduled arrival, and the result was that Robert was left at a station needing to rebook his travel. Now, given that this is in a region of the world with a fairly robust train network, this represented a hiccup of thirty minutes in a many hour trip. Not a particularly big deal. But Robert didn't want to get stranded any longer than he had to, so he took out his phone, fired up the train company's app, and made sure he had a reservation on the next train. He got the confirmation, and grabbed a coffee while he waited. Not quite thirty minutes later, Robert boarded the train and went towards his reserved seat. Another passenger approached from the opposite direction, and they met at the seat. "Excuse me," Robert said, "but I reserved this one." "No, I reserved this one." Being reasonable people, they both pulled out their phones and pulled up their apps. Sure enough, each one of them was confirmed for that seat. Since the email confirmation had more details than the app provided, they both pulled up the email. Same seat. Both confirmed. The timestamp of the reservation? The same, down to the second. "I don't think the conductor will let us sit in each other's laps," the other passenger said. As it turned out, there was enough room on the train that no lap sitting was required. Everyone got a seat, even if it wasn't the one they reserved. But the story stuck with Robert. A major transit provider had a reservation system that clearly had a race condition. It seemed like the most basic example of race conditions too, the kind you're shown in college to explain the basic concept. "Check if the seat is reserved, and if it's not, reserve it." Because that sequence

## How Nix enables deterministic debugging of race conditions

DevFeed: [How Nix enables deterministic debugging of race conditions](<https://devfeed.tech/articles/nix-wrote-half-of-my-debugger-76908.md>)

Original publisher: [Read original article](<https://fzakaria.com/2026/10/07/nix-wrote-half-of-my-debugger>)

Published: 2026-10-07T19:00:00Z

Content type: article

Language: en

Sources: [Farid Zakaria's Blog](<https://devfeed.tech/sources/farid-zakaria-s-blog.md>)

Topics: [Nix](<https://devfeed.tech/topics/nix.md>), [gdb](<https://devfeed.tech/topics/gdb.md>), [race-condition](<https://devfeed.tech/topics/race-condition.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>)

Tags: [debugger](<https://devfeed.tech/tags/debugger.md>), [nix](<https://devfeed.tech/tags/nix.md>), [race-condition](<https://devfeed.tech/tags/race-condition.md>)

### AI overview

The author describes Rewind, a debugger built around Nix derivations and a deterministic virtual machine. Rewind can replay builds, vary thread schedules to find race conditions, compare runs, and inspect program state with gdb. Nix supplies reproducible inputs, sources, and debug symbols for the debugging workflow.

### Source excerpt

A few days ago I wrote about Rewind VM, a deterministic VM where every run of a Nix build is a pure function of its inputs, thread schedule included! I have been using it to find, reproduce and solve numerous race conditions in Nix builds, but it's been making me feel a little crazy. What is this superpower, and why is nobody else using it? The tool has quickly grown a source panel, stack frames, bookmarks, a "Compare" tab, a lot more gdb support, thread lanes, which show who held the CPU at every step, and "Check from here", which helps find the exact step where a race condition happens. I went into each new feature thinking it would be a big code-lift but I kept running into the same thing: the hard part of each feature was already done, and Nix had done it. A debugger for instance, needs the exact inputs of the program, its debug symbols, its sources, the sources of every library under it, and a way for someone else to get all of that on their machine. That's exactly what a derivation is, and Nix makes that easy.

## Thread pool starvation from nested async calls

DevFeed: [Thread pool starvation from nested async calls](<https://devfeed.tech/articles/thread-pool-starvation-from-nested-async-calls-64743.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/63-thread-pool-starvation-nested-async/>)

Author: hello@ankit-rana.com

Published: 2026-10-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [threadpools](<https://devfeed.tech/topics/threadpools.md>), [queueing theory](<https://devfeed.tech/topics/queueing-theory.md>), [synchronization](<https://devfeed.tech/topics/synchronization.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [completablefuture](<https://devfeed.tech/tags/completablefuture.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [executor](<https://devfeed.tech/tags/executor.md>), [executorservice](<https://devfeed.tech/tags/executorservice.md>), [java](<https://devfeed.tech/tags/java.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [thread-pool](<https://devfeed.tech/tags/thread-pool.md>)

### AI overview

Nested asynchronous work in a bounded Java thread pool can starve the pool when parent tasks block while waiting for child tasks submitted to that same pool. The article explains why increasing pool size only delays the failure and presents alternatives: compose futures without blocking, isolate unavoidable blocking work in a separate bounded pool, use timeouts, and capture thread dumps and queue metrics to diagnose the problem. It also describes the limits of virtual threads for this failure mode.

### Source excerpt

A task that blocks waiting for another task submitted to the same bounded pool can deadlock, because the thread it needs is the thread it is occupying. With N threads and N waiting parents, every thread is blocked on work that has no thread left to run it. Nothing detects this, there is no error and no timeout by default, so the service simply stops responding while looking healthy. Raising the pool size delays it rather than fixing it, since the failure needs only enough concurrent parents to fill the pool.

## Massive Parallel Imports in Neo4j Without Deadlock and Lock Contention

DevFeed: [Massive Parallel Imports in Neo4j Without Deadlock and Lock Contention](<https://devfeed.tech/articles/massive-parallel-imports-in-neo4j-without-deadlock-and-lock-contention-59425.md>)

Original publisher: [Read original article](<https://neo4j.com/blog/graph-data-science/massive-parallel-imports-in-neo4j-without-deadlock-and-lock-contention/>)

Author: Jocelyn Hoppa

Published: 2026-09-23T14:58:00Z

Content type: article

Language: en

Sources: [Neo4j](<https://devfeed.tech/sources/graph-database-technology-neo4j-blog.md>)

Topics: [Neo4j](<https://devfeed.tech/topics/neo4j.md>), [Graphs](<https://devfeed.tech/topics/graphs.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [data](<https://devfeed.tech/topics/data.md>), [clickhouse](<https://devfeed.tech/topics/clickhouse.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [developer](<https://devfeed.tech/tags/developer.md>), [graph](<https://devfeed.tech/tags/graph.md>), [graph-data-science](<https://devfeed.tech/tags/graph-data-science.md>), [import](<https://devfeed.tech/tags/import.md>), [neo4j](<https://devfeed.tech/tags/neo4j.md>), [neo4j-graph-database](<https://devfeed.tech/tags/neo4j-graph-database.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [parallel-computing](<https://devfeed.tech/tags/parallel-computing.md>), [partitioning](<https://devfeed.tech/tags/partitioning.md>), [python](<https://devfeed.tech/tags/python.md>), [sql](<https://devfeed.tech/tags/sql.md>), [table](<https://devfeed.tech/tags/table.md>), [workers](<https://devfeed.tech/tags/workers.md>)

### AI overview

This article explains a Neo4j graph-import approach that partitions node and relationship data according to available workers and uses hash-based partitioning plus the K-1 coloring algorithm to create batches that can be imported in parallel without deadlock or lock contention. It also describes limitations of an earlier partitioning and diagonal-batching method, including cases where source and target nodes overlap.

### Source excerpt

Optimizing graph import partitioning based on workers and k-1 coloring algorithm.This article is a generalization of the approach designed by Eric MONK in his article "Mix and batch: a technique for fast, parallel relationship loading in Neo4j". It explains the... Read more ->

## Deadlocks are a lock ordering bug, and lock ordering is a design decision

DevFeed: [Deadlocks are a lock ordering bug, and lock ordering is a design decision](<https://devfeed.tech/articles/deadlocks-are-a-lock-ordering-bug-and-lock-ordering-is-a-design-decision-55691.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/56-deadlocks-are-a-lock-ordering-bug/>)

Author: hello@ankit-rana.com

Published: 2026-09-21T00:00:00Z

Content type: article

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [ordering](<https://devfeed.tech/topics/ordering.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Database](<https://devfeed.tech/topics/database.md>), [locking](<https://devfeed.tech/topics/locking.md>), [Sorting](<https://devfeed.tech/topics/sorting.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [database](<https://devfeed.tech/tags/database.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [deadlocks](<https://devfeed.tech/tags/deadlocks.md>), [java](<https://devfeed.tech/tags/java.md>), [locking](<https://devfeed.tech/tags/locking.md>), [ordering](<https://devfeed.tech/tags/ordering.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [sorting](<https://devfeed.tech/tags/sorting.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

The article explains how database deadlocks arise when concurrent transactions acquire the same locks in opposite orders. It recommends imposing a consistent global lock order, typically by sorting identifiers, to prevent circular wait in transfers and batch operations.

### Source excerpt

A deadlock needs four conditions and the only one you control is circular wait, which is why every deadlock reduces to two transactions acquiring the same locks in opposite orders. Imposing a global order on lock acquisition, usually by sorting the identifiers before touching any row, makes the cycle impossible to form. A database deadlock is the survivable version because the engine detects it and kills a victim, and an application level deadlock across two mutexes has no detector and simply hangs.

## A C++ Exception Handler Retries Without Releasing Deadlock Resources

DevFeed: [A C++ Exception Handler Retries Without Releasing Deadlock Resources](<https://devfeed.tech/articles/codesod-lock-em-dead-28511.md>)

Original publisher: [Read original article](<https://thedailywtf.com/articles/lock-em-dead>)

Author: Remy Porter

Published: 2026-08-26T06:30:00Z

Content type: opinion

Language: en

Sources: [The Daily WTF](<https://devfeed.tech/sources/the-daily-wtf.md>)

Topics: [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [code](<https://devfeed.tech/tags/code.md>), [codesod](<https://devfeed.tech/tags/codesod.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [exception](<https://devfeed.tech/tags/exception.md>)

### AI overview

The article examines a C++ exception handler that retries after detecting a deadlock. It explains that the retry mechanism appears to jump back to the start of the block without releasing resources, so it can leave the deadlock unresolved and potentially add more deadlocks.

### Source excerpt

Kevin sends us an exception handler from C++. Let's see if we can spot what's going wrong: catch (Exception::Deadlock) { retry; } When we catch a deadlock happening, we retry. That's not a keyword in C++, and looking at how it's used, it has to be some kind of macro, and I suspect that the macro is hiding a goto underneath it. The real problem, though, is that we suspect we're in a deadlock situation. That means this thread is waiting on a resource held by another thread which is waiting for a resource held by this thread. Neither train may continue until the other has passed. So this retry only works if it releases the resource held by this thread (letting the deadlocking thread proceed). But does it? Not according ot Kevin. The code already had a pile of deadlocks in it, so they brought in a highly paid consultant to try and fix them by reordering access and tracing where mutexes were causing issues. This retry just jumps back up to the top of the block, without releasing any resources. It "seems the consultant wanted to add some deadlocks of their own," Kevin says. [Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!

## Week Ending August 02, 2026

DevFeed: [Week Ending August 02, 2026](<https://devfeed.tech/articles/week-ending-august-02-2026-17665.md>)

Original publisher: [Read original article](<https://lwkd.info/2026/20260806>)

Published: 2026-08-06T23:45:00Z

Content type: news

Language: en

Sources: [Last Week in Kubernetes Development](<https://devfeed.tech/sources/last-week-in-kubernetes-development.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [bug](<https://devfeed.tech/topics/bug.md>), [releases](<https://devfeed.tech/topics/releases.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [developer](<https://devfeed.tech/tags/developer.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [news](<https://devfeed.tech/tags/news.md>), [releases](<https://devfeed.tech/tags/releases.md>)

### AI overview

The Kubernetes community roundup covers a Steering Committee candidate Q&A, social media documentation, KCD Around the World, upcoming documentation and release milestones, and fixes for kubelet CPU allocation and StatefulSet reconciliation issues.

### Source excerpt

Developer News

## OpenAI GPT-5.6 Sol and Terra: An evaluation

DevFeed: [OpenAI GPT-5.6 Sol and Terra: An evaluation](<https://devfeed.tech/articles/openai-gpt-5-6-sol-and-terra-an-evaluation-50228.md>)

Original publisher: [Read original article](<https://www.sonarsource.com/blog/openai-gpt-5-6-sol-and-terra/>)

Author: Killian Carlsen-Phelan

Published: 2026-08-06T13:00:00Z

Content type: article

Language: en

Sources: [Sonar Blog](<https://devfeed.tech/sources/sonar-blog.md>)

Topics: [OpenAI](<https://devfeed.tech/topics/openai.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [Code](<https://devfeed.tech/topics/code.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-code-quality](<https://devfeed.tech/tags/ai-code-quality.md>), [ai-generated-code](<https://devfeed.tech/tags/ai-generated-code.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [bug-density](<https://devfeed.tech/tags/bug-density.md>), [code](<https://devfeed.tech/tags/code.md>), [code-generation-benchmark](<https://devfeed.tech/tags/code-generation-benchmark.md>), [code-security](<https://devfeed.tech/tags/code-security.md>), [code-smell](<https://devfeed.tech/tags/code-smell.md>), [coding](<https://devfeed.tech/tags/coding.md>), [cognitive-complexity](<https://devfeed.tech/tags/cognitive-complexity.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrency-bugs](<https://devfeed.tech/tags/concurrency-bugs.md>), [cryptography-misconfiguration](<https://devfeed.tech/tags/cryptography-misconfiguration.md>), [cyclomatic-complexity](<https://devfeed.tech/tags/cyclomatic-complexity.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [gpt-5-6](<https://devfeed.tech/tags/gpt-5-6.md>), [java-benchmark](<https://devfeed.tech/tags/java-benchmark.md>), [llm-evaluation](<https://devfeed.tech/tags/llm-evaluation.md>), [llm-leaderboard](<https://devfeed.tech/tags/llm-leaderboard.md>), [openai](<https://devfeed.tech/tags/openai.md>), [sonarqube](<https://devfeed.tech/tags/sonarqube.md>), [static-analysis](<https://devfeed.tech/tags/static-analysis.md>), [threading](<https://devfeed.tech/tags/threading.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>), [vulnerability-density](<https://devfeed.tech/tags/vulnerability-density.md>)

### AI overview

An evaluation of GPT-5.6 Sol and Terra compares their Java coding performance with GPT-5.5, reporting correctness, code volume, security vulnerabilities, concurrency and threading bugs, and code smell density.

### Source excerpt

Learn what changed in GPT 5.6 coding performance from correctness gains to new security and concurrency challenges in this detailed evaluation.

## pnpm 11.11-11.14

DevFeed: [pnpm 11.11-11.14](<https://devfeed.tech/articles/pnpm-11-11-11-14-51171.md>)

Original publisher: [Read original article](<https://pnpm.io/blog/releases/11.11-11.14>)

Author: Zoltan Kochan

Published: 2026-07-18T00:00:00Z

Content type: release

Language: en

Sources: [pnpm](<https://devfeed.tech/sources/pnpm-blog.md>)

Topics: [pnpm](<https://devfeed.tech/topics/pnpm.md>), [release engineering](<https://devfeed.tech/topics/release-engineering.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>)

Tags: [cache](<https://devfeed.tech/tags/cache.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [pnpm](<https://devfeed.tech/tags/pnpm.md>), [release](<https://devfeed.tech/tags/release.md>), [release-management](<https://devfeed.tech/tags/release-management.md>), [version](<https://devfeed.tech/tags/version.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

### AI overview

pnpm releases 11.11 through 11.14 introduce native workspace release management, installation diagnostics, registry package and organization management commands, convergence overrides, and scheme-carrying specifiers. The releases also address a path-traversal vulnerability, reduce peak memory during cold-cache resolution, and fix a peer dependency deadlock.

### Source excerpt

pnpm 11.11 through 11.14 add native workspace release management (pnpm change, pnpm lane, and a bare pnpm version -r), a pnpm doctor command that diagnoses your installation end to end, the pnpm access and pnpm team commands for managing packages and organizations on the registry, convergence overrides, and scheme-carrying peerDependencies specifiers. They also fix a path-traversal vulnerability, cut peak memory during cold-cache resolution by roughly 30%, and resolve a peer dependency deadlock.

## Handling concurrency on the Web with Web Locks API

DevFeed: [Handling concurrency on the Web with Web Locks API](<https://devfeed.tech/articles/handling-concurrency-on-the-web-with-web-locks-api-20386.md>)

Original publisher: [Read original article](<https://tech.olx.com/handling-concurrency-on-the-web-with-web-locks-api-163b7e07eddd?source=rss----761b019b483f---4>)

Author: Cesar Contreras

Published: 2026-07-14T15:36:00Z

Content type: article

Language: en

Sources: [OLX](<https://devfeed.tech/sources/olx.md>)

Topics: [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [race-condition](<https://devfeed.tech/topics/race-condition.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [Web](<https://devfeed.tech/topics/web.md>), [React](<https://devfeed.tech/topics/react.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [LocalStorage](<https://devfeed.tech/topics/localstorage.md>), [jQuery](<https://devfeed.tech/topics/jquery.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [locks](<https://devfeed.tech/tags/locks.md>), [react](<https://devfeed.tech/tags/react.md>), [resumable-file-upload](<https://devfeed.tech/tags/resumable-file-upload.md>), [synchronization](<https://devfeed.tech/tags/synchronization.md>), [web](<https://devfeed.tech/tags/web.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

For uploads that resume after a browser tab reopens, multiple tabs can otherwise restore the same upload, causing duplicate transfers and conflicting progress. The OLX implementation uses the Web Locks API as a browser-managed mutex: fresh, user-started uploads request a lock without waiting and proceed even if unavailable; restored uploads proceed only when they acquire the lock. The lock is held until completion, error, cancellation, or component unmount, allowing cleanup to release it. The article contrasts this with localStorage polling, which can race and leave stale locks, and Broadcast Channel messaging, which requires custom conflict and crash handling. If Web Locks is unavailable, the example allows restores to proceed, accepting duplicate-upload risk. The article reports zero duplicate uploads after implementation and recommends testing across target browsers and crash scenarios.

### Source excerpt

Image by the_iop from Pixabay Concurrency in programming is the ability to manage and execute multiple tasks or processes at the same time (or appear to), allowing programs to remain responsive and efficient. Think of it like a chef in a busy kitchen: they're not cooking every dish from start to finish sequentially, but instead chopping vegetables while one pan simmers and another bakes; juggling progress on several tasks concurrently. I'm a frontend engineer at OLX working mostly with React and NextJs, but I also came from a background in which I worked primarily in concurrent programs with Java. Creating multi-threaded applications can be a pain, dealing with locks, semaphores... and my favorite... deadlocks (very scary in large codebases). Once I transitioned fully to Web development, I never imagined I would have to deal with scenarios like this, and then here I am writing my first article about it. Web development has turned into a very powerful ecosystem, from the previous era where the web was only about flashy animations using HTML marquee (a bit of sarcasm here 😆), dominated by JQuery, to a really powerful environment where you can use Workers, 2D and 3D animations with WebGL and Canvas, offline capabilities with Service Workers, and the list continues. This is evidence that the Web can now face really complex challenges, and it's just a matter of time before you have to face similar ones. The problem Recently, at OLX, we faced the challenge of working with large file size uploads. Providing the best user experience is tricky when it comes to handling uploads, and most of the real use cases out there require the user to stay in the web app until the upload completes, but we didn't want that. Since we are working with large file sizes (up to 20GB), we want the user to be free and do other stuff while this is uploading, so if the user closes and opens the browser or tab, the upload should continue with no manual intervention. For this, we had to provide a mechani

## GhostLock (CVE-2026-43499) kernel privilege escalation: Patch released

DevFeed: [GhostLock (CVE-2026-43499) kernel privilege escalation: Patch released](<https://devfeed.tech/articles/ghostlock-cve-2026-43499-kernel-privilege-escalation-patch-released-53466.md>)

Original publisher: [Read original article](<https://almalinux.org/blog/2026-07-09-ghostlock/>)

Author: Andrew Lukoshko AlmaLinux Lead Architect

Published: 2026-07-09T00:00:00Z

Content type: news

Language: en

Sources: [AlmaLinux](<https://devfeed.tech/sources/blog-on-almalinux.md>)

Topics: [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>), [Security](<https://devfeed.tech/topics/security.md>), [Exploit](<https://devfeed.tech/topics/exploit.md>), [container escape](<https://devfeed.tech/topics/container-escape.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>)

Tags: [container-escape](<https://devfeed.tech/tags/container-escape.md>), [cve](<https://devfeed.tech/tags/cve.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [kernel-privilege-escalation](<https://devfeed.tech/tags/kernel-privilege-escalation.md>), [patch](<https://devfeed.tech/tags/patch.md>), [privilege-escalation](<https://devfeed.tech/tags/privilege-escalation.md>), [security](<https://devfeed.tech/tags/security.md>)

### AI overview

AlmaLinux reports that GhostLock (CVE-2026-43499), a Linux kernel use-after-free vulnerability in real-time mutex priority-inheritance code, can enable unprivileged local root access and container escape. Patched kernels are now available in production repositories for AlmaLinux 8, 9, and 10.

### Source excerpt

Update: The fix is now in production The patched kernel for GhostLock (CVE-2026-43499) has been released to the production repositories for every affected AlmaLinux release -- 8, 9, and 10. You no longer need to enable the testing repo. Just run: sudo dnf clean metadata && sudo dnf upgrade sudo reboot The fixed versions released to production are kernel-4.18.0-553.141.2.el8_10 (AlmaLinux 8), kernel-5.14.0-687.24.1.el9_8 (AlmaLinux 9), and kernel-6.12.0-211.32.1.el10_2 (AlmaLinux 10), or higher. Confirm you are running the patched version with uname -r after rebooting. Most mirrors sync every few hours, so if the update is not available to you yet, try again a little later.

## Deadlocks and downtime

DevFeed: [Deadlocks and downtime](<https://devfeed.tech/articles/deadlocks-and-downtime-2323.md>)

Original publisher: [Read original article](<https://planetscale.com/blog/deadlocks-and-downtime>)

Author: Simeon Griggs

Published: 2026-07-08T00:00:00Z

Content type: tutorial

Language: en

Sources: [PlanetScale](<https://devfeed.tech/sources/blog-planetscale.md>)

Topics: [Database](<https://devfeed.tech/topics/database.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [errors](<https://devfeed.tech/tags/errors.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [learn](<https://devfeed.tech/tags/learn.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [reduce](<https://devfeed.tech/tags/reduce.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

This article explains how Postgres deadlocks arise when concurrent transactions hold locks that each other needs, and how those deadlocks can escalate into database downtime. It examines the effects of high query volume and immediate retry loops, then recommends consistent row-update ordering, smaller transactions, and late locking to reduce the risk.

### Source excerpt

Deadlocks happen when transactions block each other. Learn how they escalate into downtime, how to reduce them through better queries and retry logic, and how Traffic Control can protect your database from your application.

## Improvements to Reading Process Output in .NET 11 Preview 5

DevFeed: [Improvements to Reading Process Output in .NET 11 Preview 5](<https://devfeed.tech/articles/improvements-to-reading-process-outputs-exploring-the-net-11-preview-part-5-51477.md>)

Original publisher: [Read original article](<https://andrewlock.net/exploring-the-dotnet-11-preview-5-improvments-to-process-apis/>)

Author: Andrew Lock

Published: 2026-07-07T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [Process](<https://devfeed.tech/topics/process.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [improvements](<https://devfeed.tech/tags/improvements.md>), [net](<https://devfeed.tech/tags/net.md>), [net-11](<https://devfeed.tech/tags/net-11.md>), [net-11-c-sharp](<https://devfeed.tech/tags/net-11-c-sharp.md>), [preview](<https://devfeed.tech/tags/preview.md>), [process](<https://devfeed.tech/tags/process.md>)

### AI overview

This post examines .NET 11 improvements to the Process APIs, focusing on running processes and reading standard output and error without deadlocks. It compares the behavior in .NET 10 with the newer APIs and explains how parallel pipe draining avoids blocking.

### Source excerpt

In this post I show some of the improvements to the Process API in .NET 11 for running processes and reading their outputs without risk of deadlock

## How Shopify Uses MySQL for Oversell Protection at Scale

DevFeed: [How Shopify Uses MySQL for Oversell Protection at Scale](<https://devfeed.tech/articles/shopify-said-mysql-redis-18132.md>)

Original publisher: [Read original article](<https://hungrymindsdev.substack.com/p/shopify-said-mysql-redis>)

Author: Alexandre Zajac

Published: 2026-06-22T15:30:09Z

Content type: article

Language: en

Sources: [Hungry Minds](<https://devfeed.tech/sources/hungry-minds.md>)

Topics: [MySQL](<https://devfeed.tech/topics/mysql.md>), [Database](<https://devfeed.tech/topics/database.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>)

Tags: [concurrent](<https://devfeed.tech/tags/concurrent.md>), [database](<https://devfeed.tech/tags/database.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [redis](<https://devfeed.tech/tags/redis.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

The article describes Shopify's inventory oversell protection challenge and implementation techniques centered on MySQL, including bounded row pools, composite primary keys, READ COMMITTED isolation, consistent lock ordering, and shadow-mode migration from Redis. It emphasizes concurrency, ACID guarantees, and production-scale reservation handling.

### Source excerpt

PLUS: SpaceX buys Cursor for $60B 💰, AWS Blocks framework launch ⚡, Terminal optimization tips 👨💻

## Monitor SLAs and scale ClickHouse Cloud with clickhousectl and agents

DevFeed: [Monitor SLAs and scale ClickHouse Cloud with clickhousectl and agents](<https://devfeed.tech/articles/monitor-slas-and-scale-clickhouse-cloud-with-clickhousectl-and-agents-5427.md>)

Original publisher: [Read original article](<https://clickhouse.com/blog/monitor-and-scale-clickhouse-cloud-with-clickhousectl>)

Author: Al Brown

Published: 2026-06-05T14:58:29Z

Content type: tutorial

Language: en

Sources: [ClickHouse Blog](<https://devfeed.tech/sources/clickhouse-blog.md>)

Topics: [clickhouse](<https://devfeed.tech/topics/clickhouse.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [monitor](<https://devfeed.tech/topics/monitor.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>), [Front end](<https://devfeed.tech/topics/frontend.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [clickhouse](<https://devfeed.tech/tags/clickhouse.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [latency](<https://devfeed.tech/tags/latency.md>), [memory](<https://devfeed.tech/tags/memory.md>), [monitor](<https://devfeed.tech/tags/monitor.md>), [resource](<https://devfeed.tech/tags/resource.md>), [scale](<https://devfeed.tech/tags/scale.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

### AI overview

This guide shows how to monitor per-workload SLAs in ClickHouse Cloud, investigate latency breaches, scale infrastructure, and delegate remediation to an agent.

### Source excerpt

Tag queries to track per-workload SLAs, then use clickhousectl to investigate breaches and scale ClickHouse Cloud, with an agent to remediate.

## How a Deadlock Froze Blinkit's Supply Chain

DevFeed: [How a Deadlock Froze Blinkit's Supply Chain](<https://devfeed.tech/articles/how-a-deadlock-froze-blinkit-s-supply-chain-20085.md>)

Original publisher: [Read original article](<https://lambda.blinkit.com/how-a-deadlock-froze-blinkits-supply-chain-4b7c4d6d4a3f?source=rss----42df4a1e8725---4>)

Author: Ratul Dawar

Published: 2026-05-29T09:26:27Z

Content type: article

Language: en

Sources: [Grofers](<https://devfeed.tech/sources/grofers.md>)

Topics: [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Post Mortem](<https://devfeed.tech/topics/post-mortem.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [table-partitioning](<https://devfeed.tech/topics/table-partitioning.md>)

Tags: [analytics](<https://devfeed.tech/tags/analytics.md>), [apache-hudi](<https://devfeed.tech/tags/apache-hudi.md>), [backlog](<https://devfeed.tech/tags/backlog.md>), [big-data](<https://devfeed.tech/tags/big-data.md>), [blinkit](<https://devfeed.tech/tags/blinkit.md>), [buffer](<https://devfeed.tech/tags/buffer.md>), [bug](<https://devfeed.tech/tags/bug.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [crash](<https://devfeed.tech/tags/crash.md>), [dashboards](<https://devfeed.tech/tags/dashboards.md>), [data](<https://devfeed.tech/tags/data.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [dump](<https://devfeed.tech/tags/dump.md>), [engine](<https://devfeed.tech/tags/engine.md>), [error](<https://devfeed.tech/tags/error.md>), [exceptions](<https://devfeed.tech/tags/exceptions.md>), [execution](<https://devfeed.tech/tags/execution.md>), [file](<https://devfeed.tech/tags/file.md>), [heap](<https://devfeed.tech/tags/heap.md>), [hudi](<https://devfeed.tech/tags/hudi.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [supply-chain](<https://devfeed.tech/tags/supply-chain.md>), [trinos](<https://devfeed.tech/tags/trinos.md>)

### AI overview

Trino queries against Apache Hudi tables stalled during planning when split enumeration filled a bounded buffer. Producers and consumers shared a fixed thread pool; producers blocked while holding its threads, leaving no thread available for consumers to drain the buffer and signal space. This caused new queries to wait indefinitely despite idle CPU and memory and no logged errors. The fix changed producers to yield their threads when the buffer is full and register a callback to resume when space opens, allowing consumers to run and breaking the deadlock. The article says this removes the infinite planning wait but does not make large tables cheap to plan; partition counts, scheduler fairness and query shape still matter.

### Source excerpt

A silent deadlock in our query engine was stalling inventory replenishment jobs with no error, no crash -- just infinite waiting. This is the story of how we found it, traced it to an open-source bug, and fixed it upstream. TL;DRTrino's Hudi connector used a single thread pool for both producing file splits and signalling when there was room for more. Under load, every thread ended up waiting for a signal that had no thread left to run it. The fix was to switch the producer side to a cooperative scheduling pattern: yield the thread when the buffer is full, and resume when space opens. Our inventory replenishment pipeline was frozen. CPU was idle. Memory was fine. There were no errors anywhere. Queries just... stopped moving. The first signal was a long queue on one of our analytics clusters. Queries were piling up. Inventory replenishment jobs -- the jobs that decide how much stock every warehouse and store needs to hold -- were delayed. Blinkit's supply chain was being impacted. Dashboards were turning amber, but nothing was crashing. That was the unsettling part. Investigation: Resources Doing Nothing The affected cluster runs analytical workloads on Trino, reading data stored in Apache Hudi tables on S3. The natural first instinct in a queue build-up is to look at resource saturation -- a CPU spike, memory pressure, network bottleneck. There was none of that. The cluster was sitting largely idle, with CPU barely above baseline and heap usage well within limits. Every new query touching a Hudi table joined the queue and stayed there indefinitely. Queries that were already mid-execution completed fine. Only freshly submitted ones were affected. And crucially, there were no errors. No timeouts, no exceptions in the logs -- just silence and a growing backlog. A thread dump -- a snapshot of what every thread in the process is doing right now -- was our next move. It showed dozens of producer threads all stuck in the same parked state, waiting on the exact same internal signal.

## Database Locking Mechanisms

DevFeed: [Database Locking Mechanisms](<https://devfeed.tech/articles/database-locking-mechanisms-34675.md>)

Original publisher: [Read original article](<https://newsletter.systemdesigncodex.com/p/database-locking-mechanisms>)

Author: Saurabh Dashora

Published: 2026-05-19T06:27:39Z

Content type: tutorial

Language: en

Sources: [System Design Codex](<https://devfeed.tech/sources/system-design-codex.md>)

Topics: [Database](<https://devfeed.tech/topics/database.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>)

Tags: [concurrency](<https://devfeed.tech/tags/concurrency.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [database](<https://devfeed.tech/tags/database.md>), [hibernate](<https://devfeed.tech/tags/hibernate.md>), [locking](<https://devfeed.tech/tags/locking.md>), [locks](<https://devfeed.tech/tags/locks.md>), [optimistic-locking](<https://devfeed.tech/tags/optimistic-locking.md>), [sql](<https://devfeed.tech/tags/sql.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

This tutorial compares pessimistic and optimistic locking for maintaining data consistency in multi-user applications. Pessimistic locking acquires locks before updates, while optimistic locking detects conflicts at commit time using version numbers or timestamps. The article explains their trade-offs in concurrency, performance, deadlocks, and consistency, and outlines suitable use cases.

### Source excerpt

Pessimistic vs Optimistic

[Next page](<https://devfeed.tech/topics/deadlock.md?cursor=WyIyMDI2LTA1LTE5VDA2OjI3OjM5KzAwOjAwIiwgIjM1ODYzNTMzLTg4ZmItNDZjYi1iNjg5LTZmMTk1YzViOThiYSJd>)