You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by gi...@git.apache.org on 2017/10/14 01:02:59 UTC
[GitHub] rdhabalia commented on issue #827: C++ client is appending partition id to subscription name
rdhabalia commented on issue #827: C++ client is appending partition id to subscription name
URL: https://github.com/apache/incubator-pulsar/issues/827#issuecomment-336598524
few options to handle clients which are already using existing CPP client lib for partitioned topics which is sending invalid sub-name:
1. Broker rejects requests for the client which are using old cpp-client when it tries to create consumer for partitioned topic
2. In CPP client: while creating consumer: For partitioned-topic:
**Client change:**
let client passes the invalid subscription-name (sub-name + index: eg: `my-sub0`) and additional send actual subscription-name (sub-name: eg: `my-sub`).
**Broker change:**
broker will receive two subs-names, it means it's a partitioned-topic and coming from new cpp-lib. Now, broker will check if new sub-name (`my-sub`) present : if it's not present then broker will create a new cursor with sub-name (`my-sub`) by copying from provided invalid sub-name (`my-sub0`) and delete invalid cursor (`my-sub-0`)
3. New CPP client will pass correct sub-name. But now, broker will find out if this topic is a partitioned-topic ? If it is then is there any old-invalid-cursor present? If yes, then copy from old-invalid to new cursor and delete old-invalid cursor.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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