Skip to content

Conversation

@shibd
Copy link
Member

@shibd shibd commented Mar 1, 2023

Motivation

In v2.11.0, the system topic enables by default. This causes the GET_TOPICS_OF_NAMESPACE command to return the system topic redundantly.

And, If the transaction is enabled, the transaction-related system topic will return by the client(__transaction_buffer_snapshot, __transaction_buffer_snapshot_segments, __transaction_buffer_snapshot_indexes). This PR filters some transaction-related topics, but these are missing.

This causes some incompatibility issues: If consumers use pattern subscribe and the pattern is /tenant/namespace/.*, it will subscribe to these system topics.

Discuss mail: https://lists.apache.org/thread/qhm0zbfw0wfd1m5vj977w002qmkr5lt9

Modifications

  • Filter system topic when getting topic list by binary proto.

Verifying this change

  • testBinaryProtoSubscribeAllTopicOfNamespace will cover the don't subscribe system topic.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: shibd#21

@shibd shibd added type/bug The PR fixed a bug or issue reported a bug release/2.11.1 labels Mar 1, 2023
@shibd shibd added this to the 3.0.0 milestone Mar 1, 2023
@shibd shibd self-assigned this Mar 1, 2023
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Mar 1, 2023
@shibd shibd closed this Mar 1, 2023
@shibd shibd reopened this Mar 1, 2023
Copy link
Contributor

@poorbarcode poorbarcode left a comment

Choose a reason for hiding this comment

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

Hi @shibd
These system topics are defined by PIP-178. Could we only filter out these topics instead of all system topics?

Hi @liangyepianzhou
Could you review this PR?

@shibd
Copy link
Member Author

shibd commented Mar 2, 2023

These system topics are defined by #16042. Could we only filter out these topics instead of all system topics?

Why? I think we should filter all system topics, these topics should be invisible to the user.

@shibd shibd requested a review from poorbarcode March 2, 2023 09:15
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

+1

we should cherry pick this to branch-2.11

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

Labels

cherry-picked/branch-2.11 doc-not-needed Your PR changes do not impact docs ready-to-test release/2.11.1 type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants