Skip to content

Changes to the time offset should be visible in all threads instantly - #22254

Merged
mhajas merged 1 commit into
keycloak:mainfrom
ahus1:is-22243-ensure-all-threads-see-time-offset
Aug 7, 2023
Merged

Changes to the time offset should be visible in all threads instantly#22254
mhajas merged 1 commit into
keycloak:mainfrom
ahus1:is-22243-ensure-all-threads-see-time-offset

Conversation

@ahus1

@ahus1 ahus1 commented Aug 4, 2023

Copy link
Copy Markdown
Member

This needs to be volatile as it is changed during tests at runtime and there is no other locking in place.

Closes #22243

@ahus1 ahus1 self-assigned this Aug 4, 2023
This needs to be volatile as it is changed during tests at runtime and there is no other locking in place.

Closes keycloak#22243
@ahus1
ahus1 force-pushed the is-22243-ensure-all-threads-see-time-offset branch from 8746f49 to 9e7b243 Compare August 4, 2023 14:02
@ghost ghost added the flaky-test label Aug 4, 2023
@ahus1
ahus1 marked this pull request as ready for review August 4, 2023 16:37
@ahus1
ahus1 requested a review from a team as a code owner August 4, 2023 16:37
@ahus1

ahus1 commented Aug 4, 2023

Copy link
Copy Markdown
Member Author

When debugging this strange case where the session is sometimes expired correctly, and sometimes not, I stumbled across this non-volatile int. My search didn't reveal any other issues.

It might fix the bug (which I was never able to reproduce locally). If it doesn't, we'll re-open the unstable test issue and continue the search.

@mhajas mhajas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @ahus1, it makes sense to me to include volatile there.

@mhajas
mhajas merged commit 10ccc43 into keycloak:main Aug 7, 2023
@ahus1
ahus1 deleted the is-22243-ensure-all-threads-see-time-offset branch September 21, 2023 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: org.keycloak.testsuite.oauth.OfflineTokenTest#offlineTokenBrowserFlowIdleTimeExpired

2 participants