This is an automated email from the ASF dual-hosted git repository. timoninmaxim 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 fe7dada84d1 IGNITE-17916 Deprecate IGNITE_ALLOW_ATOMIC_OPS_IN_TX (#10327) fe7dada84d1 is described below commit fe7dada84d18ec1ded30296ecc993d2e9acd4d36 Author: Julia Bakulina <96814257+j-bak...@users.noreply.github.com> AuthorDate: Wed Oct 19 12:52:57 2022 +0300 IGNITE-17916 Deprecate IGNITE_ALLOW_ATOMIC_OPS_IN_TX (#10327) --- .../src/main/java/org/apache/ignite/IgniteSystemProperties.java | 4 ++++ .../ignite/internal/processors/cache/CacheOperationContext.java | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/core/src/main/java/org/apache/ignite/IgniteSystemProperties.java b/modules/core/src/main/java/org/apache/ignite/IgniteSystemProperties.java index 3c61822fefa..94cf595f0eb 100644 --- a/modules/core/src/main/java/org/apache/ignite/IgniteSystemProperties.java +++ b/modules/core/src/main/java/org/apache/ignite/IgniteSystemProperties.java @@ -605,9 +605,13 @@ public final class IgniteSystemProperties { /** * Flag indicating whether atomic operations allowed for use inside transactions. + * + * @deprecated Since version 2.15.0. To be deleted since version 2.16.0. + * Since version 2.16.0 all atomic operations within transactions will be forbidden. */ @SystemProperty(value = "Allows atomic operations inside transactions", defaults = "true") + @Deprecated public static final String IGNITE_ALLOW_ATOMIC_OPS_IN_TX = "IGNITE_ALLOW_ATOMIC_OPS_IN_TX"; /** diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheOperationContext.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheOperationContext.java index 7f22f538643..0c5c70de5c9 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheOperationContext.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheOperationContext.java @@ -31,8 +31,13 @@ import static org.apache.ignite.IgniteSystemProperties.IGNITE_ALLOW_ATOMIC_OPS_I * Cache operation context. */ public class CacheOperationContext implements Serializable { - /** */ + //TODO IGNITE-8801 remove this and set default as `false`. + /** + * @deprecated Since version 2.15.0. To be deleted since version 2.16.0. + * Since version 2.16.0 all atomic operations within transactions will be forbidden. + */ + @Deprecated public static final boolean DFLT_ALLOW_ATOMIC_OPS_IN_TX = IgniteSystemProperties.getBoolean(IGNITE_ALLOW_ATOMIC_OPS_IN_TX, true);