{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,9]],"date-time":"2026-11-09T21:20:54Z","timestamp":1794259254253,"version":"4.9.0"},"reference-count":46,"publisher":"Association for Computing Machinery (ACM)","issue":"9","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2020,5]]},"abstract":"<jats:p>\n            Formal modelling is a powerful tool for developing complex systems. At MongoDB, we use TLA\n            <jats:sup>+<\/jats:sup>\n            to model and verify multiple aspects of several systems. Ensuring conformance between a specification and its implementation can add value to any specification; it can avoid transcription errors, prevent bugs as a large organization rapidly develops the specified code, and even keep multiple implementations of the same specification in sync. In this paper, we explore model-based testing as a tool for ensuring specification-implementation conformance. We attempted two case studies: model-based trace-checking (MBTC) in the MongoDB Server's replication protocol and model-based test-case generation (MBTCG) in MongoDB Realm Sync's operational transformation algorithm. We found MBTC to be impractical for testing that the Server conformed to a highly abstract specification. MBTCG was highly successful for Realm Sync, however. We analyze why one technique succeeded and the other failed, and advise future implementers making similar attempts at model-based testing.\n          <\/jats:p>","DOI":"10.14778\/3397230.3397233","type":"journal-article","created":{"date-parts":[[2020,6,29]],"date-time":"2020-06-29T11:46:24Z","timestamp":1593431184000},"page":"1346-1358","source":"Crossref","is-referenced-by-count":25,"title":["Extreme modelling in practice"],"prefix":"10.14778","volume":"13","author":[{"given":"A. Jesse Jiryu","family":"Davis","sequence":"first","affiliation":[{"name":"MongoDB, Inc."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Max","family":"Hirschhorn","sequence":"additional","affiliation":[{"name":"MongoDB, Inc."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Judah","family":"Schvimer","sequence":"additional","affiliation":[{"name":"MongoDB, Inc."}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2020,6,26]]},"reference":[{"key":"e_1_2_1_2_1","first-page":"225","volume-title":"STEP","author":"Augusto J. C.","year":"2003","unstructured":"J. C. Augusto , Y. Howard , A. M. Gravell , C. Ferreira , S. Gruner , and M. Leuschel . Model-Based Approaches for Validating Business Critical Systems . In STEP , pages 225 -- 233 . IEEE Computer Society , 2003 . J. C. Augusto, Y. Howard, A. M. Gravell, C. Ferreira, S. Gruner, and M. Leuschel. Model-Based Approaches for Validating Business Critical Systems. In STEP, pages 225--233. IEEE Computer Society, 2003."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/1391469.1391675"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-96142-2_26"},{"key":"e_1_2_1_5_1","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"crossref","first-page":"430","DOI":"10.1007\/978-3-319-96142-2_26","volume-title":"Computer Aided Verification - 30th International Conference, CAV","author":"Chudnov A.","year":"2018","unstructured":"A. Chudnov , N. Collins , B. Cook , J. Dodds , B. Huffman , C. MacC\u00e1rthaigh , S. Magill , E. Mertens , E. Mullen , S. Tasiran , A. Tomb , and E. Westbrook . Continuous Formal Verification of Amazon s2n . In H. Chockler and G. Weissenbacher, editors, Computer Aided Verification - 30th International Conference, CAV 2018 , Held as Part of the Federated Logic Conference, FloC 2018, Oxford, UK, July 14-17, 2018, Proceedings, Part II, volume 10982 of Lecture Notes in Computer Science , pages 430 -- 446 . Springer , 2018. A. Chudnov, N. Collins, B. Cook, J. Dodds, B. Huffman, C. MacC\u00e1rthaigh, S. Magill, E. Mertens, E. Mullen, S. Tasiran, A. Tomb, and E. Westbrook. Continuous Formal Verification of Amazon s2n. In H. Chockler and G. Weissenbacher, editors, Computer Aided Verification - 30th International Conference, CAV 2018, Held as Part of the Federated Logic Conference, FloC 2018, Oxford, UK, July 14-17, 2018, Proceedings, Part II, volume 10982 of Lecture Notes in Computer Science, pages 430--446. Springer, 2018."},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-96145-3_3"},{"key":"e_1_2_1_7_1","volume-title":"Industry Paper: The Use of Change Point Detection to Identify Software Performance Regressions in a Continuous Integration System","author":"Daly D.","year":"2020","unstructured":"D. Daly , W. Brown , H. Ingo , J. O'Leary , and D. Bradford . Industry Paper: The Use of Change Point Detection to Identify Software Performance Regressions in a Continuous Integration System . 2020 . D. Daly, W. Brown, H. Ingo, J. O'Leary, and D. Bradford. Industry Paper: The Use of Change Point Detection to Identify Software Performance Regressions in a Continuous Integration System. 2020."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0024651"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-60045-0_63"},{"key":"e_1_2_1_10_1","volume-title":"Concurrent Development of Model and Implementation. CoRR, abs\/1111.2826","author":"Gravell A. M.","year":"2011","unstructured":"A. M. Gravell , Y. Howard , J. C. Augusto , C. Ferreira , and S. Gruner . Concurrent Development of Model and Implementation. CoRR, abs\/1111.2826 , 2011 . A. M. Gravell, Y. Howard, J. C. Augusto, C. Ferreira, and S. Gruner. Concurrent Development of Model and Implementation. CoRR, abs\/1111.2826, 2011."},{"key":"e_1_2_1_11_1","volume-title":"Modeling in Data Base Management Systems. North Holland","author":"Gray J.","year":"1976","unstructured":"J. Gray , G. Putzolu , and I. Traiger . Granularity of locks and degrees of consistency in a shared data base . In Modeling in Data Base Management Systems. North Holland , Amsterdam , 1976 . J. Gray, G. Putzolu, and I. Traiger. Granularity of locks and degrees of consistency in a shared data base. In Modeling in Data Base Management Systems. North Holland, Amsterdam, 1976."},{"key":"e_1_2_1_12_1","volume-title":"MongoDB's JavaScript fuzzer. Communications of the ACM, 60:43--47, 04","author":"Guo R.","year":"2017","unstructured":"R. Guo . MongoDB's JavaScript fuzzer. Communications of the ACM, 60:43--47, 04 2017 . R. Guo. MongoDB's JavaScript fuzzer. Communications of the ACM, 60:43--47, 04 2017."},{"key":"e_1_2_1_13_1","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"crossref","first-page":"76","DOI":"10.1007\/978-3-540-24732-6_6","volume-title":"Model Checking Software, 11th International SPIN Workshop","author":"Holzmann G. J.","year":"2004","unstructured":"G. J. Holzmann and R. Joshi . Model-Driven Software Verification . In S. Graf and L. Mounier, editors, Model Checking Software, 11th International SPIN Workshop , Barcelona, Spain, April 1-3, 2004 , Proceedings, volume 2989 of Lecture Notes in Computer Science , pages 76 -- 91 . Springer , 2004. G. J. Holzmann and R. Joshi. Model-Driven Software Verification. In S. Graf and L. Mounier, editors, Model Checking Software, 11th International SPIN Workshop, Barcelona, Spain, April 1-3, 2004, Proceedings, volume 2989 of Lecture Notes in Computer Science, pages 76--91. Springer, 2004."},{"key":"e_1_2_1_14_1","first-page":"35","volume-title":"Framework for Wireless Sensor Networks Code Generation from Formal Specification","author":"Houhou S.","year":"2017","unstructured":"S. Houhou , L. Kahloul , S. Benharzallah , and R. Bettira . Framework for Wireless Sensor Networks Code Generation from Formal Specification . pages 35 -- 52 , 09 2017 . S. Houhou, L. Kahloul, S. Benharzallah, and R. Bettira. Framework for Wireless Sensor Networks Code Generation from Formal Specification. pages 35--52, 09 2017."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.5555\/1241889.1241904"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2005.09.066"},{"key":"e_1_2_1_17_1","first-page":"396","volume-title":"A General Approach to Trace-Checking in Distributed Computing Systems","author":"Jard C.","year":"1994","unstructured":"C. Jard , T. J\u00e9ron , G.-V. Jourdan , and J.-X. Rampon . A General Approach to Trace-Checking in Distributed Computing Systems . pages 396 -- 403 , Los Alamitos, CA , USA, June 1994 . IEEE Computer Society Press . C. Jard, T. J\u00e9ron, G.-V. Jourdan, and J.-X. Rampon. A General Approach to Trace-Checking in Distributed Computing Systems. pages 396--403, Los Alamitos, CA, USA, June 1994. IEEE Computer Society Press."},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1016\/0164-1212(83)90018-3"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-02658-4_32"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.14778\/3352063.3352140"},{"key":"e_1_2_1_21_1","first-page":"4","article-title":"Formal Verification","author":"Greenstreet Kern","year":"1999","unstructured":"Kern and Greenstreet . Formal Verification In Hardware Design: A Survey. ACMTDAES: ACM Transactions on Design Automation of Electronic Systems , 4 , 1999 . Kern and Greenstreet. Formal Verification In Hardware Design: A Survey. ACMTDAES: ACM Transactions on Design Automation of Electronic Systems, 4, 1999.","journal-title":"Hardware Design: A Survey. ACMTDAES: ACM Transactions on Design Automation of Electronic Systems"},{"key":"e_1_2_1_22_1","volume-title":"Calculational System Design","author":"Lamport L.","year":"1999","unstructured":"L. Lamport . Specifying Concurrent Systems with TLA+ . In Calculational System Design , Amsterdam, 1999 . IOS Press . L. Lamport. Specifying Concurrent Systems with TLA+. In Calculational System Design, Amsterdam, 1999. IOS Press."},{"key":"e_1_2_1_23_1","volume-title":"Specifying Systems: The TLA+ Language and Tools for Hardware and Software Engineers","author":"Lamport L.","year":"2002","unstructured":"L. Lamport . Specifying Systems: The TLA+ Language and Tools for Hardware and Software Engineers . Addison-Wesley Longman Publishing Co., Inc. , USA , 2002 . L. Lamport. Specifying Systems: The TLA+ Language and Tools for Hardware and Software Engineers. Addison-Wesley Longman Publishing Co., Inc., USA, 2002."},{"key":"e_1_2_1_24_1","volume-title":"Auxiliary Variables in TLA+. CoRR, abs\/1703.05121","author":"Lamport L.","year":"2017","unstructured":"L. Lamport and S. Merz . Auxiliary Variables in TLA+. CoRR, abs\/1703.05121 , 2017 . L. Lamport and S. Merz. Auxiliary Variables in TLA+. CoRR, abs\/1703.05121, 2017."},{"key":"e_1_2_1_25_1","series-title":"LNCS","first-page":"21","volume-title":"L.-H","author":"Legeard B.","year":"2002","unstructured":"B. Legeard , F. Peureux , and M. Utting . Automated Boundary Testing from Z and B . In L.-H . Eriksson and P. A. Lindsay, editors, Formal Methods---Getting IT Right, volume 2391 of LNCS , pages 21 -- 40 . Springer-Verlag , July 2002 . B. Legeard, F. Peureux, and M. Utting. Automated Boundary Testing from Z and B. In L.-H. Eriksson and P. A. Lindsay, editors, Formal Methods---Getting IT Right, volume 2391 of LNCS, pages 21--40. Springer-Verlag, July 2002."},{"key":"e_1_2_1_26_1","unstructured":"TLA+ specification for MongoDB Locking Behaviors. https:\/\/github.com\/visualzhou\/mongo-locking-tla.  TLA + specification for MongoDB Locking Behaviors. https:\/\/github.com\/visualzhou\/mongo-locking-tla."},{"key":"e_1_2_1_27_1","unstructured":"MongoDB. https:\/\/github.com\/mongodb\/mongo.  MongoDB. https:\/\/github.com\/mongodb\/mongo."},{"key":"e_1_2_1_28_1","first-page":"37","volume-title":"Proceedings of the First International Workshop on Formal Methods in Software Engineering - Rigorous and Agile Approaches, FormSERA 2012","author":"Neubauer J.","year":"2012","unstructured":"J. Neubauer , B. Steffen , O. Bauer , S. Windm\u00fcller , M. Merten , T. Margaria , and F. Howar . Automated continuous quality assurance. In S. Gnesi, S. Gruner, N. Plat, and B. Rumpe, editors , Proceedings of the First International Workshop on Formal Methods in Software Engineering - Rigorous and Agile Approaches, FormSERA 2012 , Zurich, Switzerland , June 2, 2012 , pages 37 -- 43 . IEEE, 2012. J. Neubauer, B. Steffen, O. Bauer, S. Windm\u00fcller, M. Merten, T. Margaria, and F. Howar. Automated continuous quality assurance. In S. Gnesi, S. Gruner, N. Plat, and B. Rumpe, editors, Proceedings of the First International Workshop on Formal Methods in Software Engineering - Rigorous and Agile Approaches, FormSERA 2012, Zurich, Switzerland, June 2, 2012, pages 37--43. IEEE, 2012."},{"key":"e_1_2_1_29_1","volume-title":"Use of formal methods at Amazon Web Services","author":"Newcombe C.","year":"2014","unstructured":"C. Newcombe , T. Rath , F. Zhang , B. Munteanu , M. Brooker , and M. Deardeuff . Use of formal methods at Amazon Web Services . 2014 . C. Newcombe, T. Rath, F. Zhang, B. Munteanu, M. Brooker, and M. Deardeuff. Use of formal methods at Amazon Web Services. 2014."},{"key":"e_1_2_1_31_1","volume-title":"https:\/\/github.com\/ongardie\/raft.tla","author":"Ongaro D.","year":"2014","unstructured":"D. Ongaro . TLA+ specification for the Raft consensus algorithm. https:\/\/github.com\/ongardie\/raft.tla , 2014 . D. Ongaro. TLA+ specification for the Raft consensus algorithm. https:\/\/github.com\/ongardie\/raft.tla, 2014."},{"key":"e_1_2_1_32_1","first-page":"305","volume-title":"2014 USENIX Annual Technical Conference, USENIX ATC '14","author":"Ongaro D.","year":"2014","unstructured":"D. Ongaro and J. K. Ousterhout . In Search of an Understandable Consensus Algorithm. In G. Gibson and N. Zeldovich, editors , 2014 USENIX Annual Technical Conference, USENIX ATC '14 , Philadelphia, PA, USA , June 19-20, 2014 , pages 305 -- 319 . USENIX Association, 2014. D. Ongaro and J. K. Ousterhout. In Search of an Understandable Consensus Algorithm. In G. Gibson and N. Zeldovich, editors, 2014 USENIX Annual Technical Conference, USENIX ATC '14, Philadelphia, PA, USA, June 19-20, 2014, pages 305--319. USENIX Association, 2014."},{"key":"e_1_2_1_33_1","volume-title":"Verifying Software Traces Against a Formal Specification with TLA+ and TLC. https:\/\/pron.github.io\/files\/Trace.pdf","author":"Pressler R.","year":"2018","unstructured":"R. Pressler . Verifying Software Traces Against a Formal Specification with TLA+ and TLC. https:\/\/pron.github.io\/files\/Trace.pdf , 2018 . R. Pressler. Verifying Software Traces Against a Formal Specification with TLA+ and TLC. https:\/\/pron.github.io\/files\/Trace.pdf, 2018."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.107.5"},{"key":"e_1_2_1_35_1","unstructured":"repl-trace-checker. https:\/\/github.com\/mongodb-labs\/repl-trace-checker.  repl-trace-checker. https:\/\/github.com\/mongodb-labs\/repl-trace-checker."},{"issue":"12","key":"e_1_2_1_36_1","first-page":"2071","volume":"12","author":"Schultz W.","year":"2019","unstructured":"W. Schultz , T. Avitabile , and A. Cabral . Tunable Consistency in MongoDB. PVLDB , 12 ( 12 ): 2071 -- 2081 , 2019 . W. Schultz, T. Avitabile, and A. Cabral. Tunable Consistency in MongoDB. PVLDB, 12(12):2071--2081, 2019.","journal-title":"Tunable Consistency in MongoDB. PVLDB"},{"key":"e_1_2_1_37_1","volume-title":"A Bug's Life: Fixing a MongoDB Replication Protocol Bug with TLA+. https:\/\/conf.tlapl.us\/","author":"Schultz W.","year":"2019","unstructured":"W. Schultz and S. Zhou . A Bug's Life: Fixing a MongoDB Replication Protocol Bug with TLA+. https:\/\/conf.tlapl.us\/ , 2019 . W. Schultz and S. Zhou. A Bug's Life: Fixing a MongoDB Replication Protocol Bug with TLA+. https:\/\/conf.tlapl.us\/, 2019."},{"key":"e_1_2_1_38_1","volume-title":"Pushing the frontier of globally distributed databases. https:\/\/azure.microsoft.com\/en-us\/blog\/azure-cosmos-db-pushing-the-frontier-of-globally-distributed-databases\/","author":"Shukla D.","year":"2018","unstructured":"D. Shukla . Azure Cosmos DB : Pushing the frontier of globally distributed databases. https:\/\/azure.microsoft.com\/en-us\/blog\/azure-cosmos-db-pushing-the-frontier-of-globally-distributed-databases\/ , 2018 . D. Shukla. Azure Cosmos DB: Pushing the frontier of globally distributed databases. https:\/\/azure.microsoft.com\/en-us\/blog\/azure-cosmos-db-pushing-the-frontier-of-globally-distributed-databases\/, 2018."},{"key":"e_1_2_1_39_1","volume-title":"Patent No. US20190354540A1, Filed May 14th., 2019","author":"Stigsen A.","year":"2019","unstructured":"A. Stigsen . Conflict Resolution in Distributed Computing , Nov 2019 . Patent No. US20190354540A1, Filed May 14th., 2019 , Issued Nov. 21st. , 2019. A. Stigsen. Conflict Resolution in Distributed Computing, Nov 2019. Patent No. US20190354540A1, Filed May 14th., 2019, Issued Nov. 21st., 2019."},{"key":"e_1_2_1_40_1","first-page":"356","volume-title":"Using a formal specification and a model checker to monitor and direct simulation","author":"Tasiran S.","unstructured":"S. Tasiran , Y. Yu , and B. Batson . Using a formal specification and a model checker to monitor and direct simulation . pages 356 -- 361 . S. Tasiran, Y. Yu, and B. Batson. Using a formal specification and a model checker to monitor and direct simulation. pages 356--361."},{"key":"e_1_2_1_41_1","unstructured":"TLA+ issue 413. https:\/\/github.com\/tlaplus\/tlaplus\/issues\/413.  TLA + issue 413. https:\/\/github.com\/tlaplus\/tlaplus\/issues\/413."},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/3299869.3314049"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/639624.802072"},{"key":"e_1_2_1_44_1","volume-title":"Morgan-Kaufmann","author":"Utting M.","year":"2006","unstructured":"M. Utting and B. Legeard . Practical Model-Based Testing: A Tools Approach . Morgan-Kaufmann , 2006 . M. Utting and B. Legeard. Practical Model-Based Testing: A Tools Approach. Morgan-Kaufmann, 2006."},{"key":"e_1_2_1_45_1","volume-title":"Augmenting Agile with Formal Methods. https:\/\/www.hillelwayne.com\/post\/augmenting-agile\/","author":"Wayne H.","year":"2018","unstructured":"H. Wayne . Augmenting Agile with Formal Methods. https:\/\/www.hillelwayne.com\/post\/augmenting-agile\/ , 2018 . H. Wayne. Augmenting Agile with Formal Methods. https:\/\/www.hillelwayne.com\/post\/augmenting-agile\/, 2018."},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.5555\/646704.702012"},{"key":"e_1_2_1_47_1","volume-title":"Model-Based Trace-Checking. CoRR, abs\/1111.2825","author":"Yvonne Howard A. M. G. C. F.","year":"2011","unstructured":"A. M. G. C. F. Yvonne Howard , Stefan Gruner and J. C. Augusto . Model-Based Trace-Checking. CoRR, abs\/1111.2825 , 2011 . A. M. G. C. F. Yvonne Howard, Stefan Gruner and J. C. Augusto. Model-Based Trace-Checking. CoRR, abs\/1111.2825, 2011."},{"key":"e_1_2_1_48_1","unstructured":"M. Zalewski. American fuzzy lop. https:\/\/lcamtuf.coredump.cx\/afl\/.  M. Zalewski. American fuzzy lop. https:\/\/lcamtuf.coredump.cx\/afl\/."}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3397230.3397233","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,12,28]],"date-time":"2022-12-28T10:18:54Z","timestamp":1672222734000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3397230.3397233"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,5]]},"references-count":46,"journal-issue":{"issue":"9","published-print":{"date-parts":[[2020,5]]}},"alternative-id":["10.14778\/3397230.3397233"],"URL":"https:\/\/doi.org\/10.14778\/3397230.3397233","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2020,5]]}}}