J-Bakuli commented on code in PR #10318:
URL: https://github.com/apache/ignite/pull/10318#discussion_r1033304875
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheOperationContext.java:
##########
@@ -31,10 +32,17 @@
* Cache operation context.
*/
public class CacheOperationContext implements Serializable {
- /** */
- //TODO IGNITE-8801 remove this and set default as `false`.
- public static final boolean DFLT_ALLOW_ATOMIC_OPS_IN_TX =
- IgniteSystemProperties.getBoolean(IGNITE_ALLOW_ATOMIC_OPS_IN_TX, true);
+ /**
+ * Since 2.15.0 atomic operations inside transactions are not allowed.
+ * To return the previous behaviour and to allow transactions in
operations with atomic caches you can set system property
+ * {@link IgniteSystemProperties#IGNITE_ALLOW_ATOMIC_OPS_IN_TX
IGNITE_ALLOW_ATOMIC_OPS_IN_TX} to {@code true}.
+ * <p>
+ * If you want to use atomic operations inside transactions in case they
are restricted by system property,
+ * you should allow it before transaction start.
+ */
Review Comment:
thank you, I will delete
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]