diff --git a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/transactions/TransactionResourceManager.java b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/transactions/TransactionResourceManager.java index ef8a06d2d54a..bdec6396502a 100644 --- a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/transactions/TransactionResourceManager.java +++ b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/transactions/TransactionResourceManager.java @@ -219,7 +219,7 @@ public static int getTransactionCleanupTimeout() { TRANSACTION_CLEANUP_TIMEOUT_KEY, PredefinedTypes.TYPE_INT, false); if (!ConfigMap.containsKey(transactionCleanupTimeoutKey)) { - return DEFAULT_TRX_AUTO_COMMIT_TIMEOUT; + return DEFAULT_TRX_CLEANUP_TIMEOUT; } else { Object configValue = ConfigMap.get(transactionCleanupTimeoutKey); if (configValue == null) {