You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "xulei (JIRA)" <ji...@apache.org> on 2011/08/18 13:34:27 UTC

[jira] [Updated] (BOOKKEEPER-52) Message sequence confuse due to the subscribeMsgQueue@SubscribeResponseHandler

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

xulei updated BOOKKEEPER-52:
----------------------------

    Attachment: bookkeeper-52.patch

use synchronized(this) to Synchronous the subscribeMsgQueue consume and the new message consume in asyncMessageConsume

> Message sequence confuse due to the subscribeMsgQueue@SubscribeResponseHandler
> ------------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-52
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-52
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: hedwig-client
>    Affects Versions: 3.4.0
>            Reporter: xulei
>             Fix For: 3.4.0
>
>         Attachments: bookkeeper-52.patch
>
>
> In setMessageHandler function, when subscribeMsgQueue is not empty, the main thread will consume the message in subscribeMsgQueue, at the same time, the messageHandler have been set, so the worker thread will consume new coming message in handleSubscribeMessage. So the message Sequence will be confused

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