You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Denis Magda (JIRA)" <ji...@apache.org> on 2017/04/20 17:57:04 UTC
[jira] [Assigned] (IGNITE-5045) SpringDataExample returns various
rows
[ https://issues.apache.org/jira/browse/IGNITE-5045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denis Magda reassigned IGNITE-5045:
-----------------------------------
Assignee: Denis Magda
> 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.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)