timoninmaxim commented on a change in pull request #8206:
URL: https://github.com/apache/ignite/pull/8206#discussion_r489181956



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/client/thin/ReliableChannel.java
##########
@@ -62,16 +68,19 @@
     private final Function<ClientChannelConfiguration, ClientChannel> 
chFactory;
 
     /** Client channel holders for each configured address. */
-    private final ClientChannelHolder[] channels;
+    private final AtomicReference<List<ClientChannelHolder>> channels = new 
AtomicReference<>();

Review comment:
       Fixed.

##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/client/thin/ReliableChannel.java
##########
@@ -62,16 +68,19 @@
     private final Function<ClientChannelConfiguration, ClientChannel> 
chFactory;
 
     /** Client channel holders for each configured address. */
-    private final ClientChannelHolder[] channels;
+    private final AtomicReference<List<ClientChannelHolder>> channels = new 
AtomicReference<>();
 
     /** Index of the current channel. */
-    private int curChIdx;
+    private volatile int curChIdx = -1;
 
     /** Partition awareness enabled. */
     private final boolean partitionAwarenessEnabled;
 
     /** Cache partition awareness context. */
-    private final ClientCacheAffinityContext affinityCtx;
+    private final ClientCacheAffinityContext affCtx;

Review comment:
       Fixed.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to