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

NIFI-12201 - Deprecation marking for nifi-toolkit-tls in NiFi 1.x #7880

Closed
wants to merge 2 commits into from

Conversation

greyp9
Copy link
Contributor

@greyp9 greyp9 commented Oct 13, 2023

Summary

NIFI-00000

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using mvn clean install -P contrib-check
    • JDK 21

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

Copy link
Contributor

@ChrisSamo632 ChrisSamo632 left a comment

Choose a reason for hiding this comment

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

Thanks for the update @greyp9, can we use the Deprecation Logger instead of System.out for noting the pending removal of this utility?

Copy link
Contributor

@exceptionfactory exceptionfactory left a comment

Choose a reason for hiding this comment

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

Thanks for introducing this message @greyp9, this approach looks good under the circumstances.

@ChrisSamo632 For other components, the DeprecationLogger and the Deprecated annotation make sense, but it does seem necessary in this particular scenario. The TlsToolkitMain is a command class that gets called through wrapping scripts, as opposed to a class that other components use. From that perspective, using DeprecationLogger does not add much, and it requires a configured logger implementation. For the same reasons, the Deprecated annotation does not provide a warning for end users of the TLS Toolkit, as it is developer-facing.

With that background, this approach seems sufficient to me. What do you think?

@ChrisSamo632
Copy link
Contributor

That's probably fair enough, thanks for the explanation @exceptionfactory

I wonder whether this should be a System.err call instead though, to prevent problems for anyone capturing and parsing STDOUT currently for this utility. But I'm not going to push hard for such a change

@greyp9
Copy link
Contributor Author

greyp9 commented Oct 16, 2023

That's probably fair enough, thanks for the explanation @exceptionfactory

I wonder whether this should be a System.err call instead though, to prevent problems for anyone capturing and parsing STDOUT currently for this utility. But I'm not going to push hard for such a change

Thanks much for the input. I'm switching it over to System.err.

@ChrisSamo632
Copy link
Contributor

Thanks for the update, LGTM 👍

Will merge tomorrow (if I'm not beaten to it), when hopefully the build failures will have been fixed on the support branch (unrelated to this change)

Copy link
Contributor

@exceptionfactory exceptionfactory left a comment

Choose a reason for hiding this comment

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

Thanks for making the adjustments @greyp9, and thanks for the review @ChrisSamo632! The build failures are unrelated, and now resolved in a recent commit. +1 merging

exceptionfactory pushed a commit that referenced this pull request Oct 16, 2023
This closes #7880

Signed-off-by: David Handermann <exceptionfactory@apache.org>
@ChrisSamo632
Copy link
Contributor

This has been merged to support/nifi-1.x

@exceptionfactory exceptionfactory added the hacktoberfest-accepted Hacktoberfest Accepted label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Hacktoberfest Accepted
Projects
None yet
3 participants