Sergey Kozlov created IGNITE-5045:
-------------------------------------

             Summary: 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
             Fix For: 2.1


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.3.15#6346)

Reply via email to