Skip to content

inferring typeClassName in Java Runner if typeClassName is not provided #131

Closed

Description

@freeznet

When upload Pulsar's Java Functions package, the Pulsar's functions worker will load the package into the class loader, and try to extract the type args of the defined function. Then the type args will be used as typeClassName in FunctionDetails.
ref: https://github.com/apache/pulsar/blob/branch-2.10/pulsar-functions/utils/src/main/java/org/apache/pulsar/functions/utils/FunctionCommon.java#L94-L125

In Function Mesh, the operator cannot do not support load JAR package and extract the type args, so the typeClassName requires user to manually provided.

A possible solution is, to embed a simple Java app to extract the type args before function start.

Activity

  1. self-assigned this
    on Oct 11, 2022
  2. added this to the 2022-10 v0.7.0 milestone on Oct 11, 2022
  3. freeznet commented on Oct 19, 2022

    @freeznet
    MemberAuthor

    solving this issue from pulsar's function instance starter: apache/pulsar#18110

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions