This is an automated email from the ASF dual-hosted git repository.

shishkovilja pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 47732aa3d6a [MINOR] Fix doc about closing a transaction (#12310)
47732aa3d6a is described below

commit 47732aa3d6a74f89be6bfbb085b957151ff83bb9
Author: Ilya Shishkov <[email protected]>
AuthorDate: Fri Sep 5 08:54:35 2025 +0300

    [MINOR] Fix doc about closing a transaction (#12310)
---
 docs/_docs/key-value-api/transactions.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/_docs/key-value-api/transactions.adoc 
b/docs/_docs/key-value-api/transactions.adoc
index cf597bcb7ba..9aef1368a97 100644
--- a/docs/_docs/key-value-api/transactions.adoc
+++ b/docs/_docs/key-value-api/transactions.adoc
@@ -87,7 +87,7 @@ 
include::code-snippets/cpp/src/transactions.cpp[tag=transactions-execution,inden
 
 [WARNING]
 ====
-It is critical that an Ignite Transaction be `closed` regardless of its commit 
state. This ensures that all resources are released and the transaction is no 
longer bound to the current thread. Therefore, the `try-with-resource` 
statement is highly recommended when working with transactions.
+It is critical that an Ignite Transaction should be `closed` regardless of its 
commit state or ocurred exceptions. Using of `try-with-resources` is 
recommended approach, but you can also explicitly call `rollback` when catching 
exceptions. Calling of `close`, `commit` or `rollback` ensures that all 
resources are released and the transaction is no longer bound to the current 
thread.
 ====
 
 ////

Reply via email to