New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulsar is creating a unlimited number topics with name _transaction_pending_ack-__pending_ack_state__transaction_pending_ack #12727
Comments
basically you start with persistent://public/default/MY_TOPIC then Pulsar creates a new topic persistent://public/default/MY_TOPIC__transaction_pending_ack and so on... |
I believe that the problem is because for each topic we create a new topic with this suffix then again TOPIC_NAME becomes TOPIC_NAME + See here: Line 53 in be4f9a7
|
@congbobo184 Could you please check this issue? |
it looks like it is a regression in 2.8.1, I didn't see that behaviour in 2.8.0 |
I have found a "workaround", basically the thing that triggers this problem is a tool that I have that lists all the topics and for each topic calls getSubscriptions:
if you run this loop many times you will see this problem. so my understanding is that |
this is a bug, I will fix it. |
Ignore system topics in unsubscribe API (workaround for apache/pulsar#12727)
fix #12727 ### Motivation Now transaction system topic can be created. ### Modifications we should not allow broker or user create by transaction system format topic. 1. checkout topic auto create. 2. admin create topic. ### Verifying this change add some test for it
@eolivelli thanks for capturing this issue. In my case such topics were in thousands and this affected Pattern Consumer. I actually thought it was error from my end but now this issue has been opened and closed, I am relieved. |
@eaba are you using transactions in productions? If so please take care of testing the upgrade from 2.8 to 2.9. |
@eolivelli thanks for the heads up. |
) fix apache#12727 ### Motivation Now transaction system topic can be created. ### Modifications we should not allow broker or user create by transaction system format topic. 1. checkout topic auto create. 2. admin create topic. ### Verifying this change add some test for it
fix #12727 ### Motivation Now transaction system topic can be created. ### Modifications we should not allow broker or user create by transaction system format topic. 1. checkout topic auto create. 2. admin create topic. ### Verifying this change add some test for it (cherry picked from commit 2c4d913)
Ignore system topics in unsubscribe API (workaround for apache/pulsar#12727)
Describe the bug
In my application I see that Pulsar is creating many topics, appending "_transaction_pending_ack-__pending_ack_state__transaction_pending_ack" to the previous topic name.
I see this "topic name"
persistent://public/default/MY_TOPIC-8975a6f5-be96-4c03-b5b9-02ad570dd1f9__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack-__pending_ack_state__transaction_pending_ack
Each topic has one subscription '__pending_ack_state'
To Reproduce
Create a Consumer with Transactions and EnableAckReceipt, use it
Expected behavior
Only at topic should be created
** Context
Pulsar version 2.8.1
The text was updated successfully, but these errors were encountered: