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/06/06 01:05:23 UTC

[GitHub] [pulsar] jerrypeng opened a new pull request #7187: Add ability for function services to notify errors

jerrypeng opened a new pull request #7187:
URL: https://github.com/apache/pulsar/pull/7187


   
   ### Motivation
   
   Currently, FunctionAssignmentTailer uses a thread to read and process assignments. If there is a fatal error in the process we should notify to worker service and restart the worker.
   


----------------------------------------------------------------
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] jerrypeng commented on a change in pull request #7187: Add ability for function services to notify errors

Posted by GitBox <gi...@apache.org>.
jerrypeng commented on a change in pull request #7187:
URL: https://github.com/apache/pulsar/pull/7187#discussion_r436222531



##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java
##########
@@ -1265,7 +1266,8 @@ private void startWorkerService(AuthenticationService authenticationService,
                 throw ioe;
             }
             LOG.info("Function worker service setup completed");
-            functionWorkerService.get().start(dlogURI, authenticationService, authorizationService);
+            // TODO figure out how to handle errors from function worker service
+            functionWorkerService.get().start(dlogURI, authenticationService, authorizationService, new ErrorNotifier());

Review comment:
       @merlimat thoughts on how we should hand this if function service is running as part of the broker?




----------------------------------------------------------------
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] codelipenghui commented on pull request #7187: Add ability for function services to notify errors

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on pull request #7187:
URL: https://github.com/apache/pulsar/pull/7187#issuecomment-640303845


   /pulsarbot run-failure-checks


----------------------------------------------------------------
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] jerrypeng commented on pull request #7187: Add ability for function services to notify errors

Posted by GitBox <gi...@apache.org>.
jerrypeng commented on pull request #7187:
URL: https://github.com/apache/pulsar/pull/7187#issuecomment-640285538


   /pulsarbot run-failure-checks


----------------------------------------------------------------
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] jerrypeng merged pull request #7187: Add ability for function services to notify errors

Posted by GitBox <gi...@apache.org>.
jerrypeng merged pull request #7187:
URL: https://github.com/apache/pulsar/pull/7187


   


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