Skip to content

test(cluster): avoid uncaught system exit exceptions - #821

Open
johntomcat7408-cmyk wants to merge 1 commit into
apache:masterfrom
johntomcat7408-cmyk:fix/701-system-exit-test-logs
Open

test(cluster): avoid uncaught system exit exceptions#821
johntomcat7408-cmyk wants to merge 1 commit into
apache:masterfrom
johntomcat7408-cmyk:fix/701-system-exit-test-logs

Conversation

@johntomcat7408-cmyk

Copy link
Copy Markdown

What changes were proposed in this pull request?

SystemExitSignalCatcher intercepted System.exit() by throwing an exception. The expected exception escaped the executor thread and appeared as an uncaught error in CI logs.

This change makes the process exit action in ComponentExceptionSupervisor replaceable in tests. The cluster exception tests now capture and assert the exit code without installing a SecurityManager, and SystemExitSignalCatcher is removed. Production behavior is unchanged: the default action still calls System.exit(EXIT_CODE).

Related to #701.

How was this PR tested?

  • Tests have Added for the changes

  • Production environment verified

  • JDK 11: ContainerTest and ComponentUncaughtExceptionHandlerTest

  • Oracle JDK 8u441 on CentOS 7: the same tests

  • Maven Checkstyle and Apache RAT for geaflow-cluster

@johntomcat7408-cmyk

Copy link
Copy Markdown
Author

The JDK 8 and JDK 11 workflows are waiting for approval. Could a maintainer approve them when convenient?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant