You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2019/09/09 08:42:00 UTC

[GitHub] [ignite] Diana-Iakovleva commented on a change in pull request #6837: IGNITE-10223: affinity list methods are added, tests are changed

Diana-Iakovleva 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_r322124788
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/cache/affinity/Affinity.java
 ##########
 @@ -188,8 +192,20 @@
      *      always first.
      * @throws IgniteException If there are no alive nodes for this cache.
      */
+    @Deprecated
     public Collection<ClusterNode> mapKeyToPrimaryAndBackups(K key);
 
+    /**
+     * Gets primary and backup nodes for the key. Primary node is always
+     * first in the returned list.
+     *
+     * @param key Key to get affinity nodes for.
+     * @return List of primary and backup nodes for the key with primary node
+     *      always first.
+     * @throws IgniteException If there are no alive nodes for this cache.
+     */
+    public List<ClusterNode> mapKeyToPrimaryAndBackupsList(K key);
 
 Review comment:
     Can you please explain why do we need it? Clients with old version would use old method which hadn't been changed. All interface implementations are cited in the same module as I see

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