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

Fix additional servlets nar might extract to null directory #12585

Conversation

Demogorgon314
Copy link
Member

Motivation

The additional servlets use NAR package to implantation plugin mechanism, it need extract to specific directory.

However, the narExtractionDirectory is from Properties, but the properties has only the configuration in the
configuration file. The default value of narExtractionDirectory in ServiceConfiguration can't be use.

Modifications

When narExtractionDirectory configuration is not set, use NarClassLoader.DEFAULT_NAR_EXTRACTION_DIR as default directory.

Verifying this change

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

Documentation

  • no-need-doc
    This a bug fix, no need docs.

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Nov 2, 2021
@github-actions
Copy link

github-actions bot commented Nov 2, 2021

@Demogorgon314:Thanks for providing doc info!

@Demogorgon314
Copy link
Member Author

/pulsarbot run-failure-checks

@codelipenghui codelipenghui modified the milestones: 2.9.0, 2.10.0 Nov 3, 2021
@codelipenghui codelipenghui merged commit 9ecd613 into apache:master Nov 4, 2021
@Demogorgon314 Demogorgon314 deleted the Fix_additional_servlets_nar_might_extract_to_null_directory branch November 4, 2021 13:14
codelipenghui pushed a commit that referenced this pull request Nov 5, 2021
### Motivation
The additional servlets use NAR package to implantation plugin mechanism, it need extract to specific directory.

However, the `narExtractionDirectory` is from `Properties`, but the properties has only the configuration in the
configuration file. The default value of `narExtractionDirectory ` in `ServiceConfiguration` can't be use.

### Modifications
When `narExtractionDirectory ` configuration is not set, use `NarClassLoader.DEFAULT_NAR_EXTRACTION_DIR` as default directory.

(cherry picked from commit 9ecd613)
@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Nov 5, 2021
eolivelli pushed a commit to eolivelli/pulsar that referenced this pull request Nov 29, 2021
…2585)

### Motivation
The additional servlets use NAR package to implantation plugin mechanism, it need extract to specific directory.

However, the `narExtractionDirectory` is from `Properties`, but the properties has only the configuration in the 
configuration file. The default value of `narExtractionDirectory ` in `ServiceConfiguration` can't be use.

### Modifications
When `narExtractionDirectory ` configuration is not set, use `NarClassLoader.DEFAULT_NAR_EXTRACTION_DIR` as default directory.
codelipenghui pushed a commit that referenced this pull request Dec 20, 2021
### Motivation
The additional servlets use NAR package to implantation plugin mechanism, it need extract to specific directory.

However, the `narExtractionDirectory` is from `Properties`, but the properties has only the configuration in the
configuration file. The default value of `narExtractionDirectory ` in `ServiceConfiguration` can't be use.

### Modifications
When `narExtractionDirectory ` configuration is not set, use `NarClassLoader.DEFAULT_NAR_EXTRACTION_DIR` as default directory.

(cherry picked from commit 9ecd613)
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker cherry-picked/branch-2.8 Archived: 2.8 is end of life cherry-picked/branch-2.9 Archived: 2.9 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.2 release/2.9.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants