Migrate Ignite 2 transactions to Ignite 3
MSALIgnite 3 transactions are begun with IgniteTransactions.begin(), are not AutoCloseable, and are not bound to the thread. A try-with-resources over txStart() becomes a transaction begun before a try block that rolls it back in its finally block, which does nothing once the transaction has committed, as close() did in Ignite 2. Ignite 3 has no concurrency or isolation modes, so those arguments are dropped; a timeout becomes TransactionOptions.timeoutMillis. Where the transaction is in scope of a call that may have run in it implicitly, such as a method of the application, a comment says that the operations meant to run in it now need it as an argument.
org. openrewrite. apache. ignite. MigrateTransactionsmod run . --recipe= org. openrewrite. apache. ignite. MigrateTransactionsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.