ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] nizhikov commented on a change in pull request #6837: IGNITE-10223: affinity list methods are added, tests are changed
Date Sun, 08 Sep 2019 08:50:51 GMT
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_r321997762
 
 

 ##########
 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
 
 Review comment:
   Annotations should be written after  JavaDocs.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message