You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2019/05/06 07:09:18 UTC

[GitHub] [bookkeeper] zymap edited a comment on issue #2079: Modifying configuration `nettyMaxFrameSizeBytes` does not work

zymap edited a comment on issue #2079: Modifying configuration `nettyMaxFrameSizeBytes` does not work
URL: https://github.com/apache/bookkeeper/issues/2079#issuecomment-489519991
 
 
   @hellozepp Do you have more error message when you use bookKeeper? Which type are you start ? Standalone or Cluster? I try it on my laptop it work looks good. I set `nettyMaxFrameSizeBytes=10485760` and my test code : 
   ```
   long id = write.getId();
           long start = write.getLastAddConfirmed();
           System.out.println("start is : " + start);
           write.addEntry("hello".getBytes());
           write.addEntry(new byte[5 * 1024 * 1024]);
           write.addEntry("helloagain".getBytes());
           write.close();
   
           LedgerHandle read = bookKeeper.openLedger(id, BookKeeper.DigestType.MAC, pass);
           long last = read.getLastAddConfirmed();
           System.out.println("last add confirm : " + last);
   
           Enumeration<LedgerEntry> e = read.readEntries(0, last);
           while (e.hasMoreElements()) {
               LedgerEntry entry = e.nextElement();
               byte[] bytes = entry.getEntry();
               System.out.println(new String(bytes, StandardCharsets.UTF_8));
           }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services