nizhikov commented on a change in pull request #6837: IGNITE-10223: affinity
list methods are added, tests are changed
URL: https://github.com/apache/ignite/pull/6837#discussion_r321997780
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/affinity/GridCacheAffinityImpl.java
##########
@@ -218,20 +219,40 @@ public GridCacheAffinityImpl(GridCacheContext<K, V>
cctx) {
return res;
}
- /** {@inheritDoc} */
+ /** @deprecated Use mapKeyToPrimaryAndBackupsList(K) instead */
+ @Deprecated
@Override public Collection<ClusterNode> mapKeyToPrimaryAndBackups(K key) {
A.notNull(key, "key");
return cctx.affinity().nodesByPartition(partition(key),
topologyVersion());
}
/** {@inheritDoc} */
+ @Override
+ public List<ClusterNode> mapKeyToPrimaryAndBackupsList(K key) {
+ A.notNull(key, "key");
+
+ return cctx.affinity().nodesByPartition(partition(key),
topologyVersion());
+ }
+
+ @Deprecated
+ /**
+ * @deprecated Use
GridCacheAffinityImpl#mapPartitionToPrimaryAndBackupsList(int) instead
+ */
@Override public Collection<ClusterNode>
mapPartitionToPrimaryAndBackups(int part) {
A.ensure(part >= 0 && part < partitions(), "part >= 0 && part < total
partitions");
return cctx.affinity().nodesByPartition(part, topologyVersion());
}
+ /** {@inheritDoc} */
+ @Override
Review comment:
Please, write it in one line: `@Override public`
----------------------------------------------------------------
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]
With regards,
Apache Git Services