Skip to content

Conversation

@eolivelli
Copy link
Contributor

@eolivelli eolivelli commented May 9, 2022

Fixes #15455

Motivation

We are missing tools to manage Subscription properties introduces in PIP-105.

Modifications

Add initial support to "create subscription" in PulsarAdmin API (Java and CLI) to pass subscription properties.
The properties are passed as a query string parameter in order to keep compatibility with the old API and do not require a new API.

Verifying this change

This patch adds tests

Documentation

The documentation of pulsar-admin and PulsarAdmin is automatically generated, no need to do anything more

@eolivelli eolivelli added area/admin doc-not-needed Your PR changes do not impact docs labels May 9, 2022
@eolivelli eolivelli added this to the 2.11.0 milestone May 9, 2022
@eolivelli eolivelli self-assigned this May 9, 2022
@eolivelli eolivelli requested review from 315157973 and RobertIndie and removed request for 315157973 May 11, 2022 07:41
@eolivelli eolivelli force-pushed the impl/pip105-create-subscription-admin-properties branch from 60098be to 4a0f7fd Compare May 11, 2022 07:56
@eolivelli eolivelli marked this pull request as ready for review May 11, 2022 11:37
@eolivelli eolivelli changed the title Issue 15455: [enh] Pulsar Admin: create subscripion with Properties (PIP-105) [enh] Issue 15455: Pulsar Admin: create subscripion with Properties (PIP-105) May 11, 2022
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.

Overall LGTM, Could we add a test for REST API with properties? Looks like we just have a test for cli.

@eolivelli eolivelli force-pushed the impl/pip105-create-subscription-admin-properties branch from f6f824e to 4fe43a2 Compare May 19, 2022 07:11
@eolivelli
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

2 similar comments
@eolivelli
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@eolivelli
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

Copy link
Contributor

@nicoloboschi nicoloboschi left a comment

Choose a reason for hiding this comment

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

LGTM

@eolivelli eolivelli merged commit e2fa189 into apache:master May 20, 2022
@eolivelli eolivelli deleted the impl/pip105-create-subscription-admin-properties branch May 20, 2022 05:35
eolivelli added a commit to eolivelli/pulsar that referenced this pull request May 20, 2022
eolivelli added a commit that referenced this pull request May 23, 2022
eolivelli added a commit to datastax/pulsar that referenced this pull request May 23, 2022
nicoloboschi added a commit that referenced this pull request May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PIP-105 pulsar-admin create-subscription - allow to set subscription properties

6 participants