nifi icon indicating copy to clipboard operation
nifi copied to clipboard

NIFI-13896: Improve TailFile performance

Open Lehel44 opened this issue 1 year ago • 0 comments

Summary

NIFI-13896

  • Moved out legacy state handling from cleanup to @OnScheduled
  • Removed unused parameters from private methods
  • Improved code and performance based on additional Sonar rules:
  • https://www.jetbrains.com.cn/en-us/help/inspectopedia/SlowAbstractSetRemoveAll.html
  • https://cloud-ci.sgs.com/sonar/coding_rules?open=java%3AS2864&rule_key=java%3AS2864

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

Lehel44 avatar Oct 19 '24 22:10 Lehel44