---
title: "How a Deadlock Froze Blinkit’s Supply Chain"
url: https://daily.dev/posts/how-a-deadlock-froze-blinkit-s-supply-chain-1gupnupee
source_url: https://lambda.blinkit.com/how-a-deadlock-froze-blinkits-supply-chain-4b7c4d6d4a3f
type: article
source: "Lambda"
published: 2026-05-30T07:29:10.108Z
updated: 2026-05-30T07:29:32.934Z
tags: ["distributed-systems"]
reading_time: 6
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How a Deadlock Froze Blinkit’s Supply Chain

**[Lambda](https://daily.dev/sources/lambda)** · 6 min read · 0 upvotes · 0 comments

## Summary

Blinkit's inventory replenishment pipeline froze silently — no errors, no crashes, just queries stuck indefinitely. The root cause was a deadlock in Trino's Hudi connector: producer threads filling a split buffer would block waiting for consumers to drain it, but consumers needed threads from the same shared pool that producers were holding. The fix replaced blocking with a cooperative yield pattern — producers hand the thread back to the pool and register a callback to resume when space opens, breaking the circular dependency. The bug was confirmed in Trino v455 and master, and a fix was contributed upstream.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://lambda.blinkit.com/how-a-deadlock-froze-blinkits-supply-chain-4b7c4d6d4a3f>

## Similar posts on daily.dev

- [Our billing pipeline was suddenly slow. The culprit was a hidden bottleneck in ClickHouse](https://daily.dev/posts/our-billing-pipeline-was-suddenly-slow-the-culprit-was-a-hidden-bottleneck-in-clickhouse-t6saatu35) · Cloudflare · 7 upvotes · 0 comments
- [The lock that killed my migration](https://daily.dev/posts/the-lock-that-killed-my-migration-rpiz4vna3) · The Art of Simplicity · 1 upvotes · 0 comments
- [How LinkedIn Identified a Kernel Lock Contention Issue Causing Recurring System Freezes](https://daily.dev/posts/how-linkedin-identified-a-kernel-lock-contention-issue-causing-recurring-system-freezes-brfufppr7) · InfoQ · 0 upvotes · 0 comments
- [When Good Locks Go Bad: Diagnosing a System Meltdown Under Load](https://daily.dev/posts/when-good-locks-go-bad-diagnosing-a-system-meltdown-under-load-evp32lkxu) · Flipkart Tech · 10 upvotes · 0 comments
- [We replaced Redis with MySQL for inventory reservations—and it scaled \(2026\)](https://daily.dev/posts/we-replaced-redis-with-mysql-for-inventory-reservations-and-it-scaled-2026--7uecbcooa) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#distributed-systems](https://daily.dev/tags/distributed-systems)

[View this post on daily.dev](https://daily.dev/posts/how-a-deadlock-froze-blinkit-s-supply-chain-1gupnupee)
