Skip to content

SOLR-16531: Disable unused Jersey features#1335

Merged
gerlowskija merged 3 commits intoapache:mainfrom
gerlowskija:SOLR-16531-disable-optional-jersey-features
Feb 6, 2023
Merged

SOLR-16531: Disable unused Jersey features#1335
gerlowskija merged 3 commits intoapache:mainfrom
gerlowskija:SOLR-16531-disable-optional-jersey-features

Conversation

@gerlowskija
Copy link
Contributor

https://issues.apache.org/jira/browse/SOLR-16531

Description

Jersey has several optional features that we don't need or use. Disabling these keeps our use of Jersey as lightweight as possible.

Solution

These features are disabled by setting particular configuration props in each Jersey 'application' that gets created.

Tests

Manually tested via log-message inspection. Manual validation of the improved Jersey app-startup performance. Existing tests continue to pass.

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.

These features incur a small cost at application startup time, so
disabling them helps keep our use of Jersey lean.
@gerlowskija
Copy link
Contributor Author

This PR consists mainly of a snippet that I've had in a variety of other Jersey-related PRs, and that has been previously reviewed. Pulling it into its own PR here, so that it's better documented in the git-log, can be reverted or cherry-picked independently, etc.

Copy link
Contributor

@epugh epugh left a comment

Choose a reason for hiding this comment

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

LGTM. I googled to learn more about these, and found this doc that listed some of them (and a bunch more) https://eclipse-ee4j.github.io/jersey.github.io/documentation/2.29/appendix-properties.html

@gerlowskija
Copy link
Contributor Author

Alright, thanks for the reviews guys. Aiming to merge this later today.

@gerlowskija gerlowskija merged commit e446de3 into apache:main Feb 6, 2023
@gerlowskija gerlowskija deleted the SOLR-16531-disable-optional-jersey-features branch February 6, 2023 15:25
gerlowskija added a commit that referenced this pull request Feb 6, 2023
These features incur a small cost at application startup time, so
disabling them helps keep our use of Jersey lean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments