[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13527652#comment-13527652
 ] 

Yixue (Andrew) Zhu commented on BOOKKEEPER-256:
-----------------------------------------------

Maybe I miss something, I do not think the protocol works. For example of 
following sequence,

1. A add message, let us denote it as [A1]. The state after [A1] reached B, but 
not C yet. 
A  1
B  1 1
C

2. B add message, let us denote it as [A1, B2]. The state after [A1, B2] 
reached C.
A 1  
B 1 2
C   2  1

[A1, B2] is persisted as (B2, C1)

3. [A1] reaches C.
A 1
B 1 2
C 1 2 2

[A1] is persisted as (A1, B2 , C2)


Now, when client in Region C read from the topic, how does it interpret the 
order between [A1] versus [A1, B2], since the former is persisted as (B2, C1), 
while the latter is persisted as (A1, B2 , C2).

The problem can be addressed if we separate the region clock/version vector 
state with message persistence.

  


                
> Update remote component sequence IDs only for messages from the source region
> -----------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-256
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-256
>             Project: Bookkeeper
>          Issue Type: Improvement
>          Components: hedwig-server
>    Affects Versions: 4.0.0, 4.1.0
>            Reporter: Aniruddha
>            Assignee: Aniruddha
>            Priority: Minor
>             Fix For: 4.2.0
>
>         Attachments: BK-256.patch, BK-256.patch, BK-256-v1.patch, 
> BK-256-v2.patch
>
>
> In the current setup, remote components for a message being persisted don't 
> give any meaningful information about the number of messages the hub has 
> received for that topic from other regions. The provided patch fixes this by 
> updating the remote component of the locally persisted message for a region X 
> only if the message received by the RegionManager originates from region X. 
> Edit - You can take a look at the discussion at 
> http://mail-archives.apache.org/mod_mbox/zookeeper-bookkeeper-dev/201205.mbox/%3cCAOLhyDTEm5=p8emd8xmvcy_6ktb40rqx6dwwy50arbaebdg...@mail.gmail.com%3e
>  for context.
> Review board link : https://reviews.apache.org/r/6789/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to