You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Flavio Junqueira (JIRA)" <ji...@apache.org> on 2011/06/01 21:15:47 UTC

[jira] [Updated] (BOOKKEEPER-22) Exception in LedgerCache causes addEntry request to fail

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

Flavio Junqueira updated BOOKKEEPER-22:
---------------------------------------

    Attachment: BOOKKEEPER-22.patch

Uploading a preliminary patch that solves this problem, but does not include a test yet.

> Exception in LedgerCache causes addEntry request to fail
> --------------------------------------------------------
>
>                 Key: BOOKKEEPER-22
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-22
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Flavio Junqueira
>            Priority: Critical
>         Attachments: BOOKKEEPER-22.patch
>
>
> The following exception causes a client to stall:
> {noformat}
> WARN  - [NIOServerFactory:NIOServerFactory@123] - Exception in server socket loop: /0.0.0.0
> java.util.NoSuchElementException
>         at java.util.HashMap$HashIterator.nextEntry(HashMap.java:796)
>         at java.util.HashMap$EntryIterator.next(HashMap.java:834)
>         at java.util.HashMap$EntryIterator.next(HashMap.java:832)
>         at org.apache.bookkeeper.bookie.LedgerCache.grabCleanPage(LedgerCache.java:429)
>         at org.apache.bookkeeper.bookie.LedgerCache.putEntryOffset(LedgerCache.java:133)
>         at org.apache.bookkeeper.bookie.LedgerDescriptor.addEntry(LedgerDescriptor.java:84)
>         at org.apache.bookkeeper.bookie.Bookie.addEntry(Bookie.java:477)
>         at org.apache.bookkeeper.proto.BookieServer.processPacket(BookieServer.java:108)
>         at org.apache.bookkeeper.proto.NIOServerFactory$Cnxn.readRequest(NIOServerFactory.java:309)
>         at org.apache.bookkeeper.proto.NIOServerFactory$Cnxn.doIO(NIOServerFactory.java:207)
>         at org.apache.bookkeeper.proto.NIOServerFactory.run(NIOServerFactory.java:118)
> {noformat}
> The client  remains connected to the bookie, but never receives a response to the addEntry, causing the client pipeline to stall.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira