[
https://issues.apache.org/jira/browse/BOOKKEEPER-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172863#comment-13172863
]
Sijie Guo commented on BOOKKEEPER-133:
--------------------------------------
> b) ZkTopicManager#unregisterWithZookeeper shouldn't be needed
my point is to stop following requests sending to a hub server while it is
shutting down. so I add code to remove the znode first.
> I don't understand what the consume message is for?
currently auto consume is counter-based. suppose consume interval is 5. client
received and consumed 4 messages, but clients didn't tell hub server it
consumed 4 messages while it closes subscription. sending a consume message
while closing subscription is to reduce duplicated messages.
> Hub server should update subscription state to zookeeper when losing topic or
> shutting down
> -------------------------------------------------------------------------------------------
>
> Key: BOOKKEEPER-133
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-133
> Project: Bookkeeper
> Issue Type: Bug
> Components: hedwig-server
> Affects Versions: 4.0.0
> Reporter: Sijie Guo
> Assignee: Sijie Guo
> Fix For: 4.1.0
>
> Attachments: BOOKKEEPER-133.patch
>
>
> Currently hub server use counter-based mechanism to update subscription state
> lazily to zookeeper.
> But in the following case, it didn't do it.
> 1) losing ownership of Topic
> 2) hub server shuts down
> 3) a subscription channel disconnected
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira