Title :
Testing Database-Centric Applications for Causes of Database Deadlocks
Author :
Grechanik, Mark ; Hossain, B. M. Mainul ; Buy, Ugo A.
Author_Institution :
Univ. of Illinois at Chicago, Chicago, IL, USA
Abstract :
Many organizations deploy applications that use databases by sending Structured Query Language (SQL) statements to them and obtaining data that result from executions of these statements. Since applications often share the same databases concurrently, database deadlocks routinely occur in these databases. Testing applications to determine how they cause database deadlocks is important as part of ensuring correctness, reliability, and performance of these applications. Unfortunately, it is very difficult to reproduce database deadlocks, since it involves different factors such as the precise interleavings in executing SQL statements. We created a novel approach for Systematic TEsting in Presence of DAtabase Deadlocks (STEPDAD) that enables testers to instantiate database deadlocks in applications with a high level of automation and frequency. We implemented STEPDAD and experimented with three applications. On average, STEPDAD detected a number of database deadlocks exceeding the deadlocks obtained with the baseline approach by more than an order of magnitude. In some cases, STEPDAD reproduced a database deadlock after running an application only twice, while no database deadlocks could be obtained after ten runs using the baseline approach.
Keywords :
SQL; database management systems; program testing; system recovery; SQL statement; STEPDAD; Structured Query Language; baseline approach; database-centric application testing; organization; systematic testing in presence of database deadlock; testing application; Abstracts; Databases; Engines; Programming; Software; System recovery; Testing; concurrency; database deadlock; testing;
Conference_Titel :
Software Testing, Verification and Validation (ICST), 2013 IEEE Sixth International Conference on
Conference_Location :
Luembourg
Print_ISBN :
978-1-4673-5961-0
DOI :
10.1109/ICST.2013.19