-
Notifications
You must be signed in to change notification settings - Fork 948
[KYUUBI #502][SPARK-35002][INFRA] Fix the java.net.BindException when testing with Github Action #503
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #503 +/- ##
============================================
- Coverage 81.70% 80.66% -1.04%
- Complexity 0 648 +648
============================================
Files 116 116
Lines 4247 4247
Branches 514 514
============================================
- Hits 3470 3426 -44
- Misses 498 543 +45
+ Partials 279 278 -1
Continue to review full report at Codecov.
|
|
Also set KYUUBI_FRONTEND_BIND_HOST env to 127.0.0.1 and have a try. |
5244e44
to
022e357
Compare
.github/workflows/master.yml
Outdated
@@ -37,6 +37,9 @@ jobs: | |||
- '-Pspark-3.0 -Dspark.archive.mirror=https://archive.apache.org/dist/spark/spark-3.1.1 -Dspark.archive.name=spark-3.1.1-bin-hadoop2.7.tgz -Dmaven.plugin.scalatest.exclude.tags=org.apache.kyuubi.tags.DataLakeTest' | |||
- '-Pspark-3.1' | |||
- '-Pspark-3.1 -Dhadoop.binary.version=3.2' | |||
env: | |||
SPARK_LOCAL_IP: 127.0.0.1 | |||
KYUUBI_FRONTEND_BIND_HOST: 127.0.0.1 |
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.
How about just add envs and properties in scalatest-maven-plugin
, add a new env is overkill for me to only fix a CI issue
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.
sounds good
https://github.com/yaooqinn/kyuubi/pull/503/checks?check_run_id=2306833395#step:9:24197 It seems that we have to use System env solution to fix it. @yaooqinn |
or transfer it in connection string |
@@ -72,5 +72,6 @@ trait WithKyuubiServer extends KyuubiFunSuite { | |||
super.afterAll() | |||
} | |||
|
|||
protected def getJdbcUrl: String = s"jdbc:hive2://${server.connectionUrl}/;" | |||
protected def getJdbcUrl: String = | |||
s"jdbc:hive2://${server.connectionUrl}/;${KyuubiConf.FRONTEND_BIND_HOST.key}=127.0.0.1" |
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.
I am not sure whether it could work
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 will work... but OMG... this is a potential bug..
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.
yes, it should be forbid in engine side
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.
Let create an Issue ticket for it, and mark it todo here
|
…n when testing with Github Action
…t to 127.0.0.1 in scalatest-maven-plugin
cd3092b
to
6d1ef18
Compare
Spark switched |
Thanks! Merged into master for v1.2.0. |
The issue is reported at actions/runner-images#3185 |
Why are the changes needed?
Refer apache/spark#32096, apache/spark#32102, this PR tries to fix the java.net.BindException when testing with Github Action.
Also transfer FRONTEND_BIND_HOST by connection string to fix similar issue.
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before make a pull request