Skip to content

remote partitioning doesn't work if you're using graalvm  #4564

Closed
@joshlong

Description

@joshlong

i have an example, here that fails if you don't add a few extra hints for a simple example compiled to graalvm and using remote partitioning. please add the following hints to the jar itself so users don't need to

i had to put this on the worker node and @ImportRuntimeHints it:

    static class Hints implements RuntimeHintsRegistrar {

        @Override
        public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
            var mcs = MemberCategory.values();
            hints.reflection().registerType(StepExecutionRequestHandler.class, mcs);
            hints.serialization().registerType(StepExecutionRequest.class);
        }
    }

i had to put this on the leader node and @ImportRuntimeHints it:

    static class Hints implements RuntimeHintsRegistrar {

        @Override
        public void registerHints(RuntimeHints hints, ClassLoader classLoader) {

            var mcs = MemberCategory.values();
            hints.reflection().registerType(MessageChannelPartitionHandler.class, mcs);
            hints.serialization().registerType(StepExecutionRequest.class);
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions