ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-5045) SpringDataExample returns various rows
Date Mon, 10 Jul 2017 07:58:01 GMT

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

Mime
View raw message