pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

revert terminate topic

Open laxpio opened this issue 6 years ago • 7 comments

Is your feature request related to a problem? Please describe. sometimes need restrict publish message,when use terminate function,the topic will can not be reverted as a normal topic

Describe the solution you'd like Support un-terminate function

laxpio avatar Nov 20 '19 01:11 laxpio

@laxpio Thanks for open this issue. Do you mind share a little of your use case? why a topic is terminated but need to revert?

jiazhai avatar Nov 21 '19 02:11 jiazhai

case 1: update/modify route function,before update function,need restrict message write to the topic,prevent dirty data from being written to other topics case 2: Misoperation

laxpio avatar Nov 21 '19 07:11 laxpio

Same feature request.

Srar avatar Sep 17 '21 16:09 Srar

Same expectation too

truong-hua avatar Oct 28 '22 02:10 truong-hua

Looks like we can just delete the terminated topic and create a new one with the same topic name? After the topic is terminated, the consumer can continue to consume messages. We can safely delete the topic after the backlogs have been cleaned up.

codelipenghui avatar Oct 28 '22 03:10 codelipenghui

Thank @codelipenghui for a workaround solution but I think in reality, what will happen to us is that we have to force delete the topic and make sure that every consumer can re-subscribe properly to the new topic. Besides, creating a topic of our system is not as easy as just creating but it's a provisioning process with many configurations/policies has to be applied like retention, message rate, subscription policies and etc. So that why we expect a un-terminate/resume method which will help to prevent the re-provisioning of the topic with a lot of verifications later. To me, it's likely why we need the terminate feature while we can block publishers by restricting their IPs. Another point worth talking is that we don't expect to lose all topic history after the termination which is very important to our business requirements.

truong-hua avatar Oct 30 '22 16:10 truong-hua

To me, it's likely why we need the terminate feature while we can block publishers by restricting their IPs. Another point worth talking is that we don't expect to lose all topic history after the termination which is very important to our business requirements.

I think it should not be a case that topic termination wants to resolve. We should only terminate the topic if we know the topic will not be used (producer first. consumes tries to drain the backlog then closes eventually.)

If the requirement is how to prevent the producers to publish new messages. I think we should use the publish rate limiter, backlog quota policy to block the producer or just a proxy to prevent producer connections.

codelipenghui avatar Oct 31 '22 04:10 codelipenghui

Closed as answered.

tisonkun avatar Dec 09 '22 04:12 tisonkun