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-31914][SQL][Test][test-hive1.2][test-java11] Apply SharedThriftServer to all thrift server related tests #28738
Conversation
…tServer to all ThriftServer related tests
Nice cleanup of the Thriftserver tests! |
Test build #123566 has finished for PR 28738 at commit
|
|
Test build #123567 has finished for PR 28738 at commit
|
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.
start-thriftserver.sh script with port retry is flaky for testing, maybe we can dockerize some of them with integration test?
You could do a port 0 trick with start-thriftserver.sh as well.
/** | ||
* String to scan for when looking for the thrift binary endpoint running. | ||
* This can change across Hive versions. | ||
*/ | ||
val THRIFT_BINARY_SERVICE_LIVE = "Starting ThriftBinaryCLIService on port" | ||
|
||
/** | ||
* String to scan for when looking for the thrift HTTP endpoint running. | ||
* This can change across Hive versions. | ||
*/ | ||
val THRIFT_HTTP_SERVICE_LIVE = "Started ThriftHttpCLIService in http" |
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.
If this becomes flaky because of the port, you could set port 0, and turn the use of these lines into a regex that would parse the port that got assigned...
successLines.foreach { r => | ||
if (line.contains(r)) { | ||
serverStarted.trySuccess(()) | ||
} | ||
} |
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.
... by parsing for the port here instead of the line.contains.
Test build #123571 has finished for PR 28738 at commit
|
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
What changes were proposed in this pull request?
SharedThriftServer
trait to all ThriftServer related tests includingSharedThriftServer
can use a random free port to reduce the flakiness of these tests.JdbcConnectionSuite
to test bothhttp
andbinary
mode. Before some of them are duplicated, and others are only tested in one mode.UISeleniumSuite
which has been ignored since 2.0.Why are the changes needed?
Does this PR introduce any user-facing change?
no
How was this patch tested?
existing tests