petrov-mg commented on code in PR #13243:
URL: https://github.com/apache/ignite/pull/13243#discussion_r3455753234


##########
modules/core/src/main/java/org/apache/ignite/internal/thread/context/DistributedOperationContextManager.java:
##########
@@ -0,0 +1,128 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.ignite.internal.thread.context;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.ConcurrentSkipListMap;
+import org.apache.ignite.IgniteException;
+import org.apache.ignite.internal.DistributedOperationContextMessage;
+import org.apache.ignite.internal.util.typedef.F;
+import org.apache.ignite.plugin.extensions.communication.Message;
+import org.jetbrains.annotations.Nullable;
+
+/**
+ * A manager of {@link OperationContextAttribute} which are required to be 
propagated through a cluster.

Review Comment:
   `/**
    * Provides the ability to manage {@link OperationContext} attributes in a 
distributed manner.
    *
    * <p>This mechanism is primarily used to propagate {@link OperationContext} 
state across the cluster by
    * capturing it before a message is sent, transferring it together with the 
message, and restoring it on
    * the receiving node before message processing begins.</p>
    *
    * <p>The implementation relies on a mapping between a distributed 
identifier and an
    * {@link OperationContextAttribute} instance that is consistent across all 
cluster nodes.</p>
    *
    * <p>To enable propagation of an {@link OperationContextAttribute} value 
across cluster nodes, the
    * attribute must be created using the {@link 
#createDistributedAttribute(byte, Message)} method.
    *
    * <p> Note, that the maximum number of distributed attribute instances that 
can be created is currently limited to
    * {@link #MAX_DISTRIBUTED_ATTR_CNT} for implementation reasons.</p>
    *
    * @see OperationContext
    * @see DistributedOperationContextMessage
    */`



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