ptupitsyn commented on code in PR #2128:
URL: https://github.com/apache/ignite-3/pull/2128#discussion_r1214104003
##########
modules/client/src/main/java/org/apache/ignite/internal/client/table/ClientTable.java:
##########
@@ -72,9 +72,9 @@ public class ClientTable implements Table {
private final Object partitionAssignmentLock = new Object();
- private CompletableFuture<List<String>> partitionAssignment = null;
+ private volatile CompletableFuture<List<String>> partitionAssignment =
null;
- private long partitionAssignmentVersion = -1;
+ private volatile long partitionAssignmentVersion = -1;
Review Comment:
`getPartitionAssignment` uses double-checked locking, which requires
`volatile`.
--
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]