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 2022/03/08 00:02:12 UTC

[GitHub] [pulsar] dlg99 opened a new pull request #14589: Sink does not crash/restart after an error on write.

dlg99 opened a new pull request #14589:
URL: https://github.com/apache/pulsar/pull/14589


   ### Motivation
   
   The sink does not crash (thus leaves no chance for auto restart in k8s) if the connector throws exception on write.
   Specific case was caused by ElasticSearch connector; teh es client lost connection and could not recover it without restart, and got stuck not processing anything until human interaction (restart via cli)
   
   The root cause traces to sendOutputMessage not re-throwing exception after it failed the record.
   
   https://github.com/apache/pulsar/blob/0f72a4ff1f21ecf9815290a78be2ab2ea48cecc7/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/JavaInstanceRunnable.java#L356-L370
   
   ### Modifications
   
   Cherry-picked couple of changes:
   
   The problem was fixed in [#12278](https://github.com/apache/pulsar/pull/12278)
   
   To avoid redoing the changes ro dealing with conflicts I also picked https://github.com/apache/pulsar/pull/11618 
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (yes / no)
     - The public API: (yes / no)
     - The schema: (yes / no / don't know)
     - The default values of configurations: (yes / no)
     - The wire protocol: (yes / no)
     - The rest endpoints: (yes / no)
     - The admin cli options: (yes / no)
     - Anything that affects deployment: (yes / no / don't know)
   
   ### Documentation
   
   Check the box below or label this PR directly (if you have committer privilege).
   
   Need to update docs? 
   
   - [ ] `doc-required` 
     
     (If you need help on updating docs, create a doc issue)
     
   - [x] `no-need-doc` 
     
     (Please explain why)
     
   - [ ] `doc` 
     
     (If this PR contains doc changes)
   
   
   


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

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

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



[GitHub] [pulsar] eolivelli commented on a change in pull request #14589: Sink does not crash/restart after an error on write.

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



##########
File path: pulsar-functions/proto/src/main/proto/Function.proto
##########
@@ -101,6 +101,7 @@ message ConsumerSpec {
     map<string, string> schemaProperties = 5;
     map<string, string> consumerProperties = 6;
     CryptoSpec cryptoSpec = 7;
+    bool poolMessages = 8;

Review comment:
       I am not sure we can port this to branch-2.8
   
   it is a data format change




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

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

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