fix(nodes): order client pushes outside inbound mutation locks

Reserve node apply turns in database commit order and release the inbound mutation lock before waiting or calling the remote runtime. Keep lifecycle updates and full reconciliation in the same sequence, preserve dirty generations across overlapping writes, and invalidate fingerprints after uncertain or superseded remote state.
This commit is contained in:
Hamed Sanaei
2026-11-30 22:08:47 +03:30
parent 15feed9ea7
commit e80af331eb
13 changed files with 891 additions and 179 deletions
+7
View File
@@ -690,6 +690,13 @@ func (r *Remote) ForgetPushedInbound(tag string) {
r.mu.Unlock()
}
// ForgetAllPushedInbounds forces a fresh configuration push without discarding tag aliases.
func (r *Remote) ForgetAllPushedInbounds() {
r.mu.Lock()
defer r.mu.Unlock()
clear(r.pushedFP)
}
// ForgetInbound drops everything kept under an inbound the node no longer has, in either
// tag form: a node rotating tags would otherwise grow these maps without bound.
func (r *Remote) ForgetInbound(tag string) {