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 2018/11/05 03:04:14 UTC
[GitHub] jerrypeng closed pull request #2927: Fix the accessing of the
variables
jerrypeng closed pull request #2927: Fix the accessing of the variables
URL: https://github.com/apache/pulsar/pull/2927
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/python/python_instance.py b/pulsar-functions/instance/src/main/python/python_instance.py
index fbcc74fbad..e9ea3b14de 100644
--- a/pulsar-functions/instance/src/main/python/python_instance.py
+++ b/pulsar-functions/instance/src/main/python/python_instance.py
@@ -107,10 +107,10 @@ def add_sys_exception(self):
def reset(self):
self.latest_user_exception.clear()
self.latest_sys_exception.clear()
- self.stat_total_processed._value.set(0.0)
- self.stat_total_processed_successfully._value.set(0.0)
- self.stat_total_user_exceptions._value.set(0.0)
- self.stat_total_sys_exceptions._value.set(0.0)
+ self.stat_total_processed.labels(*self.metrics_labels)._value.set(0.0)
+ self.stat_total_processed_successfully.labels(*self.metrics_labels)._value.set(0.0)
+ self.stat_total_user_exceptions.labels(*self.metrics_labels)._value.set(0.0)
+ self.stat_total_sys_exceptions.labels(*self.metrics_labels)._value.set(0.0)
self.stats_process_latency_ms._sum.set(0)
self.stats_process_latency_ms._count.set(0);
self.last_invocation_time = 0.0
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services