You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Mukul Kumar Singh (JIRA)" <ji...@apache.org> on 2017/12/15 14:00:00 UTC

[jira] [Updated] (RATIS-172) TestBatchAppend fails with timeout

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

Mukul Kumar Singh updated RATIS-172:
------------------------------------
    Attachment: RATIS-172.001.patch

Thanks for the comment [~szetszwo]. The problem with the test case was that the Appender buffer capacity was too less for the SMLogentry to be added. In the test as messages are created with different sizes. Some of the messages can be created with sizes greater than 4KB. The fix increases the appender buffer size.

{code}
    SimpleMessage[] generateMsgs(int num) {
      SimpleMessage[] msgs = new SimpleMessage[num * 6];
      for (int i = 0; i < num; i++) {
        for (int j = 0; j < 6; j++) {
          byte[] bytes = new byte[1024 * (j + 1)];
          Arrays.fill(bytes, (byte) j);
          msgs[i * 6 + j] = new SimpleMessage(new String(bytes));
        }
      }
{code}

> TestBatchAppend fails with timeout
> ----------------------------------
>
>                 Key: RATIS-172
>                 URL: https://issues.apache.org/jira/browse/RATIS-172
>             Project: Ratis
>          Issue Type: Bug
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Mukul Kumar Singh
>         Attachments: RATIS-172.001.patch
>
>
> After RATIS-161, TestBatchAppend fails with timeout.
> Tried to reset the HEAD to before RATIS-161. TestBatchAppend could pass successfully.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)