Virtual Threads and JDBC/Hibernate: Carrier Pinning Risk During Zero-Downtime Migration
A small thread-per-request application running on Java 21 or later may attempt a zero-downtime migration to virtual threads by swapping the servlet container executor. The goal is to preserve request throughput and avoid carrier-thread pinning when the data layer blocks on JDBC and Hibernate operations. Because the executor is typically fixed at application