J-Bakuli commented on code in PR #11559:
URL: https://github.com/apache/ignite/pull/11559#discussion_r1815238734


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java:
##########
@@ -1059,6 +1059,10 @@ 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:
   as we have discussed with @shishkovilja as 
GridCacheMvccManager#pendingExplicit contains the mapping of Thread ID to 
value, it leads to unexpected behaviour of forbidding an operation thus for 
some cases it could be useful to check with `ctx.grid().transactions().tx() != 
null` instead.



-- 
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]

Reply via email to