Skip to main content
QUICK REVIEW

[Paper Review] Why Do My Blockchain Transactions Fail? A Study of Hyperledger Fabric (Extended version)*

Jeeta Ann Chacko, Ruben Mayer|arXiv (Cornell University)|Mar 8, 2021
Blockchain Technology Applications and SecurityComputer Science28 references8 citations
TL;DR

This paper provides a formal taxonomy of transaction failures in Hyperledger Fabric, introduces the HyperLedgerLab benchmarking framework with four realistic chaincodes, and conducts exhaustive experiments to analyze how parameters like block size, endorsement policies, and optimizations (Fabric++, Streamchain, FabricSharp) affect failure rates. It reveals that optimal block size can reduce transaction failures by up to 60%, offering actionable configuration guidelines for practitioners and identifying key trade-offs in performance tuning.

ABSTRACT

Permissioned blockchain systems promise to provide both decentralized trust and privacy. Hyperledger Fabric is currently one of the most wide-spread permissioned blockchain systems and is heavily promoted both in industry and academia. Due to its optimistic concurrency model, the transaction failure rates in Fabric can become a bottleneck. While there is active research to reduce failures, there is a lack of understanding on their root cause and, consequently, a lack of guidelines on how to configure Fabric optimally for different scenarios. To close this gap, in this paper, we first introduce a formal definition of the different types of transaction failures in Fabric. Then, we develop a comprehensive testbed and benchmarking system, HyperLedgerLab, along with four different chaincodes that represent realistic use cases and a chaincode/workload generator. Using HyperLedgerLab, we conduct exhaustive experiments to analyze the impact of different parameters of Fabric such as block size, endorsement policies, and others, on transaction failures. We further analyze three recently proposed optimizations from the literature, Fabric++, Streamchain and FabricSharp, and evaluate under which conditions they reduce the failure rates. Finally, based on our results, we provide recommendations for Fabric practitioners on how to configure the system and also propose new research directions.

Motivation & Objective

  • To formally define and categorize concurrency-related transaction failures in Hyperledger Fabric, addressing a critical gap in the literature.
  • To develop a comprehensive, open-source benchmarking system (HyperLedgerLab) with realistic chaincodes and workload generation for reproducible evaluation.
  • To analyze the impact of Fabric configuration parameters—such as block size, endorsement policies, and transaction arrival rates—on transaction failure rates.
  • To evaluate and compare three recent Fabric optimizations (Fabric++, Streamchain, FabricSharp) under controlled, realistic conditions.
  • To derive actionable configuration recommendations for practitioners and identify new research directions in permissioned blockchain performance tuning.

Proposed method

  • The authors define four formal types of transaction failures in Fabric: endorsement failures, MVCC read conflicts, write conflicts, and phantom reads, grounded in the optimistic concurrency control model.
  • They design and implement HyperLedgerLab, an extended version of the Caliper benchmarking framework, integrated with a chaincode and workload generator to simulate diverse real-world use cases.
  • The benchmark includes four domain-specific chaincodes modeling real-world scenarios such as electronic health records and asset transfers to ensure experimental relevance.
  • Experiments systematically vary key Fabric parameters: block size, transaction arrival rate, endorsement policy, and chaincode logic, while measuring failure rates and performance metrics.
  • The authors deploy and evaluate three recent optimizations—Fabric++ (transaction reordering), Streamchain (virtual block boundaries), and FabricSharp (conflict graph serialization)—to assess their failure-reduction efficacy.
  • Quantitative analysis is performed across multiple configurations, with statistical validation to identify significant trends and trade-offs.

Experimental results

Research questions

  • RQ1What are the formal, distinguishable types of transaction failures in Hyperledger Fabric, and how do they arise under optimistic concurrency control?
  • RQ2How do key system parameters—especially block size, endorsement policies, and transaction arrival rate—influence the rate of transaction failures in real-world workloads?
  • RQ3To what extent do recent Fabric optimizations (Fabric++, Streamchain, FabricSharp) reduce transaction failures, and under what conditions are they most effective?
  • RQ4What is the relationship between block size and failure rate, and does this relationship vary across different transaction workloads and optimization techniques?
  • RQ5What configuration guidelines can be derived for minimizing transaction failures in production Fabric deployments?

Key findings

  • Block size has a significant, non-linear impact on transaction failure rates, with optimal sizing reducing failures by up to 60% across different transaction arrival rates.
  • The effect of block size on failure rates is inverse between Fabric 1.4 and Fabric++: increasing block size reduces failures in Fabric 1.4 but increases them in Fabric++, revealing a critical trade-off.
  • Fabric++ effectively reduces MVCC read conflicts but may increase other failure types, highlighting the need for holistic performance tuning.
  • Streamchain reduces staleness and improves data freshness, but its impact on failure rates is less pronounced than on latency and throughput.
  • FabricSharp’s conflict graph serialization shows promise in reducing write conflicts, but its performance is sensitive to workload characteristics and block size.
  • The choice of database backend (LevelDB vs. CouchDB) significantly affects performance, with LevelDB outperforming CouchDB due to lower latency in range queries.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.