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

Properly support CompletionStage as a return type in caching extension #24894

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Apr 12, 2022

Fixes: #23816

@geoand geoand requested a review from gwenneg April 12, 2022 16:24
@gwenneg gwenneg self-assigned this Apr 12, 2022
Copy link
Member

@gwenneg gwenneg left a comment

Choose a reason for hiding this comment

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

Thank you @geoand!

I'm not done reviewing the tests but first I have a few comments about the runtime code.

@geoand
Copy link
Contributor Author

geoand commented Apr 13, 2022 via email

@geoand
Copy link
Contributor Author

geoand commented Apr 14, 2022

Comments addressed

@geoand
Copy link
Contributor Author

geoand commented Apr 15, 2022

This stuff will likely need to be rewritten for #24894, but it's best to separate the two as this one addresses a clear bug, while the Kotlin corroutine support is a feature request

@gwenneg
Copy link
Member

gwenneg commented Apr 15, 2022

I should be able to finish this review later today, sorry for the delay 😃

@geoand
Copy link
Contributor Author

geoand commented Apr 15, 2022

Not a problem at all :)

Copy link
Member

@gwenneg gwenneg left a comment

Choose a reason for hiding this comment

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

Sorry for the delay 😃

I noticed something wrong with CacheResult#lockTimeout and Uni while reviewing this PR, so I spent some time confirming that there is indeed a bug in that area. CompletionStage is affected in a similar way. I'll create an issue about it or a PR to fix it depending on how much time I have this week.

@gwenneg
Copy link
Member

gwenneg commented Apr 20, 2022

I hope I didn't break a test with the variables names changes 😄

@geoand
Copy link
Contributor Author

geoand commented Apr 20, 2022

Thanks a lot for the review, suggestions applied and commits squashed :)

@quarkus-bot

This comment has been minimized.

@quarkus-bot

This comment has been minimized.

@quarkus-bot

This comment has been minimized.

@quarkus-bot

This comment has been minimized.

@quarkus-bot

This comment has been minimized.

Copy link
Member

@gwenneg gwenneg left a comment

Choose a reason for hiding this comment

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

LGTM

@geoand geoand merged commit 34d59ff into quarkusio:main Apr 20, 2022
@quarkus-bot quarkus-bot bot added this to the 2.9 - main milestone Apr 20, 2022
@geoand geoand deleted the #23816 branch April 20, 2022 15:20
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.

IllegalStateException if method return type is CompletionStage<Xxx> using @CacheResult
2 participants