From commits-return-11784-archive-asf-public=cust-asf.ponee.io@pulsar.incubator.apache.org Wed Jul 25 22:07:57 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 88A4518062C for ; Wed, 25 Jul 2018 22:07:56 +0200 (CEST) Received: (qmail 57307 invoked by uid 500); 25 Jul 2018 20:07:55 -0000 Mailing-List: contact commits-help@pulsar.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pulsar.incubator.apache.org Delivered-To: mailing list commits@pulsar.incubator.apache.org Received: (qmail 57298 invoked by uid 99); 25 Jul 2018 20:07:55 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2018 20:07:55 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 0D1438081B; Wed, 25 Jul 2018 20:07:55 +0000 (UTC) Date: Wed, 25 Jul 2018 20:07:54 +0000 To: "commits@pulsar.apache.org" Subject: [incubator-pulsar] branch master updated: Set empty response to complete grpc txn (#2225) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <153254927490.28860.5843445356778219659@gitbox.apache.org> From: rdhabalia@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-pulsar X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: ebb2822e611009662dca7b4a3ed1309f039a7f14 X-Git-Newrev: 55c8dc0519608a755509cdc445496140b38d98b3 X-Git-Rev: 55c8dc0519608a755509cdc445496140b38d98b3 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. rdhabalia pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git The following commit(s) were added to refs/heads/master by this push: new 55c8dc0 Set empty response to complete grpc txn (#2225) 55c8dc0 is described below commit 55c8dc0519608a755509cdc445496140b38d98b3 Author: Rajan Dhabalia AuthorDate: Wed Jul 25 13:07:52 2018 -0700 Set empty response to complete grpc txn (#2225) --- .../java/org/apache/pulsar/functions/runtime/JavaInstanceMain.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/JavaInstanceMain.java b/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/JavaInstanceMain.java index 0c10fdb..966740d 100644 --- a/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/JavaInstanceMain.java +++ b/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/JavaInstanceMain.java @@ -370,9 +370,10 @@ public class JavaInstanceMain implements AutoCloseable { if (runtime != null) { try { runtime.resetMetrics().get(); + responseObserver.onNext(com.google.protobuf.Empty.getDefaultInstance()); responseObserver.onCompleted(); } catch (InterruptedException | ExecutionException e) { - log.error("Exception in JavaInstance doing getAndResetMetrics", e); + log.error("Exception in JavaInstance doing resetMetrics", e); throw new RuntimeException(e); } }