sijie opened a new pull request #2411: [functions] change instance id from 
string to int and expose number of instances in context
URL: https://github.com/apache/incubator-pulsar/pull/2411
 
 
   
    ### Motivation
   
   When writing a connector reading from a list of sources, it is hard for the 
connector implementation to decide how
   to distribute the list of sources across the function instances. because 
there is no way to tell how many function
   instances is running.
   
    ### Changes
   
   - change instance id from string to integer (since the implementation is 
already assuming instance id is an integer)
   - add getNumInstances in the context
   - expose both interfaces in source and sink connector context
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to