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

add rest api: unsetOffloadPolicies #8446

Merged
merged 10 commits into from
Nov 6, 2020
Merged

Conversation

Renkai
Copy link
Contributor

@Renkai Renkai commented Nov 4, 2020

Signed-off-by: Renkai gaelookair@gmail.com

Fix: https://github.com/streamnative/pulsar/issues/1638
Add a unset mirror of setOffloadPolicies

Motivation

Currently we don't have a way to unset offload policies for namespaces, we may need one.

Modifications

Add a rest API

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

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

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (yes)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (yes)
  • The admin cli options: (yes)
  • Anything that affects deployment: (no)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
@Renkai Renkai marked this pull request as ready for review November 4, 2020 08:43
@Renkai
Copy link
Contributor Author

Renkai commented Nov 4, 2020

/pulsarbot run-failure-checks

4 similar comments
@Renkai
Copy link
Contributor Author

Renkai commented Nov 4, 2020

/pulsarbot run-failure-checks

@Renkai
Copy link
Contributor Author

Renkai commented Nov 4, 2020

/pulsarbot run-failure-checks

@Renkai
Copy link
Contributor Author

Renkai commented Nov 4, 2020

/pulsarbot run-failure-checks

@gaoran10
Copy link
Contributor

gaoran10 commented Nov 4, 2020

/pulsarbot run-failure-checks

@gaoran10
Copy link
Contributor

gaoran10 commented Nov 4, 2020

Great work.

Renkai and others added 5 commits November 5, 2020 10:44
…l/NamespacesBase.java

Co-authored-by: ran <gaoran_10@126.com>
…l/NamespacesBase.java

Co-authored-by: ran <gaoran_10@126.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
@gaoran10
Copy link
Contributor

gaoran10 commented Nov 5, 2020

LGTM

@Renkai
Copy link
Contributor Author

Renkai commented Nov 5, 2020

/pulsarbot run-failure-checks

@codelipenghui
Copy link
Contributor

@Renkai Seems the failed CI tests related to this PR, could you please help take a look?

@Renkai
Copy link
Contributor Author

Renkai commented Nov 5, 2020

/pulsarbot run-failure-checks

Signed-off-by: Renkai <gaelookair@gmail.com>
@gaoran10
Copy link
Contributor

gaoran10 commented Nov 5, 2020

/pulsarbot run-failure-checks

@codelipenghui codelipenghui merged commit 24cd557 into apache:master Nov 6, 2020
@Renkai Renkai deleted the unset_policies branch November 6, 2020 01:43
flowchartsman pushed a commit to flowchartsman/pulsar that referenced this pull request Nov 17, 2020
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.

[Tiered Storage] Support unset namespace offload policies
5 participants