Optimizing a Long-Lived Transaction with Verification Function
- 1 The University of Aizu, Aizu-Wakamatsu City, Japan
- 2 The University of Aizu, Aizu-Wakamatsu City, Japan
Abstract
We have considered a method called Enhanced Rollback Migration Protocol, which potentially has the effects of compressing the period of compensations in a long-lived transaction, since before. In general, a compensation transaction can recover an irregular status of a long-lived transaction into the original status without holding unnecessary resources by making its consistency tentatively loose. However, it has also been pointed out that there is a difficulty of maintaining the isolation between a pair of transactions when executed in parallel. In particular, this could be more prominent under modernized scalable cloud environments. Thus, there is a proposal for concurrency control for the service level. However, there is still another risk that more computer resources will be consumed than actually necessary and an unnecessary stagnation of the processing will be caused if concurrency control is naively applied without careful consideration. Therefore, we need to implement a functionality which can optimize the processing of a long-lived transaction by selecting a suitable method between concurrency control and compensation transactions. In this paper, we propose a method in which optimistic concurrency control is applied for long-lived transactions. Furthermore, a pair of verification phases is carried out. At the beginning from a safe point, an attempt of verification is done. Then if the difficulty of isolation on a long-lived transaction executed under a competitive situation is estimated, concurrency control for the service level is applied. Alternatively, a long-lived transaction without any concurrency control is executed. At the next reachable safe point, another attempt of verification is performed. Then if a failure of serialization is detected, a set of compensation transactions is invoked to recover the original long-lived transaction by returning to the first safe point. We evaluated this approach by using numerical simulations and confirmed the basic features. This approach can realize optimizing and enhancing the performance of a long-lived transaction. We regard this approach applicable even to the modernized scalable cloud environments.
- Kikuchi, S. (2010) On Realizing Quick Compensation Transactions in Cloud Computing. In: Kikuchi, S., Sachdeva, S. and Bhalla, S., Eds., Databases in Networked Information Systems. Lecture Notes in Computer Science, Springer, Berlin, Heidelberg, 46-64. https://doi.org/10.1007/978-3-642-12038-1_5
- Kikuchi, S. and Bhalla, S. (2014) Quick Compensation Technique for Long-Lived Transactions in Cloud Based Database Environment. IEICE Technical Report SC2013-19.1-5.
- Alrifai, M., Dolog, P., Balke, W.T. and Nejdl, W. (2009) Distributed Management of Concurrent Web Service Transactions. IEEE Transactions on Service Computing, 2, 289-302. https://doi.org/10.1109/TSC.2009.29
- Garcia-Molina, H., Gawlick, D., Klein, J., Kleissner, K. and Salem, K. (1991) Modeling Long-Running Activities as Nested Sagas. IEEE Data Engineering, 14, 14-18.
- Reuter, A., Schneider, K. and Schwenkreis, F. (1997) Contracts Revisited. Advanced Transaction Models and Architectures. In: Jajodia, S. and Kerschberg, L., Eds., Advanced Transaction Models and Architectures, Springer, Boston, MA, 127-151. https://doi.org/10.1007/978-1-4615-6217-7_5
- Grefen, P., Vonk, J. and Apers, P. (2001) Global Transaction Support for Workflow Management Systems: From Formal Specification to Practical Implementation. The VLDB Journal, 10, 316-333. https://doi.org/10.1007/s007780100056
- Lee, J. and Son, S.H. (1993) Using Dynamic Adjustment of Serialization Order for Real-Time Database Systems. Proceedings of the 14th IEEE Real-Time Systems Symposium, Raleigh-Durham, NC, 66-75.
- Kikuchi, S. (2013) Architectural Design of a Compensation Mechanism for Long Lived Transactions. In: Madaan, A., Kikuchi, S. and Bhalla, S., Eds., Databases in Networked Information Systems. Lecture Notes in Computer Science, Springer, Berlin, Heidelberg, 49-66. https://doi.org/10.1007/978-3-642-37134-9_4
- OASIS WS-TX TC (2009) OASIS Standard Web Services Atomic Transaction (WS-Atomic Transaction) Version 1.2. http://docs.oasis-open.org/ws-tx/wstx-wsat-1.2-spec-os/wstx-wsat-1.2-spec-os.html
- OASIS WS-TX TC (2007) OASIS Standard Web Services Business Activity (WS-Business Activity) Version 1.1. http://docs.oasis-open.org/ws-tx/wstx-wsba-1.1-spec-os/wstx-wsba-1.1-spec-os.html
- OASIS WSBPEL TC (2007) OASIS Standard Web Services Business Process Execution Language Version 2.0. http://docs.oasis-open.org/wsbpel/2.0/OS/wsbpel-v2.0-OS.html