Skip to content

Conversation

@zhangshenghang
Copy link
Member

@zhangshenghang zhangshenghang commented Dec 27, 2025

Purpose of this pull request

Support automatic creation of GC log directory

Changes

Does this PR introduce any user-facing change?

Yes. Users can now enable GC logging without manually creating the log directory first. The directory will be created automatically during startup.

How was this patch tested

  • Created comprehensive test script to verify GC directory creation logic
  • Tested various scenarios: with/without -Xloggc option, nested directories, coexistence with HeapDumpPath
  • Syntax validation for both shell scripts and Windows batch files
Ensure the Xloggc directory exists before starting the JVM to prevent
GC logging failures when the configured directory doesn't exist.

This change adds logic to automatically create the parent directory
of the GC log file path specified by -Xloggc option.

Changes:
- Added GC logging options to jvm_options (commented by default)
- Modified seatunnel.sh to auto-create GC log directory
- Modified seatunnel-cluster.sh to auto-create GC log directory
- Modified seatunnel.cmd to auto-create GC log directory
- Modified seatunnel-cluster.cmd to auto-create GC log directory
@github-actions github-actions bot added the core SeaTunnel core module label Dec 27, 2025
Copy link
Contributor

@LiJie20190102 LiJie20190102 left a comment

Choose a reason for hiding this comment

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

LGTM, Please retry CI

Copy link
Contributor

@davidzollo davidzollo left a comment

Choose a reason for hiding this comment

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

+1 if CI passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved core SeaTunnel core module reviewed

3 participants