Skip to content

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

Merged
codelipenghui merged 5 commits into
apache:masterfrom
Technoboy-:support-get-non-partitioned-topic-properties
Jun 8, 2022
Merged

[feature][admin] Support to get topic properties.#15944
codelipenghui merged 5 commits into
apache:masterfrom
Technoboy-:support-get-non-partitioned-topic-properties

Conversation

@Technoboy-

@Technoboy- Technoboy- commented Jun 6, 2022

Copy link
Copy Markdown
Contributor

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

@Jason918 Jason918 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@mattisonchao mattisonchao left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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