2011 · 11 citations · 16 references
ComputingComputer ScienceComputer SystemsDatabasesDistributed SystemsReal-time SystemsConcurrency AnalysisConcurrency ControlConsistency ModelsDistributed TransactionsTransaction ManagementTransaction Processing SystemsConsistencyConsistency AnomaliesIsolationIsolation LevelsMulti-tier ArchitectureSerializabilityTransaction Isolation LevelsTransaction Processing
While online transaction processing applications heavily rely on the transactional properties provided by the underlying infrastructure, they often choose to not use the highest isolation level, i.e., serializability, because of the potential performance implications of costly strict two-phase locking concurrency control. Instead, modern transaction systems, consisting of an application server tier and a database tier, offer several levels of isolation providing a trade-off between performance and consistency. While it is fairly well known how to identify the anomalies that are possible under a certain level of isolation, it is much more difficult to quantify the amount of anomalies that occur during run-time of a given application. In this paper, we address this issue and present a new approach to detect, in realtime, consistency anomalies for arbitrary multi-tier applications. As the application is running, our tool detect anomalies online indicating exactly the transactions and data items involved. Furthermore, we classify the detected anomalies into patterns showing the business methods involved as well as their occurrence frequency. We use the RUBiS benchmark to show how the introduction of a new transaction type can have a dramatic effect on the number of anomalies for certain isolation levels, and how our tool can quickly detect such problem transactions. Therefore, our system can help designers to either choose an isolation level where the anomalies do not occur or to change the transaction design to avoid the anomalies.
16
The notions of consistency and predicate locks in a database system
Kapali P. Eswaran, Jim Gray, Raymond A. Lorie et al. · Communications of the ACM · 1976 · 2K citations · Full text
A critique of ANSI SQL isolation levels
Hal Berenson, Phil Bernstein, Jim Gray et al. · 1995 · 865 citations · Full text
Making snapshot isolation serializable
Alan Fekete, Dimitrios Liarokapis, Elizabeth O’Neil et al. · ACM Transactions on Database Systems · 2005 · 322 citations
A critique of ANSI SQL isolation levels
Hal Berenson, Phil Bernstein, Jim Gray et al. · ACM SIGMOD Record · 1995 · 304 citations