Isolation-Aware Migration from Legacy Relational Databases to Distributed SQL: Measuring and Containing Transaction Retry Risk in AI-Assisted Modernization
Large language models (LLMs) are increasingly used to translate schemas and procedural code when enterprises migrate from single-node relational databases to distributed SQL systems. Translation, however, addresses only syntax. When the target uses optimistic, serializable concurrency control, applications written for lock-based read-committed isolation encounter serialization aborts that the original code never handled, and these failures surface under production contention rather than in functional testing. We treat this behavioral gap as a first-class migration concern. We propose eight architecture patterns that wrap probabilistic LLM translation in deterministic verification, and we integrate them into a reference architecture whose cutover is governed by service level objectives. We then evaluate the behavioral core empirically. On a single-hot-row read-modify-write microbenchmark at 32 concurrent clients, two serializable configurations abort 79-86% of transaction attempts. A read-committed configuration aborts none, but for this code it permits lost updates. Welch tests show that the gap between serializable and read-committed isolation is significant from four clients…
- arXiv
- 2612.04651
- Authors
- Sharath Chandra Kampili
- Categories
- cs.DB · cs.DC · cs.SE