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 upward. The two serializable engines differ by a smaller, though significant, 6-9 percentage points. Aborts vanish when clients stop sharing rows. A bounded retry envelope converts almost all aborts into commits, at a 5.5-fold throughput cost relative to read committed. On a mixed workload, unmodified code exposes application-visible failures in 11-28% of transactions. Wrapping scanner-flagged transactions in the envelope removes 99.3% of these failures, with a throughput cost that is significant only at 32 clients. A heuristic isolation risk scanner classifies all 21 objects of a small author-built corpus correctly; the 95% confidence interval for its recall is 0.74-1.00.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-12-02
Primary Topic
Distributed systems and fault tolerance
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Isolation-Aware Migration from Legacy Relational Databases to Distributed SQL: Measuring and Containing Transaction Retry Risk in AI-Assisted Modernization

Sharath Chandra Kampili
arXiv
Distributed systems and fault tolerance
preprint

Isolation-Aware Migration from Legacy Relational Databases to Distributed SQL: Measuring and Containing Transaction Retry Risk in AI-Assisted Modernization

Sharath Chandra Kampili
preprint en

Abstract

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 upward. The two serializable engines differ by a smaller, though significant, 6-9 percentage points. Aborts vanish when clients stop sharing rows. A bounded retry envelope converts almost all aborts into commits, at a 5.5-fold throughput cost relative to read committed. On a mixed workload, unmodified code exposes application-visible failures in 11-28% of transactions. Wrapping scanner-flagged transactions in the envelope removes 99.3% of these failures, with a throughput cost that is significant only at 32 clients. A heuristic isolation risk scanner classifies all 21 objects of a small author-built corpus correctly; the 95% confidence interval for its recall is 0.74-1.00.

arXiv
Dallas Independent School District (US)
Distributed systems and fault tolerance
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon