-
Notifications
You must be signed in to change notification settings - Fork 631
fix: race issue with oauth refresh #1199
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
Conversation
src/main/java/io/supertokens/webserver/api/oauth/NamedLockManager.java
Outdated
Show resolved
Hide resolved
src/main/java/io/supertokens/webserver/api/oauth/NamedLockManager.java
Outdated
Show resolved
Hide resolved
src/main/java/io/supertokens/webserver/api/oauth/NamedLockManager.java
Outdated
Show resolved
Hide resolved
| if (!refreshTokenPayload.has("exp")) { | ||
| System.out.println(refreshTokenPayload.toString()); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this?
| } | ||
|
|
||
| @Test | ||
| public void testParallelRefreshTokenWithoutRotation() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fails without the fix, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
* experiment: Deadlock logger * fix: race issue with oauth refresh (#1199) * fix: race issue with oauth refresh * fix: review comment * fix: remove print * fix: deadlock in resource distributor (#1197) * adding dev-v11.2.1 tag to this commit to ensure building * fix: add deadlock logger * fix: changelog and build version * fix: only start deadlocklogger if it's enabled --------- Co-authored-by: Sattvik Chakravarthy <[email protected]> Co-authored-by: Supertokens Bot <>
Summary of change
(A few sentences about this PR)
Related issues
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your
changes work. Bonus points for screenshots and videos!)
Documentation changes
(If relevant, please create a PR in our docs repo, or create a checklist here
highlighting the necessary changes)
Checklist for important updates
coreDriverInterfaceSupported.jsonfile has been updated (if needed)pluginInterfaceSupported.jsonfile has been updated (if needed)build.gradlegetPaidFeatureStatsfunction in FeatureFlag.java filebuild.gradle, please make sure to add themin
implementationDependencies.json.getValidFieldsinio/supertokens/config/CoreConfig.javaif new aliases were added for any coreconfig (similar to the
access_token_signing_key_update_intervalconfig alias).git tag) in the formatvX.Y.Z, and then find thelatest branch (
git branch --all) whoseX.Yis greater than the latest released tag.app_id_to_user_idtable, make sure to delete from this table when deletingthe user as well if
deleteUserIdMappingToois false.Remaining TODOs for this PR