[DISCUSS] PIP-63 Readonly Topic Ownership Support. Part I. Mannual for admin and consumer.

2021-10-28 Thread JiangHaiting
The original PIP-63 doc in https://github.com/apache/pulsar/wiki/PIP-63%3A-Readonly-Topic-Ownership-Support have talked about the motivation and key changes to implement this proposal. After submitting the PR (https://github.com/apache/pulsar/pull/11960), I have learned that it's not quite use

Re: [DISCUSSION] PIP-108: Add method to help user judge if consumer queue has message

2021-10-25 Thread JiangHaiting
I'm totally +1 for the feature to check if we can get message immediately from consumer, this is to say we have message locally. In my understanding, it's useful to implement some user-defined order to consume messages among different topics, in your case, the "distributed flow control ability

Re:[DISCUSSION] PIP-108: Add method to help user judge if consumer queue has message

2021-10-25 Thread JiangHaiting
Can this method "org.apache.pulsar.client.impl.ConsumerBase#getTotalIncomingMessages" do the trick? Though you have to change the type to ConsumerBase. And maybe `peek` is more suitable and useful to add to the Consumer interface?? -- Original -- From:

[PIP] Add seek by index feature for consumer

2021-09-28 Thread JiangHaiting
Hi Pulsar Community, I would like to propose a new feature for consumer, seek by index. Currently we can reset the read position of a cursor by message id or timestamp. Since we formerly introduced index in broker metadata since 2.8.0, reset cursor by index is very useful in some use cases. eg

Re: [PIP 100] Add seekByIndex for consumer api

2021-09-28 Thread JiangHaiting
get merged into the master branch. Thanks, Yunze > 2021??9??28?? ????10:04??JiangHaiting https://github.com/apache/pulsar/pull/12032 > > > > Thanks, > Haiting Jiang (Github:Jason918) --- Thanks, Haiting Jiang (Github: Jason918)

[PIP 100] Add seekByIndex for consumer api

2021-09-28 Thread JiangHaiting
Hi Pulsar Community, I'm glad to have this opportunity to propose this PIP. Currently we can reset the read position of a cursor by message id or timestamp.  Since we formerly introduced index in broker metadata since 2.9.0,  reset cursor by index is very helpful in other protocol handler (KoP