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

Avoid reflection and services lookup for JWT processing #10954

Merged
merged 2 commits into from
Feb 6, 2022

Conversation

electrum
Copy link
Member

@electrum electrum commented Feb 4, 2022

Description

This fixes a regression due to 37c7d22.
Fixes #10889

Documentation

(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

( ) No release notes entries required.
(x) Release notes entries required with the following suggested text:

# General changes

* Fix performance regression in internal communication authentication processing. ({issue}`10954`)

@cla-bot cla-bot bot added the cla-signed label Feb 4, 2022
@github-actions github-actions bot added the jdbc Relates to Trino JDBC driver label Feb 4, 2022
@JamesRTaylor
Copy link

Thanks for the quick turnaround on the patch, @electrum! It'd be much appreciated if @akashkatipally gets credit somewhere for finding the regression.

@hashhar
Copy link
Member

hashhar commented Feb 4, 2022

Fixes #10889

@electrum See also other service loader uses in #10889 (comment)

@dain dain self-requested a review February 4, 2022 22:29

import java.util.Map;

// avoid reflection and services lookup
Copy link
Member

@kokosing kokosing Feb 5, 2022

Choose a reason for hiding this comment

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

I think it would be nice to report the issue to jwt library. I am not sure why they used that in the first place.

@electrum electrum merged commit ac753cb into trinodb:master Feb 6, 2022
@electrum electrum deleted the jwt-optimize branch February 6, 2022 03:34
@github-actions github-actions bot added this to the 371 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed jdbc Relates to Trino JDBC driver
Development

Successfully merging this pull request may close these issues.

JWT Token builder bottleneck for internal communication
5 participants