Skip to content

Conversation

satushh
Copy link
Collaborator

@satushh satushh commented Sep 28, 2025

What type of PR is this?

Uncomment one line below and remove others.

Bug fix
Feature
Documentation
Other

What does this PR do? Why is it needed?

Which issues(s) does this PR fix?

Attempts to fix #15738

Other notes for review

Alternative proposals:

Acknowledgements

// Even if sub is nil (topic already exists), we need to track the subnet
// to avoid repeated subscription attempts every slot.
if sub == nil {
// Topic already exists, get the existing subscription for tracking
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does sub==nil mean that the topic already exists?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that sub == nil being true means: the topic either exists or someone else has reserved it or we failed to subscribe to the topic earlier. In all of these cases, it is worth tracking the corresponding sub.

The comment "topic already exists" is a simplification, I can edit it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Provided topic already has an active subscription running log

2 participants