Skip to content

Conversation

xiaochen-zhou
Copy link
Contributor

Purpose of this pull request

During SeaTunnel startup, the common.lang3 package introduced by connectors may be loaded randomly,

企业微信截图_175861979336 企业微信截图_17586198045052

Potentially causing a NoSuchFieldError: IS_JAVA_1_8:

企业微信截图_4ef925b8-5f19-4b69-b4d2-8921227acb26

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Exist Test: ServerExecuteCommandTest#testJavaVersionCheck()

Check list

@github-actions github-actions bot added the core SeaTunnel core module label Sep 25, 2025
*/
package org.apache.seatunnel.core.starter.enums;

import org.apache.commons.lang3.math.NumberUtils;
Copy link
Member

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.

Copy link
Contributor

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.

Copy link
Member

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
@xiaochen-zhou xiaochen-zhou changed the title [Fix][Core] Fix NoSuchFieldError IS_JAVA_1_8 during SeaTunnel startup [Fix][Core] Add shade module for apache commons lang3 Sep 27, 2025
@xiaochen-zhou xiaochen-zhou force-pushed the fix/no_field_is_java1.8 branch from bc8a528 to 483b679 Compare September 28, 2025 00:25
@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Sep 28, 2025
Copy link
Member

@Hisoka-X Hisoka-X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@Hisoka-X Hisoka-X left a 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 !

@corgy-w corgy-w merged commit abb9124 into apache:dev Oct 4, 2025
5 checks passed
@Hisoka-X Hisoka-X mentioned this pull request Oct 4, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants