-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Fix][Core] Add shade module for apache commons lang3 #9895
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][Core] Add shade module for apache commons lang3 #9895
Conversation
*/ | ||
package org.apache.seatunnel.core.starter.enums; | ||
|
||
import org.apache.commons.lang3.math.NumberUtils; |
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's add a shade module for apache commons lang3? So that it can never conflict. And we can upgrade it easier.
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.
Extract shade? Shade generally doesn't change much, so there's no need to upgrade along with the seatunnel version. This can effectively reduce the build time.
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.
Yep. We can do it in another patch after seatunnel-shade repository ready.
…x/no_field_is_java1.8 # Conflicts: # seatunnel-core/seatunnel-starter/src/main/java/org/apache/seatunnel/core/starter/seatunnel/command/ServerExecuteCommand.java
use PeekBlockingQueue jobId map
bc8a528
to
483b679
Compare
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.
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.
LGTM. Thanks @xiaochen-zhou !
Purpose of this pull request
During SeaTunnel startup, the common.lang3 package introduced by connectors may be loaded randomly,
Potentially causing a NoSuchFieldError: IS_JAVA_1_8:
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Exist Test: ServerExecuteCommandTest#testJavaVersionCheck()
Check list
New License Guide