[infinispan-issues] [JBoss JIRA] (ISPN-5874) Distributed Stream sort with non sorted terminal operation can fail

William Burns (JIRA) issues at jboss.org
Fri May 20 14:41:00 EDT 2016


    [ https://issues.jboss.org/browse/ISPN-5874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240821#comment-13240821 ] 

William Burns commented on ISPN-5874:
-------------------------------------

An example is the following

{code}
CacheSet<Map.Entry<Integer, String>> entrySet = cache.entrySet();
assertEquals(10, createStream(entrySet).sorted((e1, e2) -> Integer.compare(e1.getKey(), e2.getKey())).mapToInt(Map.Entry::getKey).count());
{code}

> Distributed Stream sort with non sorted terminal operation can fail
> -------------------------------------------------------------------
>
>                 Key: ISPN-5874
>                 URL: https://issues.jboss.org/browse/ISPN-5874
>             Project: Infinispan
>          Issue Type: Bug
>    Affects Versions: 8.1.0.Alpha1
>            Reporter: William Burns
>            Assignee: William Burns
>
> Using a sort intermediate operation when another intermediate operation is applied before sort and then invoking a terminal operation that doesn't pay attention to sorting doesn't apply the other intermediate operations properly, causing issues such as CCE and others.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list