timoninmaxim commented on code in PR #11559: URL: https://github.com/apache/ignite/pull/11559#discussion_r1847995288
########## modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java: ########## @@ -1059,16 +1064,25 @@ public List<GridCacheClearAllRunnable<K, V>> splitClearLocally(boolean srv, bool /** {@inheritDoc} */ @Override public void clear() throws IgniteCheckedException { + if (ctx.transactional() && ctx.grid().transactions().tx() != null) Review Comment: Code duplication. Check must be performed in a single place. -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org