nizhikov commented on code in PR #11726: URL: https://github.com/apache/ignite/pull/11726#discussion_r1885015039
########## modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridNearAtomicUpdateFuture.java: ########## @@ -690,10 +700,20 @@ private void sendUpdateRequests(Map<UUID, PrimaryRequestState> mappings) { if (locUpdate != null) { cache.updateAllAsyncInternal(cctx.localNode(), locUpdate, (req, res) -> { - if (syncMode != FULL_ASYNC) - onPrimaryResponse(res.nodeId(), res, false); - else if (res.remapTopologyVersion() != null) - ((GridDhtAtomicCache<?, ?>)cctx.cache()).remapToNewPrimary(req); + CacheOperationContext prevOpCtx = cctx.operationContextPerCall(); Review Comment: Here and in GridNearAtomicAbstractUpdateFuture we use same pattern to deal with context. Let's introduce `UpdateReplyClosureContextAware` which will contains all the logic related to operation context set/clear. -- 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