skip to main content
10.1145/3301419.3323970acmconferencesArticle/Chapter ViewAbstractPublication PageseurosysConference Proceedingsconference-collections
research-article

Invariant Safety for Distributed Applications

Published:25 March 2019Publication History

ABSTRACT

We study a proof methodology for verifying the safety of data invariants of highly-available distributed applications that replicate state. The proof is (1) modular: one can reason about each individual operation separately, and (2) sequential: one can reason about a distributed application as if it were sequential. We automate the methodology and illustrate the use of the tool with a representative example.

References

  1. C. Baquero, P. S. Almeida, A. Cunha, and C. Ferreira. Composition in state-based replicated data types. Bulletin of the EATCS, 123, 2017. URL http://eatcs.org/beatcs/index.php/beatcs/article/view/507.Google ScholarGoogle Scholar
  2. M. Barnett, B.-Y. E. Chang, R. DeLine, B. Jacobs, and K. R. M. Leino. Boogie: A modular reusable verifier for object-oriented programs. In Proceedings of the 4th International Conference on Formal Methods for Components and Objects, FMCO'05, pages 364--387, Berlin, Heidelberg, 2006. Springer-Verlag. ISBN 3-540-36749-7, 978-3-540-36749-9. URL http://dx.doi.org/10.1007/11804192_17. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. S. Burckhardt. Principles of Eventual Consistency, volume 1 of Foundations and Trends in Programming Languages. Now Publishers, Oct. 2014. URL http://research.microsoft.com/pubs/230852/final-printversion-10-5-14.pdf. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. S. Burckhardt, A. Gotsman, H. Yang, and M. Zawirski. Replicated data types: Specification, verification, optimality. pages 271--284, San Diego, CA, USA, Jan. 2014. URL http://doi.acm.org/10.1145/2535838.2535848. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. V. B. F. Gomes, M. Kleppmann, D. P. Mulligan, and A. R. Beresford. A framework for establishing strong eventual consistency for conflict-free replicated datatypes. Archive of Formal Proofs, 2017, 2017. URL https://www.isa-afp.org/entries/CRDT.shtml.Google ScholarGoogle Scholar
  6. A. Gotsman, H. Yang, C. Ferreira, M. Najafzadeh, and M. Shapiro. 'Cause I'm Strong Enough: Reasoning about consistency choices in distributed systems. pages 371--384, St. Petersburg, FL, USA, 2016. URL http://dx.doi.org/10.1145/2837614.2837625. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. R. Jagadeesan and J. Riely. Eventual consistency for CRDTs. In A. Ahmed, editor, Programming Languages and Systems - 27th European Symposium on Programming, ESOP 2018, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2018, Thessaloniki, Greece, April 14-20, 2018, Proceedings, volume 10801 of Lecture Notes in Computer Science, pages 968--995. Springer, 2018. ISBN 978-3-319-89883-4. URL https://doi.org/10.1007/978-3-319-89884-1_34.Google ScholarGoogle Scholar
  8. G. Marcelino, V. Balegas, and C. Ferreira. Bringing hybrid consistency closer to programmers. PaPoC '17, pages 6:1--6:4, Belgrade, Serbia, 2017. ACM. URL http://doi.acm.org/10.1145/3064889.3064896. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. S. Nair and M. Shapiro. Improving the "Correct Eventual Consistency" tool. Rapport de recherche RR-9191, Paris, France, July 2018. URL https://hal.inria.fr/hal-01832888.Google ScholarGoogle Scholar
  10. M. Najafzadeh, A. Gotsman, H. Yang, C. Ferreira, and M. Shapiro. The CISE tool: Proving weakly-consistent applications correct. EuroSys 2016 workshops, London, UK, Apr. 2016. URL http://dx.doi.org/10.1145/2911151.2911160. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. P. W. O'Hearn. Resources, concurrency, and local reasoning. Theor. Comput. Sci., 375(1-3):271--307, 2007. URL https://doi.org/10.1016/j.tcs.2006.12.035. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. M. Shapiro, N. Preguiça, C. Baquero, and M. Zawirski. A comprehensive study of Convergent and Commutative Replicated Data Types. Technical Report 7506, Jan. 2011.Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. M. Shapiro, N. Preguiça, C. Baquero, and M. Zawirski. Conflict-free replicated data types. volume 6976, pages 386--400, Grenoble, France, Oct. 2011. URL https://doi.org/10.1007/978-3-642-24550-3_29. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. K. Sivaramakrishnan, G. Kaki, and S. Jagannathan. Declarative programming over eventually consistent data stores. PLDI '15, pages 413--424, Portland, OR, USA, 2015. URL http://doi.acm.org/10.1145/2737924.2737981. Google ScholarGoogle ScholarDigital LibraryDigital Library
  1. Invariant Safety for Distributed Applications

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in
          • Published in

            cover image ACM Conferences
            PaPoC '19: Proceedings of the 6th Workshop on Principles and Practice of Consistency for Distributed Data
            March 2019
            45 pages
            ISBN:9781450362764
            DOI:10.1145/3301419

            Copyright © 2019 ACM

            © 2019 Association for Computing Machinery. ACM acknowledges that this contribution was authored or co-authored by an employee, contractor or affiliate of a national government. As such, the Government retains a nonexclusive, royalty-free right to publish or reproduce this article, or to allow others to do so, for Government purposes only.

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 25 March 2019

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • research-article
            • Research
            • Refereed limited

            Acceptance Rates

            Overall Acceptance Rate34of47submissions,72%

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader