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: (minor) don't use deprecated jersey calls #6732

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

niteshmor
Copy link
Contributor

@niteshmor niteshmor commented Dec 8, 2020

Description

This pull request updates the call signature for jersey's ContainerRequest(...) to a non-deprecated one in a test. Jersey 2.30 and above add a new Configuration parameter (see here).

The context for this pull request is that I am trying to update Jersey to 2.31 in upstream rest-utils (confluentinc/rest-utils#210). Ksql treats warnings as errors, and the deprecation warning causes the upstream pull request from building correctly. Once that pull request actually upgrades the jetty version, ksql builds would fail without this current PR specifically because of treating deprecation warnings as errors.

Merging this pull request will cause the immediate builds to break, but the current ksql build is already broken as of now. The reason for the current broken build is multiple jetty versions, which the upstream PR attempts to fix.

Testing done

None

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@ghost
Copy link

ghost commented Dec 8, 2020

@confluentinc It looks like @niteshmor just signed our Contributor License Agreement. 👍

Always at your service,

clabot

@niteshmor niteshmor changed the title 5.4.x fix: (minor) don't use deprecated jersey calls Dec 8, 2020
Jersey 2.30 (and above) adds a Configuration argument to
`ContainerRequest(...)`  and marks the old version of
`ContainerRequest(...)` without the Configuration argument as
deprecated.
@niteshmor niteshmor marked this pull request as ready for review December 8, 2020 17:35
@niteshmor niteshmor requested a review from a team as a code owner December 8, 2020 17:35
Copy link
Member

@spena spena left a comment

Choose a reason for hiding this comment

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

lgtm

@niteshmor niteshmor merged commit a44b3e9 into confluentinc:5.4.x Dec 8, 2020
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.

2 participants