You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2017/07/10 07:58:01 UTC

[jira] [Updated] (IGNITE-5045) SpringDataExample returns various rows

     [ https://issues.apache.org/jira/browse/IGNITE-5045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Ozerov updated IGNITE-5045:
------------------------------------
    Fix Version/s:     (was: 2.1)
                   2.2

> SpringDataExample returns various rows
> --------------------------------------
>
>                 Key: IGNITE-5045
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5045
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Sergey Kozlov
>            Assignee: Denis Magda
>             Fix For: 2.2
>
>
> The code below returns various rows depending how to nodes interact with example node. It makes the test for this example non-deterministic. 
> {code:title=SpringDataExample.java|borderStyle=solid}
>     private static void queryRepository() {
>         System.out.println("\n>>> Persons with name 'John':");
>         List<Person> persons = repo.findByFirstName("John");
>         for (Person person: persons)
>             System.out.println("   >>>   " + person);
>         Cache.Entry<Long, Person> topPerson = repo.findTopByLastNameLike("Smith");
>         System.out.println("\n>>> Top Person with surname 'Smith': " + topPerson.getValue());
>         List<Long> ids = repo.selectId(1000L, new PageRequest(0, 4));
>         System.out.println("\n>>> Persons working for organization with ID > 1000: ");
>         for (Long id: ids)
>             System.out.println("   >>>   [id=" + id + "]");
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)