Skip to content

Conversation

@zymap
Copy link
Member

@zymap zymap commented Dec 15, 2020


Motivation

#8269 change the arguments name which causes the setup
metadata command is not compatible with old versions.
For keeping the compatibility of the setup metadata command,
we should avoid deleting the existing arguments. If we need to
change it, it's better to keep the old arguments and mark it
deprecates and hide them.

---

*Motivation*

For keeping the compatibility of the setup metadata command.
We should avoid delete the existing arguments. If we need to
change it, it's better to keep the old arguments and mark it
deprecate and hide it.
@zymap
Copy link
Member Author

zymap commented Dec 15, 2020

/pulsarbot run-failure-checks

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.

Can we add unit tests in order to prevent regressions?

"--existing-bk-metadata-service-uri"},
description = "The metadata service URI of the existing BookKeeper cluster that you want to use")
private String existingBkMetadataServiceUri;

Copy link
Contributor

Choose a reason for hiding this comment

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

This annotation is not really meaningful here by itself, can we add a comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Which annotation? Do you mean @Deprecated?

@sijie sijie added the doc-required Your PR changes impact docs and you will update later. label Dec 16, 2020
@sijie sijie merged commit d7da7af into apache:master Dec 16, 2020
codelipenghui pushed a commit that referenced this pull request Dec 21, 2020
---

*Motivation*

metadata command is not compatible with old versions.
For keeping the compatibility of the setup metadata command,
we should avoid deleting the existing arguments. If we need to
change it, it's better to keep the old arguments and mark it
deprecates and hide them.

(cherry picked from commit d7da7af)
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Dec 21, 2020
zymap added a commit to streamnative/pulsar-archived that referenced this pull request Dec 21, 2020
---

*Motivation*

metadata command is not compatible with old versions.
For keeping the compatibility of the setup metadata command,
we should avoid deleting the existing arguments. If we need to
change it, it's better to keep the old arguments and mark it
deprecates and hide them.

(cherry picked from commit d7da7af)
@Jennifer88huang-zz
Copy link
Contributor

@zymap @sijie I don't think we need to add doc-required label for this PR.

  • In PR-8269, we've added the usage for the new commands. -
  • In this PR, we add the deprecated commands back in code and mark them as deprecated. So these deprecated commands can be used by existing users, yet it's encouraged to be used nor displayed in the -help list. We don't need to add usage for those deprecated commands.
    What do you think about it?

@zymap
Copy link
Member Author

zymap commented Mar 1, 2021

Yes. I think we can remove the doc-required label for this PR.

@zymap zymap removed the doc-required Your PR changes impact docs and you will update later. label Mar 1, 2021
@Jennifer88huang-zz
Copy link
Contributor

@zymap thank you for your confirmation.

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

Labels

cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants