sijie closed pull request #1840: Minor code cleanup in JavaInstanceRunnable
URL: https://github.com/apache/incubator-pulsar/pull/1840
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/JavaInstanceRunnable.java
 
b/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/JavaInstanceRunnable.java
index a96c703549..28e91f3c3b 100644
--- 
a/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/JavaInstanceRunnable.java
+++ 
b/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/JavaInstanceRunnable.java
@@ -294,7 +294,7 @@ private void processResult(Record srcRecord,
         if (result.getUserException() != null) {
             log.info("Encountered user exception when processing message {}", 
srcRecord, result.getUserException());
             stats.incrementUserExceptions(result.getUserException());
-            this.currentRecord.fail();
+            srcRecord.fail();
         } else if (result.getSystemException() != null) {
             log.info("Encountered system exception when processing message 
{}", srcRecord, result.getSystemException());
             stats.incrementSystemExceptions(result.getSystemException());


 

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to