Skip to main content
QUICK REVIEW

[Paper Review] Testing MapReduce-Based Systems

João Eugênio Marynowski, Michel Albonico|arXiv (Cornell University)|Sep 28, 2012
Cloud Computing and Resource ManagementComputer Science4 references7 citations
TL;DR

This paper proposes HadoopTest, a scalable test harness for MapReduce-based systems that deploys distributed testers on each map and reduce worker to coordinate test execution, inject faults, and validate results. It successfully identified all non-equivalent mutants in two Hadoop-bundled applications, demonstrating effectiveness in detecting functional bugs through coordinated, fault-injection testing.

ABSTRACT

MapReduce (MR) is the most popular solution to build applications for large-scale data processing. These applications are often deployed on large clusters of commodity machines, where failures happen constantly due to bugs, hardware problems, and outages. Testing MR-based systems is hard, since it is needed a great effort of test harness to execute distributed test cases upon failures. In this paper, we present a novel testing solution to tackle this issue called HadoopTest. This solution is based on a scalable harness approach, where distributed tester components are hung around each map and reduce worker (i.e., node). Testers are allowed to stimulate each worker to inject failures on them, monitor their behavior, and validate testing results. HadoopTest was used to test two applications bundled into Hadoop, the Apache open source MapReduce implementation. Our initial implementation demonstrates promising results, with HadoopTest coordinating test cases across distributed MapReduce workers, and finding bugs.

Motivation & Objective

  • To address the challenge of testing large-scale, fault-prone MapReduce systems with complex distributed test case coordination.
  • To enable coordinated, parallel execution of test cases across multiple MapReduce workers (map and reduce nodes).
  • To support fault injection and real-time validation during testing without modifying the system under test's source code.
  • To provide a non-intrusive, scalable solution for functional and fault-aware testing of production-grade Hadoop applications.
  • To evaluate the effectiveness of the approach using mutation analysis on real Hadoop applications.

Proposed method

  • HadoopTest deploys lightweight tester components on each MapReduce worker node to control test execution and monitor behavior.
  • Each tester coordinates with others via a distributed coordination algorithm to synchronize test case execution across nodes.
  • Testers inject faults (e.g., simulated crashes, delays) directly into worker nodes to emulate real-world failure conditions.
  • Functional validation is performed using assertions and value comparison oracles to compare expected vs. observed outputs.
  • The framework integrates with Hadoop and does not require source code modifications to the system under test.
  • Mutation analysis is applied to generate mutants of the target applications, and HadoopTest evaluates whether these mutants are detected.

Experimental results

Research questions

  • RQ1Can a test harness effectively coordinate distributed test cases across multiple MapReduce worker nodes?
  • RQ2Can HadoopTest successfully inject faults into individual map and reduce workers to simulate real-world failures?
  • RQ3Can HadoopTest detect functional bugs through coordinated, fault-injection testing without modifying the system under test?
  • RQ4How effective is HadoopTest in detecting non-equivalent mutants in real Hadoop applications?
  • RQ5Can HadoopTest be used to test complex, production-grade MapReduce applications beyond basic examples?

Key findings

  • HadoopTest successfully coordinated distributed test cases across 50 machine-nodes in the Grid5000 testbed, demonstrating scalability and coordination capability.
  • The framework detected all non-equivalent mutants in the PiEstimator application, indicating high sensitivity to functional faults.
  • All non-equivalent mutants in the WordCount application were also detected, confirming the framework’s effectiveness for functional testing.
  • The approach achieved effective fault injection and validation without requiring modifications to the system under test’s source code.
  • HadoopTest outperformed existing tools like MRUnit and Herriot by enabling parallel test execution and distributed coordination across map and reduce nodes.
  • The initial implementation showed promise in identifying bugs through mutation analysis, suggesting strong potential for broader adoption in Hadoop testing.

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.