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_r321997741
##########
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) {
Review comment:
Please, write it in one line: `@Override public`
Any reason to copy-paste implementation from `mapKeyToPrimaryAndBackupsList`?
----------------------------------------------------------------
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