You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2014/01/13 09:41:52 UTC

[jira] [Commented] (HAMA-845) The size() of Spilling Queue returns always numMessagesWritten

    [ https://issues.apache.org/jira/browse/HAMA-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13869358#comment-13869358 ] 

Edward J. Yoon commented on HAMA-845:
-------------------------------------

Unit test also should be changed like:

{code}
    assertEquals(queue.size(), 1000);
    queue.prepareRead();
    Text t;
    while ((t = queue.poll()) != null) {
      assertTrue(msg.equals(t.toString()));
    }
    assertEquals(queue.size(), 0);
{code}

> The size() of Spilling Queue returns always numMessagesWritten
> --------------------------------------------------------------
>
>                 Key: HAMA-845
>                 URL: https://issues.apache.org/jira/browse/HAMA-845
>             Project: Hama
>          Issue Type: Bug
>          Components: bsp core
>    Affects Versions: 0.6.3
>            Reporter: Edward J. Yoon
>             Fix For: 0.7.0
>
>
> It should be 
> {code}
>   public int size() {
>     return numMessagesWritten - numMessagesRead;
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)