From 41422957d0e99f0519eea8c7380bc391e964baa6 Mon Sep 17 00:00:00 2001 From: vkalintiris Date: Thu, 1 Feb 2024 11:44:41 +0200 Subject: Do not cancel detection thread. (#16897) An atomic flag is used before every iteration of the detection thread. The flag is set right before the cancellation request. It is possible for the detection thread to have already exited prior to sending the cancellation request. The training thread most probably suffers from the same issue, a separate PR will be opened to fix it. --- ml/ml.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'ml') diff --git a/ml/ml.cc b/ml/ml.cc index b786aec9a0..eefe749e58 100644 --- a/ml/ml.cc +++ b/ml/ml.cc @@ -1844,7 +1844,6 @@ void ml_stop_threads() if (!Cfg.detection_thread) return; - netdata_thread_cancel(Cfg.detection_thread); netdata_thread_join(Cfg.detection_thread, NULL); // signal the training queue of each thread -- cgit v1.2.3