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
[SPARK][FLINK][JAVA] http timeout fix #2475
Conversation
3b114f9
to
bca54da
Compare
@pawel-big-lebowski I think we should do this other way around and make docs fit the reality rather than breaking the timeout for people using floats |
@mobuchowski I was thinking about this as well and I think we shouldn't. Suppose there's a user who configured timeout to 10000 and lives unaware of the fact timeout settings will not work. Once we fix it, timeout will work again. If we change the docs, timeout settings for such users will be still broken. So the tradeoff is: shall we break the contract for those who follow the docs and are unaware of the problem or shall we break the contract for those (probably a single user) who found out the cause and hacked the system? Additionally, circuit breaker timeout also uses milliseconds. |
@pawel-big-lebowski maybe we can check if the passed value is single digit and then assume seconds? IDK, I just would not be happy if my integration stopped sending events because it started applying the 5ms timeout. |
My 2 cents:
This way, you remove the ambiguity of "is this 5 milliseconds, or 5 seconds?" For example:
|
Nice idea from offline discussions to make as many people happy as possible
@mobuchowski would it make sense to you? |
I really like this strategy, @pawel-big-lebowski , since it is backwards compatible and also supports users specifying milliseconds. Credits to @julienledem from our chat yesterday :D |
9e7517e
to
4980234
Compare
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
4980234
to
794021a
Compare
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com> Signed-off-by: Ruihua Wang <ruihuawang@microsoft.com>
Problem
Documentation says timeout should be provided in millis
But the code treats it as if it was provided in seconds
Fixes #2474
Solution
If you're contributing a new integration, please specify the scope of the integration and how/where it has been tested (e.g., Apache Spark integration supports
S3
andGCS
filesystem operations, tested with AWS EMR).One-line summary:
Checklist
SPDX-License-Identifier: Apache-2.0
Copyright 2018-2023 contributors to the OpenLineage project