incubator-hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gavin (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HAMA-270) wrong sequence of readFields() of ClusterStatus
Date Thu, 03 Jun 2010 04:39:57 GMT

     [ https://issues.apache.org/jira/browse/HAMA-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gavin updated HAMA-270:
-----------------------

    Description: 
in write method
{code}

...
out.writeInt(activeGrooms.size());
for(String groom: activeGrooms) {
        Text.writeString(out, groom);
}
...
{code}

But, readFields method has wrong sequence as follows:
{code}
...
if (numGroomNames > 0) {
      name = Text.readString(in);
      activeGrooms.add(name);
}
...
{code}

  was:
in write method
{code}

...
out.writeInt(activeGrooms.size());
for(String groom: activeGrooms) {
        Text.writeString(out, groom);
}
...
{/code}

But, readFields method has wrong sequence as follows:
{code}
...
if (numGroomNames > 0) {
      name = Text.readString(in);
      activeGrooms.add(name);
}
...
{/code}


> wrong sequence of readFields() of ClusterStatus
> -----------------------------------------------
>
>                 Key: HAMA-270
>                 URL: https://issues.apache.org/jira/browse/HAMA-270
>             Project: Hama
>          Issue Type: Bug
>          Components: bsp
>    Affects Versions: 0.2.0
>            Reporter: Hyunsik Choi
>            Assignee: Hyunsik Choi
>             Fix For: 0.2.0
>
>         Attachments: HAMA-270.patch
>
>
> in write method
> {code}
> ...
> out.writeInt(activeGrooms.size());
> for(String groom: activeGrooms) {
>         Text.writeString(out, groom);
> }
> ...
> {code}
> But, readFields method has wrong sequence as follows:
> {code}
> ...
> if (numGroomNames > 0) {
>       name = Text.readString(in);
>       activeGrooms.add(name);
> }
> ...
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message