[Bugfix] Fix host-memory leak on aborted /v1/images/generations (#6462) (#6561)

Signed-off-by: summer <128961079+zhang-keliang@users.noreply.github.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
summerandHongsheng Liu authored and GitHub committed 2026-09-11 00:04:08 +00:00
1 parent ffcaaa9439
commit 5a386d789f
5 files changed
+100 -18

No files matched your search

+1 -2
View File
@@ -41,7 +41,6 @@ def _make_omni_base_with_mock_prom(mocker):
obj = object.__new__(OmniBase)
obj.prom_metrics = mocker.Mock(spec=OmniPrometheusMetrics)
obj.request_states = {}
obj._consumed_metric_messages = {}
obj.log_stats = True
return obj, obj.prom_metrics
@@ -270,7 +269,7 @@ class TestStageWorkloadMetricScope:
obj = object.__new__(OmniBase)
obj._enable_ar_profiler = False
obj._consumed_metric_messages = {}
obj.request_states = {"req-replay": SimpleNamespace(consumed_metric_message_ids=set())}
obj.prom_metrics = mocker.Mock(spec=OmniPrometheusMetrics)
obj.mod_metrics = mocker.Mock()
obj.engine = SimpleNamespace(