Commit 2c9f51a2 authored by jan.koester's avatar jan.koester
Browse files

deb

parent 99651968
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -8,6 +8,9 @@ mediadb (20260422+59) unstable; urgency=low
    import_active_ is set so busy peers are not marked as down.
  * Notify Cluster of import state via setImportRunning() so the health
    loop can tolerate transient probe failures during replication.
  * Fix cluster status bar: use health_loop assessment (isDegraded/
    isCritical) instead of raw pclient snapshot which could show
    DEGRADED while the health loop had already suppressed it.

 -- Jan Koester <jan.koester@tuxist.de>  Wed, 22 Apr 2026 00:00:00 +0200

+6 −1
Original line number Diff line number Diff line
@@ -727,8 +727,13 @@ HttpResponse App::handle_cluster_status(const HttpRequest& req) {
        uint32_t nodes_online = health.nodes_online;
        uint32_t nodes_total = static_cast<uint32_t>(total_peers);

        // Use the health_loop's assessment which retries probes and
        // suppresses false-DEGRADED during imports, rather than the raw
        // pclient snapshot which may lag or miss busy peers.
        const char* statusStr = "OK";
        if (nodes_online < nodes_total) {
        if (g_Cluster->isCritical()) {
            statusStr = "CRITICAL";
        } else if (g_Cluster->isDegraded()) {
            statusStr = "DEGRADED";
        }
        if (health.overall == paritypp::node_status::REBUILD) {