Skip to content
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

[feature][admin] Support to get topic properties. #15944

Conversation

Technoboy-
Copy link
Contributor

@Technoboy- Technoboy- commented Jun 6, 2022

Motivation

As #12818 has supported creating topics with metadata, this patch is adding a get API to support getting topic properties.

Documentation

  • doc-not-needed
    (Please explain why)

@Technoboy- Technoboy- self-assigned this Jun 6, 2022
@Technoboy- Technoboy- added this to the 2.11.0 milestone Jun 6, 2022
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 6, 2022
@Technoboy- Technoboy- marked this pull request as ready for review June 6, 2022 05:04
@Technoboy- Technoboy- changed the title [feature][admin] Support to get non-partitioned topic properties. [feature][admin] Support to get topic properties. Jun 6, 2022
@codelipenghui codelipenghui added release/2.10.1 type/feature The PR added a new feature or issue requested a new feature labels Jun 6, 2022
Copy link
Contributor

@Jason918 Jason918 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@mattisonchao mattisonchao left a comment

Choose a reason for hiding this comment

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

LGTM, Left some small suggestions.

@codelipenghui codelipenghui merged commit 1ebe4ee into apache:master Jun 8, 2022
codelipenghui pushed a commit that referenced this pull request Jun 12, 2022
As #12818 has supported creating topics with metadata, this patch is adding a `get` API to support getting topic properties.

(cherry picked from commit 1ebe4ee)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jun 13, 2022
As apache#12818 has supported creating topics with metadata, this patch is adding a `get` API to support getting topic properties.

(cherry picked from commit 1ebe4ee)
(cherry picked from commit 6648f99)
@Technoboy- Technoboy- deleted the support-get-non-partitioned-topic-properties branch August 10, 2022 05:52
throw new RestException(Status.NOT_FOUND,
getTopicNotFoundErrorMessage(topicName.toString()));
}
return ((PersistentTopic) opt.get()).getManagedLedger().getProperties();
Copy link
Contributor

Choose a reason for hiding this comment

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

https://github.com/apache/pulsar/pull/12818/files introduced ManagedLedgerConfig.properties
https://github.com/apache/pulsar/pull/12818/files#diff-c917471bc697b80ff5e8eb5de212597c527e756ea49694c7fbbabacbf2b9752cR76.
However, we are returning ManagedLedgerImpl.propertiesMap here.

Why do we have two properties in two different places?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/admin cherry-picked/branch-2.10 doc-not-needed Your PR changes do not impact docs release/2.10.1 type/feature The PR added a new feature or issue requested a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants