From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id CDF291FF13B for ; Wed, 03 Jun 2026 14:27:42 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E9EB4A910; Wed, 3 Jun 2026 14:27:41 +0200 (CEST) From: Shannon Sterz To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager v2 0/2] fix an issue with cached subscription info Date: Wed, 3 Jun 2026 14:27:31 +0200 Message-ID: <20260603122735.425390-1-s.sterz@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1780489620055 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.110 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: FYWYTTXD2SYHPPUJFS3SO5LFIVB4TYGO X-Message-ID-Hash: FYWYTTXD2SYHPPUJFS3SO5LFIVB4TYGO X-MailFrom: s.sterz@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: and slightly improve the caching mechanism. the second patch here is optional, it's just something i noticed while debugging. Changelog --------- changes since v1 (thanks @ Fabian Grünbichler): - https://lore.proxmox.com/pdm-devel/20260603115442.361184-1-s.sterz@proxmox.com/) * added a helper function that guarantees freshly fetched info that never touched the cache. the last version had a slight chance of a race occurring and us again getting cached, incomplete information. * improved logging. Shannon Sterz (2): server: subscription: always get fresh subscription info on update server: cache: short-circuit on special max age value 0 server/src/api/nodes/subscription.rs | 47 +++++++++++++++++++++++----- server/src/api/resources.rs | 13 ++++++++ server/src/namespaced_cache.rs | 4 +++ 3 files changed, 57 insertions(+), 7 deletions(-) -- 2.47.3