Skip to content

Feat(defaultRequestTimeout) add defaultRequestTimeout property for the client #1132

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

Merged
merged 21 commits into from
Oct 27, 2024

Conversation

batsura-sa
Copy link
Contributor

@batsura-sa batsura-sa commented Aug 3, 2024

Hi! Could we add deadline property for client? @ST-DDT who will do review? what I'am doing wrong?

@batsura-sa batsura-sa force-pushed the feature/deadline_property branch from 5805901 to 72842c9 Compare August 3, 2024 12:52
@ST-DDT ST-DDT added the enhancement A feature request or improvement label Sep 2, 2024
@batsura-sa batsura-sa force-pushed the feature/deadline_property branch 4 times, most recently from 1094f3f to a19dbef Compare September 3, 2024 13:51
@batsura-sa batsura-sa marked this pull request as draft September 3, 2024 14:30
@batsura-sa batsura-sa force-pushed the feature/deadline_property branch from a19dbef to 28b073d Compare September 3, 2024 16:26
@batsura-sa batsura-sa marked this pull request as ready for review September 3, 2024 16:54
@batsura-sa batsura-sa requested a review from ST-DDT September 4, 2024 10:19
@batsura-sa batsura-sa requested a review from ST-DDT September 4, 2024 14:33
@batsura-sa batsura-sa force-pushed the feature/deadline_property branch from 18254e7 to 547045c Compare September 4, 2024 14:42
@batsura-sa batsura-sa force-pushed the feature/deadline_property branch from 547045c to 7505c7d Compare September 4, 2024 14:43
batsura-sa and others added 2 commits September 5, 2024 08:15
…pc/client/interceptor/DeadlineSetupClientInterceptor.java

Co-authored-by: ST-DDT <[email protected]>
…pc/client/interceptor/DeadlineSetupClientInterceptor.java

Co-authored-by: ST-DDT <[email protected]>
@batsura-sa batsura-sa requested a review from ST-DDT September 5, 2024 05:57
@batsura-sa batsura-sa force-pushed the feature/deadline_property branch from 66e240f to a8bbe07 Compare September 5, 2024 06:03
Copy link
Collaborator

@ST-DDT ST-DDT left a comment

Choose a reason for hiding this comment

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

Looks good to me. Only a few small changes, and then this is good to go.

@genuss
Copy link
Contributor

genuss commented Sep 5, 2024

What do you think about calling the configured property timeout instead of deadline? I believe the current name create some confusion. Deadline in context of GRPC has special meaning and that is "An absolute point in time", although the configured property is a duration.

…pc/client/autoconfigure/GrpcClientDeadlineAutoConfiguration.java

Co-authored-by: ST-DDT <[email protected]>
@batsura-sa batsura-sa changed the title Feat(timeout) add timeout property for client Feat(timeout) add timeout property for the client Sep 6, 2024
@batsura-sa batsura-sa force-pushed the feature/deadline_property branch from 1aaef80 to 650a978 Compare September 6, 2024 06:55
@batsura-sa
Copy link
Contributor Author

OK. For example grpc.client.GLOBAL.timeout=1s ? right?

Exactly 👍

Done, not sure about the names. We can improve the source code or comments if you think it is necessary.

batsura-sa and others added 5 commits September 6, 2024 12:11
…pc/client/autoconfigure/GrpcClientTimeoutAutoConfiguration.java

Co-authored-by: ST-DDT <[email protected]>
…pc/client/autoconfigure/GrpcClientTimeoutAutoConfiguration.java

Co-authored-by: ST-DDT <[email protected]>
…pc/client/interceptor/TimeoutSetupClientInterceptor.java

Co-authored-by: ST-DDT <[email protected]>
…ditional-spring-configuration-metadata.json

Co-authored-by: ST-DDT <[email protected]>
@batsura-sa batsura-sa force-pushed the feature/deadline_property branch from 7cf859b to 9db6998 Compare September 6, 2024 09:48
@batsura-sa batsura-sa requested a review from ST-DDT September 6, 2024 09:51
@batsura-sa
Copy link
Contributor Author

batsura-sa commented Sep 6, 2024

May be rename the timeout property to requestTimeout? Like this "grpc.client.GLOBAL.requestTimeout=1s". IMHO timeout is really abstract property name.

@ST-DDT
Copy link
Collaborator

ST-DDT commented Sep 6, 2024

May be rename the timeout property to requestTimeout? Like this "grpc.client.GLOBAL.requestTimeout=1s". IMHO timeout is really abstract property name.

requestTimeout or defaultRequestTimeout?

@batsura-sa
Copy link
Contributor Author

batsura-sa commented Sep 6, 2024

May be rename the timeout property to requestTimeout? Like this "grpc.client.GLOBAL.requestTimeout=1s". IMHO timeout is really abstract property name.

requestTimeout or defaultRequestTimeout?

I like both, can you choose one? May be defaultRequestTimeout is better.

@ST-DDT
Copy link
Collaborator

ST-DDT commented Sep 6, 2024

I like both, can you choose one? May be defaultRequestTimeout is better.

Then defaultRequestTimeout it is.

@batsura-sa batsura-sa force-pushed the feature/deadline_property branch from e7f1e3e to 102d09e Compare September 6, 2024 12:49
@batsura-sa
Copy link
Contributor Author

batsura-sa commented Sep 6, 2024

I like both, can you choose one? May be defaultRequestTimeout is better.

Then defaultRequestTimeout it is.

Done. Please let me know if we can do comments or code better.

…pc/client/config/GrpcChannelProperties.java

Co-authored-by: ST-DDT <[email protected]>
@batsura-sa batsura-sa changed the title Feat(timeout) add timeout property for the client Feat(defaultRequestTimeout) add defaultRequestTimeout property for the client Sep 7, 2024
Copy link
Collaborator

@ST-DDT ST-DDT left a comment

Choose a reason for hiding this comment

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

Looks good to me.
Thanks for your contribution. ❤️

@batsura-sa
Copy link
Contributor Author

Looks good to me. Thanks for your contribution. ❤️

Thanks for the review, it was very helpful. Is it possible to see this feature in the release? What needs to be done for this?

@ST-DDT
Copy link
Collaborator

ST-DDT commented Sep 7, 2024

The maintainers have to review/merge it.

@batsura-sa batsura-sa requested a review from ST-DDT October 27, 2024 13:45
Copy link
Collaborator

@yidongnan yidongnan left a comment

Choose a reason for hiding this comment

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

LGTM

@yidongnan yidongnan merged commit ee810d1 into grpc-ecosystem:master Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature request or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants