Skip to content

[improve][pulsar-client-tools][ISSUE-16082] - Updated set retention time description and added test cases including default time - #16130

Merged
Anonymitaet merged 5 commits into
apache:masterfrom
mans2singh:ISSUE-16082
Sep 7, 2022

Conversation

@mans2singh

@mans2singh mans2singh commented Jun 18, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #16082

Motivation

  • The help option for set retention indicates -t option is Retention time in minutes but if no time unit is specified, it is assumed to be seconds.

Modifications

  • Updated description for time option and added unit test cases with default value (without time unit suffix) and with seconds time unit.

Verifying this change

  • Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

  • Added unit tests for to PulsarAdminToolTest with and without time unit suffix.

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: no
  • The schema: no
  • The default values of configurations: no
  • The wire protocol: no
  • The rest endpoints: no
  • The admin cli options: no
  • Anything that affects deployment: no

Documentation

Check the box below or label this PR directly.

Need to update docs?

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    This is a change in argument description.

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jun 18, 2022
@mans2singh mans2singh changed the title [improvement][pulsar-client-tools][ISSUE-16082] - Updated set retention time description and added test cases including default time [improve][pulsar-client-tools][ISSUE-16082] - Updated set retention time description and added test cases including default time Jun 19, 2022
@mans2singh
mans2singh force-pushed the ISSUE-16082 branch 2 times, most recently from e31023a to 4fd80da Compare June 22, 2022 23:18
@mans2singh

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@mans2singh

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@mans2singh

Copy link
Copy Markdown
Contributor Author

@Anonymitaet -

Can you please review this PR regarding issue (#16082) ? It clarifies that the default time unit (without time unit) is seconds. I have added supporting unit test cases with and without time unit.

From my understanding the failing unit tests (TEST-org.apache.pulsar.broker.service.RackAwareTest.xml) is not related this PR or it's tests.

Please let me know if there is anything else required.

Thanks for your time.

@Anonymitaet

Copy link
Copy Markdown
Member

@horizonzy
could you please review this PR from the technical perspective? Thank you!

@mans2singh

Copy link
Copy Markdown
Contributor Author

@Anonymitaet, @horizonzy - Please let me know if you have any feedback on this PR. Thanks

@horizonzy

Copy link
Copy Markdown
Member

@Anonymitaet, @horizonzy - Please let me know if you have any feedback on this PR. Thanks

Fine.

@horizonzy horizonzy 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.

Could you add default unit for param --size in the docs and test for it?

And there are another two SetRetention class.
1.

private class SetRetention extends CliCommand {

2.

@mans2singh

Copy link
Copy Markdown
Contributor Author

Hi @horizonzy -

Thanks for your feedback.

I've updated description for size parameter and added test cases as you had recommended.

Please let me know if you have any additional advice.

Thanks again for your time.

@mans2singh

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@mans2singh

Copy link
Copy Markdown
Contributor Author

@horizonzy - Thanks for your thorough feedback. I've updated the code based on your recommendations.

@horizonzy horizonzy 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

@horizonzy

Copy link
Copy Markdown
Member

/pulsarbot run-failure-checks

@horizonzy

Copy link
Copy Markdown
Member

@Anonymitaet ping

@Anonymitaet Anonymitaet added doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. and removed doc-not-needed Your PR changes do not impact docs labels Jul 29, 2022
@mans2singh

Copy link
Copy Markdown
Contributor Author

@Anonymitaet -

I have updated the description based on your recommendations. Please let me know if there is anything else required.

Thanks again for your advice/time.

@mans2singh
mans2singh requested a review from Anonymitaet August 2, 2022 06:06
@Anonymitaet

Copy link
Copy Markdown
Member

Thanks for your contribution! LGTM from the technical writing perspective 😊

@mans2singh

Copy link
Copy Markdown
Contributor Author

@Anonymitaet - It looks like PR is pending your review feedback (1 pending reviewer above). Please let me know if there is anything I can address. Thanks again for all your advice.

@Anonymitaet Anonymitaet 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.

Approve from a technical writing perspective.

@mans2singh

Copy link
Copy Markdown
Contributor Author

@Anonymitaet @horizonzy - Please let me know if there is anything required for this PR to be merged to master. Thanks

@Anonymitaet

Copy link
Copy Markdown
Member

/pulsarbot run-failure-checks

1 similar comment
@mans2singh

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@mans2singh

Copy link
Copy Markdown
Contributor Author

@Anonymitaet @horizonzy - The failing tests (Pulsar CI/CI - Unit Broker - Flaky, Pulsar CI/ CI - System Pulsar Connectors, CI - CPP, Python Tests / System-PULSAR_CONNECTORS_THREAD, CI - CPP, Python Tests / Unit-BROKER_FLAKY Tests) are not related this PR and are still failing despite invoking pulsarbot run-failure-checks.

Please let me know if there is anything required from my side to merge this to master.

Thanks again for your time and advice.

@Anonymitaet Anonymitaet added this to the 2.12.0 milestone Sep 6, 2022
@Anonymitaet

Copy link
Copy Markdown
Member

@mans2singh your PR can not be merged since some required tests failed. Can you get all required tests passed?

@mans2singh

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@mans2singh

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@mans2singh

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@mans2singh

Copy link
Copy Markdown
Contributor Author

Hi @Anonymitaet -

All checks are passing now.

Please let me know if there is anything else required.

Thanks again for your guidance.

@Anonymitaet
Anonymitaet merged commit 6c02186 into apache:master Sep 7, 2022
@mans2singh

Copy link
Copy Markdown
Contributor Author

Thanks @Anonymitaet @horizonzy for your help.

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

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--help and action are not consistent for set-retention on a namespace

4 participants