-
Notifications
You must be signed in to change notification settings - Fork 46
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
fix: RPC mode does not honor timeout #1230
fix: RPC mode does not honor timeout #1230
Conversation
relates: open-feature/java-sdk-contrib#1230 Signed-off-by: Simon Schrottner <[email protected]>
relates: open-feature/java-sdk-contrib#1230 Signed-off-by: Simon Schrottner <[email protected]>
50cb01b
to
9240d70
Compare
relates: open-feature/java-sdk-contrib#1230 Signed-off-by: Simon Schrottner <[email protected]>
ee7ed54
to
7deaff5
Compare
...agd/src/main/java/dev/openfeature/contrib/providers/flagd/resolver/common/GrpcConnector.java
Show resolved
Hide resolved
7deaff5
to
506c587
Compare
relates: open-feature/java-sdk-contrib#1230 Signed-off-by: Simon Schrottner <[email protected]>
@aepfli while we are here, can we add a deadline to the getSyncMetadata call in the in-process as well? |
I tried to add it, but it breaks our reconnection tests in a strange way. If we want to add it, I think it is worth to explore this separately. I also opened an issue with discussion points to start with. Eg. The sync metadata does not have to be part of our loop, we could do this everytime the channel is reestablished. Anyways I think we should discuss this, and define this more precisely, as this could be also the way to go for other languages See: #1231 |
relates: open-feature/java-sdk-contrib#1230 Signed-off-by: Simon Schrottner <[email protected]>
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 seems like a step in the right direction.
I've made a related proposal here: #1231
506c587
to
416060f
Compare
416060f
to
d0fa1ad
Compare
During the refactoring of the connection the timeout for unary calls got lost. This adds the timeout back into the mix. TODO: - [ ] adapt gherkin tests for contextEnrichment to do handle stale seperately for file and inprocess Signed-off-by: Simon Schrottner <[email protected]>
d0fa1ad
to
d898ace
Compare
During the refactoring of the connection the timeout for unary calls got lost. This adds the timeout back into the mix.
TODO:
How to test:
currently one e2e test is failing, which should fail, as this one should actually not work for rpc.
blocked by open-feature/flagd-testbed#229