ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Kozlov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-5045) SpringDataExample returns various rows
Date Thu, 20 Apr 2017 16:44:04 GMT
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)

Mime
View raw message