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 2019/03/05 00:58:10 UTC

[GitHub] [pulsar] jerrypeng opened a new pull request #3751: fix function termination cleanup

jerrypeng opened a new pull request #3751: fix function termination cleanup
URL: https://github.com/apache/pulsar/pull/3751
 
 
   ### Motivation
   
   Currently the termination routine runs once for every function instance scheduled on a particular worker.  If there are multiple instances of a function scheduled on a single worker, the termination routine will run when terminating for each instance.
   
   In the termination routine we cleanup subscriptions created by the function.  Ideally this only runs once when all instances of functions have stopped.  However that kind of coordination is hard to accomplish but a least on a per worker basis lets only run the termination routine on the last instance running on that worker. So that a least we are running the termination routine only once for a function on a per worker basis
   
   

----------------------------------------------------------------
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


With regards,
Apache Git Services