You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/05/07 13:28:53 UTC

[GitHub] [pulsar] hbs opened a new issue #6906: Add access to user-config when initializing a function

hbs opened a new issue #6906:
URL: https://github.com/apache/pulsar/issues/6906


   **Is your feature request related to a problem? Please describe.**
   Functions cannot access the info passed via --user-config at initialization time.
   
   **Describe the solution you'd like**
   Add an initialization method or call a specific constructor in order to allow for proper initialization before the first message arrives.
   
   **Describe alternatives you've considered**
   At the moment proper initialization must be done in the 'process' method when the first message arrives. This leads to additional checks which are only needed because of the lack of proper initialization method and delays the processing of the first message if initialization of the function is costly.
   
   **Additional context**
   N/A
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] KannarFr commented on issue #6906: Add access to user-config when initializing a function

Posted by GitBox <gi...@apache.org>.
KannarFr commented on issue #6906:
URL: https://github.com/apache/pulsar/issues/6906#issuecomment-625903140


   In which way can we extend the `@FunctionalInterface` to add `void initialize(InstanceConfig config)`? @jiazhai 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org