# Hedging Erasure-Coded Reads in HDFS

DevFeed: [Hedging Erasure-Coded Reads in HDFS](<https://devfeed.tech/articles/hedging-erasure-coded-reads-in-hdfs-127005.md>)

Original publisher: [Read original article](<https://product.hubspot.com/blog/hedging-erasure-coded-reads-in-hdfs>)

Author: Ray Mattingly

Published: 2026-11-09T21:30:20Z

Content type: article

Language: en

Sources: [HubSpot](<https://devfeed.tech/sources/hubspot.md>)

Topics: [hdfs](<https://devfeed.tech/topics/hdfs.md>), [Hadoop](<https://devfeed.tech/topics/hadoop.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [reliability-engineering](<https://devfeed.tech/topics/reliability-engineering.md>), [big-data](<https://devfeed.tech/topics/big-data.md>), [data-engineering](<https://devfeed.tech/topics/data-engineering.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [big-data](<https://devfeed.tech/tags/big-data.md>), [circuit-breaker](<https://devfeed.tech/tags/circuit-breaker.md>), [customers](<https://devfeed.tech/tags/customers.md>), [data](<https://devfeed.tech/tags/data.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [erasure-coding](<https://devfeed.tech/tags/erasure-coding.md>), [hdfs](<https://devfeed.tech/tags/hdfs.md>), [hubspot](<https://devfeed.tech/tags/hubspot.md>)

## AI overview

HubSpot added latency-triggered hedged reads for erasure-coded HDFS: when a cell read exceeds a cluster threshold, the HDFS client reconstructs it from other stripe cells and races that work against the original read. The approach preserves erasure coding's stated 50% storage savings versus triple replication while reducing dependence on a slow DataNode. On the case-study cluster, slow-read host-minutes fell 98%; hedges won 90% of the time and occurred about once per million reads. Each hedge costs six additional reads plus decoding, so thresholds tune the latency and resource tradeoff. A per-RegionServer circuit breaker disables hedging during broader slowdowns, with a separate cap on hedge rate. For HBase Gets, the timer also covers connection setup; during two reported DataNode failures, this avoided the over-five-second stalls seen when only data transfer was hedged.

## Source excerpt

Written by Ray Mattingly, Staff Engineering Manager, Big Data @ HubSpot