From 609ad97ed6a0709bdd0f8e73d388c958ace6d2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=96=E9=A1=BA?= Date: Thu, 20 Jun 2024 16:25:46 +0800 Subject: [PATCH] gather plan monitor add error log when trace_id has expired --- handler/gather/gather_plan_monitor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler/gather/gather_plan_monitor.py b/handler/gather/gather_plan_monitor.py index 5ffbfda0..3eb4c83c 100644 --- a/handler/gather/gather_plan_monitor.py +++ b/handler/gather/gather_plan_monitor.py @@ -189,6 +189,8 @@ def handle_plan_monitor_from_ob(cluster_name): self.__report("报告生成时间: %s" % (time.strftime("%Y-%m-%d %H:%M:%S", t))) self.report_footer() self.stdio.verbose("report footer complete") + else: + self.stdio.error("The data queried with the specified trace_id {0} from gv$ob_sql_audit is empty. Please verify if this trace_id has expired.".format(self.trace_id)) if resp["skip"]: return